Parsing network stream into http request/response

The need was to convert the network stream into clear text http request/responses while doing some decoding of the response body. For instance: request uri + queryString => response body Capture the stream – easy using tcpdump Filter the http stream – easy using wireshark with a tcp.port eq 80 filter Export http #1. using wireshark file -> export objects -> http. This works fine only for files. It does not work for POST requests....

June 22, 2016 · len

Replicated EhCache, the uneasy road

At first replicating EhCache seems a very easy task, just need to configure ehcache.xml with RMI and you are ready. Is it so? RMI At the beginning it seems so, the cache seems to be replicated, everything works. However at some point you notice in the log something like: Exception on replication of putNotification. Error unmarshaling return header; nested exception is: java.net.SocketTimeoutException: Read timed out. Continuing... java.rmi.UnmarshalException: Error unmarshaling return header; nested exception is: java....

February 6, 2014 · len

Apache mod_jk configuration

I don’t know why, even if there is a lot of documentation on the subject the mod_jk installation still seems a bit of mystic elements. This is why I decided to write a very short mod_jk configuration guide oriented for debian, ubuntu linux systems. First, mod_jk is an apache module which allows a more customized communication to an apache tomcat server using the AJP 1.3 protocol. This usually happens using the TCP port 8009 so yes, there must be a connection from the apache server to the tomcat one....

November 10, 2008 · len

Old/new I8000 #2

Wireless support Ok, now there is an Ubuntu system installed on the old Dell Inspiron 8000. Only one thing remains: some kind of wireless support. So, to this end, I have bought an Edimax wireless usb stick: EW-7318Ug. Gutsy default By default Gutsy loads the rt73usb module when the usb stick is inserted but I was not able to use this configuration in order to connect to the wireless network even if I have tried various things....

January 18, 2008 · len

Old/new I8000 #1

I have 2 old Dell Inspiron 8000 laptops which even if they are around 6 years old still have some nice features: 1600×1200 screen resolution very good quality sound card compared to the one of my new D820 (maestro3 versus intel_hda) Both of them are running linux since a very long time but I wanted to install a fresh/clean new version on one of them in order to be used as a music, internet station at home since I am afraid that backpack carrying the D820 each day on a bicycle will finally prove fatal to it....

January 18, 2008 · len

dhcp and djbdns

DHCP Installing a dhcp server was quite simple. # apt-get install dhcp3-server Then I just had to modify the /etc/dhcp/dhcpd.conf the configuration file did not changed almost at all from the previous versions so I could just copy it with very small modifications. The only interesting thing in this file is how to make a server boot from the network: host X { #next-server X.X.X.1; #filename "/tftpboot/pxelinux.0"; hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address X....

January 8, 2008 · len

Qmail

Qmail based on qmailrocks install One of the things I missed most and disappointed me is the grave lack of a qmail package for Gutsy. I’m using Qmail since more than 5 years and I was always happy. This describes the installation based on the qmailrocks debian guide. All credits should go to the qmailrocks team. This only points some of the differences and problems I encountered on ubuntu. It’s mainly a list of commands as found on the qmailrocks site with some observations....

December 27, 2007 · len

Disabling avahi-daemon

One of the things I quickly found to be bothering me is the fact that there was an apparently long and unexplicable delay for all new network connections which resembled to a dns resolving. No reason for lengthy dns resolving though. So I did a strace: socket(PF_FILE, SOCK_STREAM, 0) = 4 fcntl64(4, F_GETFD) = 0 fcntl64(4, F_SETFD, FD_CLOEXEC) = 0 connect(4, {sa_family=AF_FILE, path="/var/run/avahi-daemon/socket"}, 110) = 0 fcntl64(4, F_GETFL) = 0x2 (flags O_RDWR) fstat64(4, {st_mode=S_IFSOCK|0777, st_size=0, ....

May 4, 2007 · len