Archive for October 2009

Number of connections per ip

This command helps you detect the number of connections that one ip has to a (linux) server. Useful for detected ddos attack: ?View Code BASH1 netstat -anp |grep ‘tcp\|udp’ | awk ‘{print $5}’ | cut -d: -f1 | sort | uniq -c | sort -n

rsync: directory sync between backends

We used to have a samba share sync on the myp2p backends. But this is pretty instable. Rsync, through ssh is much more convenient.. if you know how it works. Ok, so we have our main server where every backend mirros some files from. Every backend executes the command: ?View Code BASH1 rsync -avzR -e [...]

Broadcom NetXtream II

With a new kernel compile, make sure to enable the broadcom netxtream II drivers in the menuconfig setup. If you don’t do this, you’re gonna have to copy some files to /lib/firmware/bnx2/..