Accessing internet through the channel from route-up script

How to customize and extend your OpenVPN installation.

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

Post Reply
RandomUser3
OpenVpn Newbie
Posts: 1
Joined: Fri Jul 12, 2019 1:05 pm

Accessing internet through the channel from route-up script

Post by RandomUser3 » Fri Jul 12, 2019 1:18 pm

I am trying to figure out my public IP inside the route-up script. To do so I need to make a connection through the channel, but for some reason it fails. Can anyone confirm that it is impossible to use a channel from the route-up script yet?

For example a 'traceroute -i tun0 8.8.8.8' fails if run from route-up script

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: Accessing internet through the channel from route-up script

Post by TinCanTech » Fri Jul 12, 2019 1:59 pm

ALL scripts launched by openvpn must complete before the tunnel will pass any further data.

It is a security measure.

Post Reply