Ping only at the opening of VPN

This forum is for admins who are looking to build or expand their OpenVPN setup.

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

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Bzh7000
OpenVpn Newbie
Posts: 14
Joined: Thu Feb 17, 2011 2:20 pm

Route add / route delete

Post by Bzh7000 » Sat Feb 26, 2011 11:30 am

Any solution to automatic :

route add abc.def.ghi.klm MASK 255.255.255.252 192.168.159.1
enter
route delete abc.def.ghi.klm MASK 255.255.255.252 192.168.159.1
enter

and then obtain the share on server ?

Thanks

User avatar
janjust
Forum Team
Posts: 2703
Joined: Fri Aug 20, 2010 2:57 pm
Location: Amsterdam
Contact:

Re: Ping only at the opening of VPN

Post by janjust » Mon Feb 28, 2011 8:24 am

if you need to run such route commands on the client, use an 'up' script/batch file:

Code: Select all

script-security 2
up up.bat
where "up.bat" contains the route/net use commands you want

Instead of using "up up.bat" you can also use

Code: Select all

route-up up.bat

Bzh7000
OpenVpn Newbie
Posts: 14
Joined: Thu Feb 17, 2011 2:20 pm

[Resolved] Re: Ping only at the opening of VPN

Post by Bzh7000 » Tue Mar 01, 2011 9:54 am

I have only 8 IP but the diffused lan
Must be : 178.uvw.xyz.0/24
and NOT : 178.uvw.xyz.88/30

Now, everything is OK now :P

Post Reply