-
Newbie
Lan, Cable and PPTP (FIXED IP OVER CABLE)
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 ?
Thanks
-
Senior Member
Re:
Dear mailservertest,
Hello,
iptables -t nat -A POSTROUTING -s 192.168.255.0/24 -d 0.0.0.0/0 -j MASQUERADE
it should be look like this
# iptables -t nat -A POSTROUTING -i eth0 -o eth1 -s 192.168.255.0/24 -d 0.0.0.0/0 -j MASQUERADE
Best Regards.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks