OpenVPN in jail is running but no access to the internet

zimon

Contributor
Joined
Jan 8, 2016
Messages
134
I am running TrueNAS Core 13 and I installed and configured openvpn in my transmission jail.

I set this in the jail:
Code:
sysrc openvpn_enable="YES"
sysrc openvpn_if="tun"


And allowed tun for the transmission jail:

Code:
iocage set allow_tun=1 JAILNAME


After setting up everything I did a complete reboot of the server.

When starting openvpn it seems to work and there are no errors in the log:

Code:
openvpn[3950]: [PrivateVPN] Peer Connection Initiated with [AF_INET]193.187.91.21:1194


and also tun is open:

Code:
tun0: flags=8043<UP,BROADCAST,RUNNING,MULTICAST> metric 0 mtu 1500
    options=80000<LINKSTATE>
    inet 10.35.14.75 netmask 0xfffffe00 broadcast 10.35.15.255
    groups: tun
    nd6 options=9<PERFORMNUD,IFDISABLED>
    Opened by PID 3950



However when I am in the jail I can't access the internet, I can't do a ping or wget.

Also I noted that I can not access the transmission WebGUI anymore..

When I list my jails the transmission jail is also the only one without DHCP all of a sudden:

Code:
+-----+--------------+-------+--------------+------------+
| 3   | transmission | up    | 13.2-RELEASE | 172.16.0.2 |



Another thing which might be related is that I get some errors from the avahi-daemon:

Code:
Mar 15 11:55:24 theVault 1 2024-03-15T11:55:24.449287-07:00 theVault.local avahi-daemon 1414 - - avahi_normalize_name() failed.
Mar 15 11:55:24 theVault 1 2024-03-15T11:55:24.949632-07:00 theVault.local avahi-daemon 1414 - - avahi_normalize_name() failed.
Mar 15 11:55:25 theVault 1 2024-03-15T11:55:25.461865-07:00 theVault.local avahi-daemon 1414 - - avahi_normalize_name() failed.
Mar 15 11:55:25 theVault 1 2024-03-15T11:55:25.951383-07:00 theVault.local avahi-daemon 1414 - - avahi_normalize_name() failed.
Mar 15 11:55:25 theVault 1 2024-03-15T11:55:25.951428-07:00 theVault.local avahi-daemon 1414 - - avahi_key_new() failed.
Mar 15 11:55:26 theVault 1 2024-03-15T11:55:26.948059-07:00 theVault.local avahi-daemon 1414 - - avahi_normalize_name() failed.
Mar 15 11:55:26 theVault 1 2024-03-15T11:55:26.948105-07:00 theVault.local avahi-daemon 1414 - - avahi_key_new() failed.
Mar 15 12:28:19 theVault kernel: tun0: link state changed to UP


So I did clearly something wrong... but how can I fix it?
 
Last edited:

zimon

Contributor
Joined
Jan 8, 2016
Messages
134
I still have no clue where the issue is, but when I stop the openvpn service I can ping out of the jail and as soon as I start it, I can not ping anymore...
 

zimon

Contributor
Joined
Jan 8, 2016
Messages
134
anyone? I bet I just missed some simple networking settings somewhere...
 
Top