LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   VPN - Default Gateway / Routing Issues, pptpd (https://www.linuxquestions.org/questions/linux-networking-3/vpn-default-gateway-routing-issues-pptpd-630555/)

stuartornum 03-25-2008 01:15 PM

VPN - Default Gateway / Routing Issues, pptpd
 
Hi All,

I reckon there is a simple fix to this, I just can't figure it out.

My Setup

Server
CentOS 4.6 (Xen)
PPTPD Server
Webmin
VPN Server local IP: 192.168.2.1

Client
Windows XP Pro
VPN assigned local IP: 192.168.2.101

So Far

I have managed to get the server installed and working 95%.

From the Windows client I can connect, it gives me the correct IP I assigned to a particular user, I can also ping the server ok.

However I cannot ping any public IP's.

Here is netstat -nr from the Windows client *BEFORE* connecting to the VPN:
Code:

Route Table
===========================================================================
Interface List
0x1 ........................... MS TCP Loopback interface
0x3 ...00 0b cd 5b 64 52 ...... HP WLAN 802.11b/g W400 - Packet Scheduler Minipo
rt
===========================================================================
===========================================================================
Active Routes:
Network Destination        Netmask          Gateway      Interface  Metric
          0.0.0.0          0.0.0.0        10.1.1.1      10.1.1.21      25
        10.1.1.0    255.255.255.0        10.1.1.21      10.1.1.21      25
        10.1.1.21  255.255.255.255        127.0.0.1      127.0.0.1      25
  10.255.255.255  255.255.255.255        10.1.1.21      10.1.1.21      25
        127.0.0.0        255.0.0.0        127.0.0.1      127.0.0.1      1
        224.0.0.0        240.0.0.0        10.1.1.21      10.1.1.21      25
  255.255.255.255  255.255.255.255        10.1.1.21      10.1.1.21      1
Default Gateway:          10.1.1.1
===========================================================================
Persistent Routes:
  None

Here is netstat -nr from the Windows client *AFTER* connecting to the VPN:
Code:

Route Table
===========================================================================
Interface List
0x1 ........................... MS TCP Loopback interface
0x3 ...00 0b cd 5b 64 52 ...... HP WLAN 802.11b/g W400 - Packet Scheduler Minipo
rt
0xa0002 ...00 53 45 00 00 00 ...... WAN (PPP/SLIP) Interface
===========================================================================
===========================================================================
Active Routes:
Network Destination        Netmask          Gateway      Interface  Metric
          0.0.0.0          0.0.0.0        10.1.1.1      10.1.1.21      26
          0.0.0.0          0.0.0.0    192.168.2.101  192.168.2.101      1
        10.1.1.0    255.255.255.0        10.1.1.21      10.1.1.21      25
        10.1.1.21  255.255.255.255        127.0.0.1      127.0.0.1      25
  10.255.255.255  255.255.255.255        10.1.1.21      10.1.1.21      25
    77.74.198.161  255.255.255.255        10.1.1.1      10.1.1.21      25
        127.0.0.0        255.0.0.0        127.0.0.1      127.0.0.1      1
    192.168.2.101  255.255.255.255        127.0.0.1      127.0.0.1      50
    192.168.2.255  255.255.255.255    192.168.2.101  192.168.2.101      50
        224.0.0.0        240.0.0.0        10.1.1.21      10.1.1.21      25
        224.0.0.0        240.0.0.0    192.168.2.101  192.168.2.101      1
  255.255.255.255  255.255.255.255        10.1.1.21      10.1.1.21      1
  255.255.255.255  255.255.255.255    192.168.2.101  192.168.2.101      1
Default Gateway:    192.168.2.101
===========================================================================
Persistent Routes:
  None

Shouldn't the default gateway when connected to the VPN be the VPN servers local IP (192.168.2.1), instead of the client assigned IP, in this case 192.168.2.101

Thanks in advanced


All times are GMT -5. The time now is 10:23 PM.