[PLUG] iptables question
Phil Tomson
ptkwt at aracnet.com
Wed Sep 10 13:26:01 UTC 2003
Turns out the problem was because I was booting up an older kernel
(2.4.19mdk) instead of 2.4.21 (the one that came with Mandrake 9.1)
because the laterr kernel was causing the machine to hang when accessing
the CDROM. Now that I've tried it with the 2.4.21 kernel I don't get the
Invalid argument message. Must be that the wrong modules were being
loaded.
Phil
On Wed, 10 Sep 2003, Eric Harrison wrote:
> On Wed, 10 Sep 2003, Phil Tomson wrote:
>
> >
> >I'm trying to set up masquerading / nat with iptables.
> >
> >I downloaded a simple firewall script to get me started. The last line of
> >the script does:
> >
> >iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
> >
> >However, this returns:
> >iptables: Invalid argument
> >
> >if I remove the '-j MASQUERADE' part of the command, like so:
> >
> >iptables -t nat -A POSTROUTING -o ppp0
> >
> >it's fine, but of course that does nothing....
> >
> >Any idea why it doesn't like: '-j MASQUERADE'?
>
> Looks like the nat module is not auto-loading.
>
> Try adding this to the top of your script:
>
> modprobe iptable_nat
>
> -Eric
>
>
> _______________________________________________
> PLUG mailing list
> PLUG at lists.pdxlinux.org
> http://lists.pdxlinux.org/mailman/listinfo/plug
>
More information about the PLUG
mailing list