(E-Mail Removed) (Dave Stauffer) écrivait
news:(E-Mail Removed) om:
> 192.168.1.1. The firewall has been assigned an address of
> 192.168.1.254. It comes frustratingly close to working. Telnet and
The firewall should also have a public ip address, when the line is up,
certainaly on a ppp interface (not in 192.168.x.x or 10.x.x.x range).
> iptables -t nat -A POSTROUTING -o eth0 -j SNAT --to-source
> 192.168.1.254
and so you shoudl use the public interface and adress in the firewall
rules :
iptables -t nat -A POSTROUTING -o ppp+ -j SNAT --to-source <public_ip>
or masquerade (especially if you have a dynamic address) :
iptables -t nat -A POSTROUTING -o ppp+ -j MASQUERADE
Marquerading get the current interface ip adress, and reset lost
connexion if the ip change.
Regards