Register for the iXsystems Community to get an ad-free experience and exclusive discounts in our eBay Store.

Unable to access qBittorrent WebGUI over VPN

Eighty8

Newbie
Joined
Jul 27, 2020
Messages
2
Hi everyone.

I've been trying to get this to work for a few weeks now, but can't seem to figure it out.

I have a qbittorrent jail running with all the traffic getting routed through an openvpn client. When I am at home I can access the GUI no problem, but when connecting to my home network via VPN I am unable to access the GUI. I am also unable to ping the jail over VPN, so I believe this is an issue with my IPFW. My VPN IP is 10.0.10.X while the jail VNET IP is 192.168.39.X

Here's my ipfw.rules file:

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

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

# 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 qbittorrent
$cmd 00101 allow all from me to 192.168.39.0/24 uid qbittorrent
$cmd 00102 allow all from 192.168.39.0/24 to me uid qbittorrent
$cmd 00103 allow all from me to 10.0.10.0/24 uid qbittorrent
$cmd 00104 allow all from 10.0.10.0/24 to me uid qbittorrent

# deny any Transmission connection outside LAN that does not use VPN
$cmd 00105 deny all from any to any uid qbittorrent


I'm no expert in networking, so any advice would be much appreciated!
 

Eighty8

Newbie
Joined
Jul 27, 2020
Messages
2
Looks like I was able to figure it out. For some reason the qBittorrent jail did not have a default gateway set. As soon as I set that, I was able to access the GUI over VPN.
 
Top