script to run after the VPN is FULLY established

How to customize and extend your OpenVPN installation.

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

Post Reply
ebersnack
OpenVpn Newbie
Posts: 1
Joined: Tue Dec 22, 2015 9:12 pm

script to run after the VPN is FULLY established

Post by ebersnack » Tue Dec 22, 2015 9:19 pm

Hi

I'm trying to run an action after the VPN comes up completely that talks to things on the VPN network. So, say that my server is

10.0.0.1,

client connects and get's assigned 10.0.0.2 (tcp, tun)
if I try to ping, open a socket to 10.0.0.1 it won't work in a route-up or up script.

Is this expected behaviour? I read somewhere that no data transmission can occur until after all scripts run. Is that correct?
If so, is there any way to run a script after the network is up so that it can actually send data to other members of the VPN?

User avatar
Traffic
OpenVPN Protagonist
Posts: 4066
Joined: Sat Aug 09, 2014 11:24 am

Re: script to run after the VPN is FULLY established

Post by Traffic » Wed Jan 06, 2016 3:45 pm

ebersnack wrote:I read somewhere that no data transmission can occur until after all scripts run. Is that correct?
That is correct.
ebersnack wrote:is there any way to run a script after the network is up
What Operating system ?

Post Reply