Hi, in client config the command "route-up" don´t work.
route-up "C:\\Windows\\System32\\ROUTE.EXE ADD 10.166.0.0 MASK 255.255.0.0 192.168.77.1"
Options error: --route-up script fails with 'C:\Windows\System32\ROUTE.EXE ADD 10.166.0.0 MASK 255.255.0.0 192.168.77.1': No such file or directory
route-up "ROUTE add 10.166.0.0 mask 255.255.0.0 192.168.77.1"
Options error: --route-up script fails with 'ROUTE add 10.166.0.0 mask 255.255.0.0 192.168.77.1': No such file or directory
Any solution?
Best regards
Route add in windows client
Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech
-
- OpenVpn Newbie
- Posts: 1
- Joined: Fri Mar 31, 2017 10:59 pm
-
- OpenVPN Protagonist
- Posts: 11137
- Joined: Fri Jun 03, 2016 1:17 pm
Re: Route add in windows client
Try like so:
Code: Select all
route-up "C:/Windows/System32/ROUTE.EXE ADD 10.166.0.0 MASK 255.255.0.0 192.168.77.1"
-
- OpenVPN Protagonist
- Posts: 11137
- Joined: Fri Jun 03, 2016 1:17 pm
Re: Route add in windows client
A simpler way would be to add to your client config file:
Code: Select all
route 10.166.0.0 255.255.0.0 192.168.77.1