Using mod_evasive for dos attack prevention

A quick solution for blocking dos attacks can be mod_evasive Installing mod_evasive on an apache2 web server:

# mkdir -p /root/tmp
# cd /root/tmp
# wget http://www.zdziarski.com/projects/mod_evasive/mod_evasive_1.10.1.tar.gz
# tar zxvf mod_evasive_1.10.1.tar.gz
# cd mod_evasive
# apxs -cia mod_evasive20.c

then …

more…

Setting up MadWifi on a Samsung r20 laptop, running Zenwalk as an os

I always liked the Slackware distribution, everything (well, almost) is really simple and straightforwar. For some time i'm using Zenwalk, a slackware-based distro, on my laptop.

At some point, i needed to connect to a nearby access point, and fortunately this samsung r20 has built-in an Atheros wireless adapter.

At …

more…

Attansic L2 100Mbit Ethernet Adapter on Debian Lenny

It appears Attansic was recently bought by Atheros. However, getting it to work on GNU/Debian Lenny is as simple as:

apt-get install atl2-modules-2.6-686
modprobe atl2

And here it is:

root@gw # ifconfig eth1
     eth1      Link encap:Ethernet  HWaddr 00:1e:8c:18:88:a6
     BROADCAST MULTICAST  MTU:1500 …
more…

GNS3 install on ubuntu/debian

Follow the instructions on
http://gpl.code.de/oswiki/GplcodedeApt
then just run

apt-get install gns3
more…

Using remote logging on a dd-wrt enabled Linksys wrt54g

On the machine you want to log to (i have a slackware one):

root[floyd]# nano /etc/rc.d/rc.syslog

replace:

echo -n "/usr/sbin/syslogd"/usr/sbin/syslogd

with:

echo -n "/usr/sbin/syslogd -r "/usr/sbin/syslogd -r

Restart syslog:

root[floyd]# /etc/rc.d/rc.syslog …
more…

Zakang ZX410 CDMA phone on linux, connect to the Internet with it

Few days ago I bought a brand-new Zakang ZX-400 phone, from a local CDMA Operator, Unite
Also, I have opted for a monthly subscription, including unlimited internet access.
The main issue is that they provide drivers/instructions for WinXP/2000, and I'm not going to use Windows just because of …

more…

Updating Slackware, part 2

Well, as i said in previous post, Updating Slackware I took the following steps: Adjusted /etc/slapt-get/slapt-getrc to point to the newer release:

...SOURCE=http://slackware.perespim.ru/pub/slackware-10.2/...

After that, i did the following:

slapt-get --dist-upgrade --ignore-excludes --download-onlyslapt-get --install kernel --no-upgradeslapt-get --dist-upgrade --ignore-excludes

And adjusted /etc …

more…

Updating Slackware

I have an old router/gateway, still running Slackware 10.0, and since i can't afford more than 5-10min downtime on that box, i'll have to find a reliable way to upgrade "on-the-fly" the os to a newer release.

Afaik, there are a lot of folks that managed to update …

more…

Running network device backups with RANCID on FreeBSD

A useful utility for backing-up network devices configuration i have recently stumbled upon is RANCID, (Really Awesome New Cisco confIg Differ) which allows for backup automation. It also allows for keeping a history of changes done to devices' configuration, using either CVS or SVN, also all changes can be automatically …

more…

first post

Yep, this is the first post on this blog, welcome to all of you :)

On these pages you will be able to read my posts on my systems administrator position and also some news/notes from the IT world.

I hope real soon i will manage to find some spare …

more…