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

Re: eth1 messing up eth0 and routing question



> >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, so does this just run in the script I'm setting up to execute everything?  do I have to setup $EXTERNAL?  why is iptables executed as $IPTABLES?  I'm totally new to this...




-------------------------------------------------------------
Sign up for ICQmail at http://www.icq.com/icqmail/signup.html



Reply to: