This is a somewhat involved problem, so I'll try to give as much detail as
possible to help paint a picture.
  
We've got several internal subnets. (i.e., 192.168.1.x, 192.168.2.x,
192.168.3.x and so forth)
We have a firewall device terminating the VPN connections.  The pool of IP
addresses assigned for this are      in our primary subnet. (192.168.1.x).
By default, the W2k PPTP client adds a route to the network your VPN device
is assigned.  So, now all traffic destined for 192.168.1.x via the VPN
connection works great.

However, any communications to the other subnets will try and find their way
using my default route. My ISP.. and they won't get anywhere.

I can remedy this problem manually pretty easily:

ipconfig /all
get IP address of VPN interface
route add 192.168.0.0 MASK 255.255.0.0 [ip address of VPN interface]

However, This is not a sufficient task to ask my remote end users.
I'm looking for a way to automatically execute this command after the VPN
connection is established.
Even a batch file they can run manually would be acceptable. 
The problem I've run into, is that Windows does not have very advanced text
handling routines as commands. So stripping the IP address from ipconfig to
save into a variable is nearly impossible.

Thoughts, ideas, suggestions?

Jason





Want to unsub? Do that here:
http://lyris.sunbelt-software.com/scripts/lyris.pl?enter=ntsysadmin&text_mode=0&lang=english

Reply via email to