Somebody can help me ?
I have this config :
eth0 - LAN (192.168.255.0/24)
eth1 - Cable (ISPs dynamic IP)
ppp0 - PPTP to ISP over eth1 to get FIXED IP x.x.x.x/32
default gw is ISPs assigned on eth1
iptables -t nat -A POSTROUTING -s 192.168.255.0/24 -d 0.0.0.0/0 -j MASQUERADE
Until here everything works.
Know, I want that outgoing connections uses ppp0 Fixed IP, not eth1 assigned IP.
I tried to use SNAT , but doesn't work : iptables -t nat -A POSTROUTING -o ppp0 -j SNAT --to x.x.x.x.
Previously I've remove all rules ...
Any idea ?