Re: eth1 messing up eth0 and routing question
> On 5 Sep 2001 08:29:37 -0700, bedlam@alumni.rice.edu wrote:
>
> >I can ping outside and inside networks from the router, and I can ping the LAN
> side of the router from a local computer, but I can't ping outside from the
> local computer.
>
> You need SNAT ("ip masquerading") like this:
>
> if [ -n "$EXTERNAL" ]; then
> for ext in $EXTERNAL; do
> ipnm_cache $ext
> $IPTABLES -t nat -A POSTROUTING -o $ext -j SNAT --to $IPOFIF
> done
> fi
>
> $EXTERNAL is the set of external interfaces you have, "ipnm_cache" precomputes
> the IP address and netmask for the respective external interface (the IP address
> gets stored in $IPOFIF.)
Ok, I've read conflicting information on this subject, and neither solution has worked correctly. I can't use this solution becuase I don't seem to have ipnm_cache. I tried to follow the NAT-HOWTO which says to use these commands:
#> modprobe iptable_nat
#> iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
at which point I get the message:
iptables: No chain/target/match by that name
Help?
-------------------------------------------------------------
Sign up for ICQmail at http://www.icq.com/icqmail/signup.html
Reply to: