Accessing internet through the channel from route-up script

How to customize and extend your OpenVPN installation.
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

User avatar
TinCanTech
OpenVPN Protagonist
Posts: 5783
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