i want to route private subnets when connect to openvpn

How to customize and extend your OpenVPN installation.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
plasticMummy
OpenVpn Newbie
Posts: 1
Joined: Tue Nov 22, 2011 12:42 pm

i want to route private subnets when connect to openvpn

Post by plasticMummy » Mon Nov 26, 2012 5:51 am

i want to route private subnets when connect to openvpn
i want to route some subnet like 172.16.2.0 255.255.255.0 do not use openvpn.

i can do it run a bat on windows like

route add 172.16.2.0 mask 255.255.255.0 172.16.1.1

but when i use up parameter on client.ovpn ,
[
script-security 3
up my.bat
]
it is error said can not run it

how can i do it?
thanks

User avatar
maikcat
Forum Team
Posts: 4200
Joined: Wed Jan 12, 2011 9:23 am
Location: Athens,Greece
Contact:

Re: i want to route private subnets when connect to openvpn

Post by maikcat » Mon Nov 26, 2012 6:19 pm

hi there,

please post your configs and more detailed info about your setup

Michael.
Amiga 500 , Zx +2 owner
Long live Dino Dini (Kick off 2 Creator)

Inflammable means flammable? (Dr Nick Riviera,Simsons Season13)

"objects in mirror are losing"

Post Reply