iptables vs ipchains - Masquerade help!
From: Lloyd Sumpter (lsumpter_at_dccnet.com)
Date: 10/31/03
- Next message: Matt - header is munged: "Re: Debian, SuSe or RedHat ?"
- Previous message: prschmi_at_attglobal.net: "DOSEMU DOS Cursor in WordStar Xbox"
- Next in thread: David Douthitt: "Re: iptables vs ipchains - Masquerade help!"
- Reply: David Douthitt: "Re: iptables vs ipchains - Masquerade help!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 31 Oct 2003 08:41:42 -0800
Hi,
I've been running an earlier version of Mandrake on my cable-ISP
firewall/router, and have just upgraded to Mandrake 9.0. I was using
ipchains to set up masquerading, but apparently the "new" secure kernel
doesn't support it any more, and I have to use iptables instead.
I've R'ed the FM and learned about tables, SNATs, DNATs, KNATs (they
flew out of my computer when I opened it...), but can't figure out how to
set up a simple masquerade like I had before. Here are my old ipchain
commands (there might be some redundancies, but it worked)
/sbin/ipchains -P forward MASQ
/sbin/ipchains -A forward -s 192.168.1.0/24 -d 0.0.0.0/0 -j MASQ
/sbin/ipchains -A forward -s 0.0.0.0/0 -d 192.168.1.0/24 -j MASQ
echo 1 > /proc/sys/net/ipv4/ip_forward
insmod /lib/modules/2.2.17-21mdksecure/ipv4/ip_masq_ftp.o
dhcpcd eth1
Can someone please tell me the equivalent iptables commands?
Lloyd Sumpter
ps:
<RANT MODE ON>
Why does it seem that in order to make it harder for hackers to get IN,
they have to make it harder for sysadmins to set up the firewall?? I
started with ipfwadm, which had it's own set of obscure commands. Then I
was told that was no longer secure (or something) and I had to use
ipchains. New program, new set of even more complex and obscure commands.
Now, ipchains is out, iptables is in, and guess what? New commands, even
more obscure and complex.
Why isn't it EASY to set up a simple masquerading firewall??
<RANT MODE OFF>
Lloyd
- Next message: Matt - header is munged: "Re: Debian, SuSe or RedHat ?"
- Previous message: prschmi_at_attglobal.net: "DOSEMU DOS Cursor in WordStar Xbox"
- Next in thread: David Douthitt: "Re: iptables vs ipchains - Masquerade help!"
- Reply: David Douthitt: "Re: iptables vs ipchains - Masquerade help!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|