route-up

How to customize and extend your OpenVPN installation.
Post Reply
gopro1000
OpenVpn Newbie
Posts: 5
Joined: Wed Apr 19, 2017 4:44 pm

route-up

Post by gopro1000 » Wed Apr 19, 2017 4:47 pm

Code: Select all

script-security level 2
route-up 'C:\patch\route.bat'
'route.bat' don't start
why?

User avatar
TinCanTech
OpenVPN Protagonist
Posts: 2992
Joined: Fri Jun 03, 2016 1:17 pm

Re: route-up

Post by TinCanTech » Wed Apr 19, 2017 5:00 pm

Code: Select all

script-security 2

gopro1000
OpenVpn Newbie
Posts: 5
Joined: Wed Apr 19, 2017 4:44 pm

Re: route-up

Post by gopro1000 » Thu Apr 20, 2017 11:50 am

Code: Select all

script-security 2
route-up 'C:\patch\route.bat'
respond

Code: Select all

Options error: --route-up script fails with 'C:\patch\route.bat': No such file or directory
Options error: Please correct this error.
'C:\patch\route.bat' - exist

Pippin
OpenVPN Expert
Posts: 256
Joined: Wed Jul 01, 2015 8:03 am

Re: route-up

Post by Pippin » Thu Apr 20, 2017 12:32 pm

Maybe:

Code: Select all

C:\\patch\\route.bat
?

gopro1000
OpenVpn Newbie
Posts: 5
Joined: Wed Apr 19, 2017 4:44 pm

Re: route-up

Post by gopro1000 » Fri Apr 21, 2017 9:45 am

No.

Code: Select all

C:\\patch\\route.bat
'C:\\patch\\route.bat'
"C:\\patch\\route.bat"
write:

Code: Select all

No such file or directory
Options error: Please correct this error.

gopro1000
OpenVpn Newbie
Posts: 5
Joined: Wed Apr 19, 2017 4:44 pm

Re: route-up

Post by gopro1000 » Fri Apr 21, 2017 3:06 pm

I need working example.
Can help me?
win xp + openvpn 2.3.14.

User avatar
TinCanTech
OpenVPN Protagonist
Posts: 2992
Joined: Fri Jun 03, 2016 1:17 pm

Re: route-up

Post by TinCanTech » Sat Apr 22, 2017 1:24 am

Please see:
HOWTO: Request Help !

Please see:
HOWTO: Request Help ! {2}

Server & client log files at --verb 4 please.

See --log & --verb in The Manual v24x


Start here:
HOWTO: For OpenVPN Community Edition

TiTex
OpenVPN Expert
Posts: 231
Joined: Tue Apr 12, 2011 6:22 am

Re: route-up

Post by TiTex » Sat Apr 22, 2017 6:12 am

gopro1000 wrote:I need working example.
Can help me?
win xp + openvpn 2.3.14.
just put your script in the same folder where the config is and use 'route-up script.bat' without specifying a path , are you sure it's script.bat and not script.bat.txt ? :D

gopro1000
OpenVpn Newbie
Posts: 5
Joined: Wed Apr 19, 2017 4:44 pm

Re: route-up

Post by gopro1000 » Sat Apr 22, 2017 6:11 pm

not script.bat.txt :)
'route-up script.bat' no write error.
but 'script.bat' don't launch.

Post Reply