Koozali.org: home of the SME Server

PPTP VPN-- change config

Offline bcruse

  • *
  • 5
  • +0/-0
PPTP VPN-- change config
« on: November 26, 2007, 04:47:39 PM »
How can I change the gateway ip issued to clients when they connect. The vpn works perfectly except I would like to be able to use a diffrent gateway. I do not want to use the pptp server as the gateway. any ideas? I appreciate the assistance.

Brian

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: PPTP VPN-- change config
« Reply #1 on: November 26, 2007, 05:16:53 PM »
How can I change the gateway ip issued to clients when they connect.

The clients aren't given a gateway IP when they connect via PPTP VPN.

Offline cheezeweeze

  • *
  • 18
  • +0/-0
Re: PPTP VPN-- change config
« Reply #2 on: November 26, 2007, 05:27:43 PM »
For Windows XP:

In Network Connections
Right click the VPN connection and select properties

Under Networking Tab
Select "Internet Protocol (TCP/IP)" then click "Properties" button
Click the "Advanced..." button
Un-check the box for "Use default gateway on remote network"

Offline bcruse

  • *
  • 5
  • +0/-0
Re: PPTP VPN-- change config
« Reply #3 on: November 26, 2007, 07:05:43 PM »
That only sets the connection to use the gateway provided by my isp. I need to use a gateway inside my local network. I need to be able to set a gateway when a client receives  an address under pptp. is there anyway it can be done?

Offline cheezeweeze

  • *
  • 18
  • +0/-0
Re: PPTP VPN-- change config
« Reply #4 on: November 26, 2007, 08:44:16 PM »
If you do a route print it shows the ppp interface is the gateway for the VPN connection.

All traffic has to be routed through that interface to reach the remote network.

You can change the gateway with route change but you will break the tunnel:

route CHANGE 192.168.1.0 MASK 255.255.255.0 192.168.1.196 METRIC 1
                    ^destination        ^mask           ^gateway