[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

iptables newbie



I'm taking a crack at iptables for the first time.  I don't understand much about iptables yet (though, I've been reading Oskar Andreasson's excellent tutorial).  It appears that iptables comes ready to go on Debian Sarge 2.4, though, on my machine it doesn't work.  I just need a nudge to get myself going on this problem.  A link, man page (man iptables was no help), or your experience in setting up iptables on Debian sarge (Linux 2,4 kernel) would be greatly appreciated.
Here's my deal:
I've just got mail going on a new server.  Now I've got spammers trying to kill my bandwidth.  I plan to get spamassasin and clam going soon, but for no I'd just like to block these sobs using iptables, and then get clam and spam assassin going.

if I try to block the aforementioned SOB's ip address on the filter table (when -t isn't specified it is supposed to go to the filter table):
# iptables -A INPUT  -s 123.45.67.89 -j DROP
I get:
iptables: No chain/target/match by that name

and /etc/rc3.d doesn't seem to show anything about iptables or a firewall:
/etc/rc3.d# ls
S10sysklogd  S14ppp    S20exim4  S20makedev  S20pcmcia  S89atd   S91apache2    S99stop-bootlogd
S11klogd     S15bind9  S20inetd  S20mysql    S20ssh     S89cron  S99rmnologin

I tried:
# apt-get install iptables

but iptables is already installed.  hmmm.  what next?  any ideas?

James Gibbon

Reply to: