Results 1 to 2 of 2

Thread: Lan, Cable and PPTP (FIXED IP OVER CABLE)

  1. #1

    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

  2. #2
    Senior Member
    Join Date
    May 2004
    Location
    Pakistan
    Posts
    253

    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.
    Färrükh Ähmëd

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •