Sonarr jail access to transmission jail running behind a VPN

relli10

Cadet
Joined
Mar 20, 2015
Messages
9
Hi,

I currently have a transmission jail that connects to the internet via an openvpn tun device running within the jail. Open VPN is working correctly and I am able to access the transmission webGUI from any PC on my LAN. However, when I try to setup the transmission server within the Sonarr jail, the Sonarr jail is unable to resolve the transmission server. If I disconnect from my VPN within the transmission jail, Sonarr is able to resolve and connect to the transmission server.

I suspect I need to manually create some form of static route arrangement, but am unsure where I should be doing this.

Details of my network are as follows:

Home LAN network is on 10.0.0.0/24 (255.255.255.0)
modem/router/gateway is 10.0.0.138.
FreeNAS server is 10.0.0.17.
->via NAT within freenas, Transmission jail is 172.16.0.10/30 (epair0b)
->via OpenVPN, Transmission jail is 10.8.0.2/30 (tun1)
->via NAT within freenas, Sonarr jail is 172.16.0.6/30 (epair0b)

details of my ipfw_rules for the VPN within transmission is as follows:

Code:
#!/bin/bash
# Flush out the list before we begin
ipfw -q -f flush

# Set rules command prefix
cmd="ipfw -q add"
vpn="tun0"

# allow all local traffic on the loopback interface
$cmd 00001 allow all from any to any via lo0

# allow any connection to/from VPN interface
$cmd 00010 allow all from any to any via $vpn

# allow connection to/from LAN by Transmission
$cmd 00101 allow all from me to 10.0.0.0/24
$cmd 00102 allow all from 10.0.0.0/24 to me
$cmd 00103 allow all from me to 172.16.0.0/30
$cmd 00104 allow all from 172.16.0.0/30 to me


Is anyone able to provide assistance on how I am able to connect to my transmission server from my sonarr jail, when my VPN is running?

Thanks
 
Top