I have several PPTP VPN's and would like to have routes given to the clients when they dial in. I am currently, for myself, adding the routes by hand whenever I dail in.
The only way I have come up with to do this is to write a batch file that looks for the interface name, since it changes every time a user connects, and then adds the routes to that interface. I'd like to manage this from the RRAS server for obvious reasons, but have not been able to find a solution.
The network looks like this:
The RRAS server is on 192.168.30.0 network. It is connected to the 192.168.31.0 network via a router. When clients dial in, they are given an IP in the 30.0 network, and I want them to receive routes to the 31.0 network. I am currently adding the route
route add 192.168.31.0 MASK 255.255.255.0 192.168.30.25 metric 1
192.168.30.25 is the address given to me via DHCP (it's always different) on the RRAS server, and is what I set as the gateway on my local computer for that route. I could also use the interface name, but that changes each time as well.
Any help would be GREATLY appreciated.
The only way I have come up with to do this is to write a batch file that looks for the interface name, since it changes every time a user connects, and then adds the routes to that interface. I'd like to manage this from the RRAS server for obvious reasons, but have not been able to find a solution.
The network looks like this:
The RRAS server is on 192.168.30.0 network. It is connected to the 192.168.31.0 network via a router. When clients dial in, they are given an IP in the 30.0 network, and I want them to receive routes to the 31.0 network. I am currently adding the route
route add 192.168.31.0 MASK 255.255.255.0 192.168.30.25 metric 1
192.168.30.25 is the address given to me via DHCP (it's always different) on the RRAS server, and is what I set as the gateway on my local computer for that route. I could also use the interface name, but that changes each time as well.
Any help would be GREATLY appreciated.