Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19
Lan, Cable and PPTP (FIXED IP OVER CABLE)
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.
    Frrkh hmd

Similar Threads

  1. Cable connection
    By Fatal Error in forum Linux - General Topics
    Replies: 6
    Last Post: 11-06-2005, 07:19 AM
  2. Cable
    By countach44 in forum General Chat
    Replies: 5
    Last Post: 09-28-2004, 06:35 AM
  3. Cable or DSL
    By Ashcrow in forum Linux - Hardware, Networking & Security
    Replies: 5
    Last Post: 07-16-2003, 07:44 PM
  4. Crossover Cable
    By trickster in forum Linux - Hardware, Networking & Security
    Replies: 5
    Last Post: 09-25-2002, 11:07 AM
  5. Cable or DSL
    By Ashcrow in forum Linux - Hardware, Networking & Security
    Replies: 25
    Last Post: 07-23-2002, 02:12 AM

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
  •