Kaptain1
asked on
How to add route to OpenVPN automatically?
Hi Experts,
I have a fully functional OpenVPN setup, but can't figure out how to add a route on a Windows 7 64bit workstation.
The route adds well on a Windows XP workstation - there's a route.exe file and "up" file that has the actual route information (route add 192.168.1.0 mask 255.255.255.0 172.1.1.1). It works for XP, but for Win 7 complaints that the route.exe is not a 64bit application, and is not compatible.
How would I add a route to Win7 64bit automatically?
Thanks in advance!
I have a fully functional OpenVPN setup, but can't figure out how to add a route on a Windows 7 64bit workstation.
The route adds well on a Windows XP workstation - there's a route.exe file and "up" file that has the actual route information (route add 192.168.1.0 mask 255.255.255.0 172.1.1.1). It works for XP, but for Win 7 complaints that the route.exe is not a 64bit application, and is not compatible.
How would I add a route to Win7 64bit automatically?
Thanks in advance!
Try: http://serverfault.com/questions/110281/openvpn-client-on-windows-7-cannot-add-route-from-config-script
ASKER
Great! Thank you.
Could you please let me know how I can add multiple routes to the OpenVPN?
I tried adding several of them, but only the last one actually goes through.
route-up "route add 192.168.1.0 mask 255.255.255.0 172.88.88.1"
route-up "route add 192.168.2.0 mask 255.255.255.0 172.88.88.1"
route-up "route add 192.168.3.0 mask 255.255.255.0 172.88.88.1"
Thank You!
Could you please let me know how I can add multiple routes to the OpenVPN?
I tried adding several of them, but only the last one actually goes through.
route-up "route add 192.168.1.0 mask 255.255.255.0 172.88.88.1"
route-up "route add 192.168.2.0 mask 255.255.255.0 172.88.88.1"
route-up "route add 192.168.3.0 mask 255.255.255.0 172.88.88.1"
Thank You!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks.
I'm using MikroTik router as an OpenVPN servers, and it seems that it may not allow "pushing" the route to clients. The only way that I know of is to include the routes in Client's config, which is what i'm doing.
So, I need these commands to work with Windows/cmd... It doesn't look like "route or push" would work in CMD. :)
I can't use /22 because it would include the networks from which the Clint may be connecting from... (the ips of my remote network is actually 192.168.32.0, 33.0, etc).
Thank You.
I'm using MikroTik router as an OpenVPN servers, and it seems that it may not allow "pushing" the route to clients. The only way that I know of is to include the routes in Client's config, which is what i'm doing.
So, I need these commands to work with Windows/cmd... It doesn't look like "route or push" would work in CMD. :)
I can't use /22 because it would include the networks from which the Clint may be connecting from... (the ips of my remote network is actually 192.168.32.0, 33.0, etc).
Thank You.
For client config see the second part of my post - just insert that into the client config file.
ASKER
Thank you!