Iptables Masquerading
I am trying to setup ip masquerading on my home network but am having some troubles! My first machine (router) has two interfaces eth0,eth1. eth0 is on the internet, eth1 internal. I have tried to setup masquerading with the following rules.
iptables -t nat -F POSTROUTING
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
I have setup up another machine with this machine as it's gateway and tried to ping a server. I get:
Redirect Host(New nexthop: 10.255.255.254)
Destination Host unreachable
The routers IP is 10.116.0.1 (internal) which makes me wonder about the ip given for nexthop.
Sorry if this is messy or doesn't make much sense but i'm writing this using lynx on a console (due to this problem!)
Any help would be greatly appreciated!
Chris
Last edited by GOLDF1NG3R; 10-29-2001 at 04:12 PM.
|