SOLVED Two OpenVPN Jails. One for remote access, another for qbittorrent. Conflicts with tun* and ifconfig

nvasile

Dabbler
Joined
Sep 12, 2020
Messages
17
Greetings All,

This is my first post, and I apologize if there aren't enough details, I'm not really sure what I should post in terms of configuration/specs, but I'm using FreeNAS-11.3-U4.1

The Problem:

Currently I have three jails: qBittorrent (plugin), OpenVPN, and Plex (plugin). The OpenVPN jail is for remote access to my LAN/SMB share. The qBittorrent jail is for torrenting (of course) and I want to connect to the NordVPN service via OpenVPN to hide my IP and to some extent my traffic from my ISP while torrenting. But if I have my OpenVPN jail running, my qbittorrent can't connect via NordVPN. If I have my qBittorrent jail running my remote OpenVPN connection cant reach any devices on my LAN.
In short: The two jails jails only work as intended when the other is stopped

To my understanding both connections are trying to use the same interface, or dont have permissions to make another interface? (Really not sure)

Here is the output of cat /var/log/messages in the qBittorrent jail while my OpenVPN jail is running and blocking(?) it:
Sep 12 12:41:01 qbit openvpn[6238]: OPTIONS IMPORT: adjusting link_mtu to 1659
Sep 12 12:41:01 qbit openvpn[6238]: OPTIONS IMPORT: data channel crypto options modified
Sep 12 12:41:01 qbit openvpn[6238]: Data Channel: using negotiated cipher 'AES-256-GCM'
Sep 12 12:41:01 qbit openvpn[6238]: Outgoing Data Channel: Cipher 'AES-256-GCM' initialized with 256 bit key
Sep 12 12:41:01 qbit openvpn[6238]: Incoming Data Channel: Cipher 'AES-256-GCM' initialized with 256 bit key
Sep 12 12:41:01 qbit openvpn[6238]: ROUTE_GATEWAY 192.168.1.1/255.255.255.0 IFACE=epair0b HWADDR=06:ce:03:5d:88:80
Sep 12 12:41:01 qbit openvpn[6238]: TUN/TAP device /dev/tun1 opened
Sep 12 12:41:01 qbit openvpn[6238]: /sbin/ifconfig tun1 10.7.0.5 10.7.0.1 mtu 1500 netmask 255.255.255.0 up
Sep 12 12:41:01 qbit openvpn[6238]: FreeBSD ifconfig failed: external program exited with error status: 1
Sep 12 12:41:01 qbit openvpn[6238]: Exiting due to fatal error

and the output of ls -l /dev/tun* (same in or out of the qbit jail)
crw------- 1 uucp dialer 0x114 Sep 12 12:46 /dev/tun0
crw------- 1 uucp dialer 0x115 Sep 12 12:40 /dev/tun1


I setup the OpenVPN jail with this script from Bibi40k and the qBittorrent jail is the official plugin with the openvpn package installed and the ovpn file provided from NordVPN. I'm not very networking-savvy, but I'm comfortable using the cli, so please let me know if there is any configuration/files and their directories that would help debug this.

Thanks,
Nick
 
Top