|
Well just to have a gateway all you need to do is
masquerade, that is change the source address to that of your internet
connection. This is done by:
iptables -t nat -A POSTROUTING -o eth0
-s 192.168.1.1/24 -j SNAT --to-source 148.245.89.1
This is assuming you have a static IP address as
your external. If your external IP address is assigned via DHCP you will
need to change the -j SNAT to -j MASQUERADE
|
- trying to make a gateway. Carlos Horacio Silva Elizondo
- Re: trying to make a gateway. Antony Stone
- Chris Hoeschen
