Find the answer to your Linux question:
Results 1 to 7 of 7
Hi All, I am new to this forum, s please be patient with me. This is the first time for me to post a question on any forum cool anyway ...
  1. #1
    Just Joined!
    Join Date
    Mar 2007
    Posts
    4

    PPP VPN Server

    Hi All,

    I am new to this forum, s please be patient with me. This is the first time for me to post a question on any forum cool anyway

    Here is my problem: I am setting up a vpn server using opensuse 10.2 with ppp
    I did set it up to the point that the remote machine can only see the vpn server and nothing else (cannot see other machines on my network) and vice versa the machine on my network cannot see the remote machine once connected.
    Using Yast I have enable IP Forwarding
    I have tried putting the remote machine on the same subnet as the vpn server (did not help) now it (remote machine) is on its own subnet 192.168.145.xx and the vpn server is on its own (192.168.45.xx)
    In routing in Yast I have set up the following routing rule:
    Destination: 192.168.145.0
    Gateway: vpn_ip_address
    netmask: 255.255.0.0 ( i have also tried 0.0.0.0)

    Did not do any good.....I am stuckkkkkkkkkkkkkkkkk

    Please Helppppppppppppppppppppppppppppppppppppppppppppppp pppp

  2. #2
    Linux User cyberinstru's Avatar
    Join Date
    Jan 2007
    Location
    India
    Posts
    362
    Did u check ur PAP/CHAP secrets?
    ---------------------------------
    Registered Linux User #440311
    HI2ARUN _AT_ GMAIL _DOT_ COM
    ---------------------------------

  3. #3
    Just Joined!
    Join Date
    Mar 2007
    Posts
    4

    Re:

    yes I did
    I am able to vpn in but I can only ping the vpn server nothing else
    I do not have access to anything on my network

  4. #4
    Linux User cyberinstru's Avatar
    Join Date
    Jan 2007
    Location
    India
    Posts
    362
    Can you post the output of

    1. ifconfig (details of ppp inteface p-t-p)

    2. route entries
    ---------------------------------
    Registered Linux User #440311
    HI2ARUN _AT_ GMAIL _DOT_ COM
    ---------------------------------

  5. #5
    Just Joined!
    Join Date
    Mar 2007
    Posts
    4
    Sorry I could not respond earlier, I had an emergency.

    Anyway here are ifconfig and route:

    eth0 Link encap:Ethernet HWaddr xxxxxxxxxx
    inet addr:192.168.45.xx Bcast:192.168.255.255 Mask:255.255.0.0


    ppp0 Link encap:Point-to-Point Protocol
    inet addr:192.168.45.xx P-t-P:192.168.145.xx Mask:255.255.255.255
    UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1400
    RX packets:42 errors:0 dropped:0 overruns:0 frame:0
    TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:3
    RX bytes:4455 (4.3 Kb) TX bytes:137 (137.0 b)



    and for route

    192.168.145.50 * 255.255.255.255 UH 0 0 0 ppp0
    link-local * 255.255.0.0 U 0 0 0 eth0
    192.168.0.0 * 255.255.0.0 U 0 0 0 eth0
    loopback * 255.0.0.0 U 0 0 0 lo
    default 192.168.45.xx 0.0.0.0 UG 0 0 0 eth0


    any ideas????

  6. #6
    Linux User cyberinstru's Avatar
    Join Date
    Jan 2007
    Location
    India
    Posts
    362
    Fine.
    From the output u have posted, it is inferred that,

    your subnet is 192.168.45.0/24
    Other End: 192.168.145.0/24
    Don't use 255.255.0.0 for class C (super-netting), coz, if u use CIDR 16, then both 192.168.45.0 and 192.168.145.0 fall under same subnet.

    So use CIDR 24.
    You have you ppp interface UP and running.

    If you want to reach 192.168.145.0 network, it is to be done via P-t-P 192.168.145.50

    So add route:
    route add -net 192.168.145.0 gw 192.168.145.50 dev ppp0
    To reach ur n/w 192.168.45.0 from the other end,

    On the other end:
    route add -net 192.168.45.0 gw <P-t-P> dev <ppp If>
    ---------------------------------
    Registered Linux User #440311
    HI2ARUN _AT_ GMAIL _DOT_ COM
    ---------------------------------

  7. #7
    Just Joined!
    Join Date
    Mar 2007
    Posts
    4
    Thks.
    I will try that

    In the mean time, when trying different scenarios I gave the 192.168.45.xx IP to my remote machines , but still I can only see the VP server from the remote machine and vis versa
    what is wrong ? I have no idea.. I was thinking that with that same subnet at least the remote should be able to see everything else but nop
    any clues?????

Posting Permissions

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