Route FreeNAS Torrent downloads through VPN?
-
I hope someone can help. I have been trying to get this to work for days.
I'm trying to route all qBittorrent downloads and couchpotato running on my FreeNAS to go through my VPN provider.
Setup both QBittorrent and Couchpotato to have a static IP on FreeNAS. In Pfsense I have added a Alias with the IP's and called it RouteVPN.
In Firewall Rules/LAN I have added at the top a rule to pass any and Source is single host or alias RouteVPN. In advanced I selected my Group_VPN for the gateway since I have setup three different connections to my VPN provider.When I start either QBittorrent or Couchpotato they will not connect. In the system logs under firewall I can see my user rule is working but I don't see anything coming back. Do I need another rule for traffic coming back in?
-
No you should not need anything to allow reply traffic.
Do those VPN connections work for other traffic? Does the gateway group?
Try setting up a client machine to use that and test from there.
Check the traffic is being NAT'd to the tunnel address correctly in the state table.
Steve
-
We'd need more info to offer more targeted advice, but In general, you'll need to:
-
Policy route the static IP's for QBittorrent and Couchpotato on your LAN tab, which it sounds like you have done. BTW, how are these apps using different IP's on FreeNAS? Are they VIP's that are bridged to the LAN adapter? I'd like to know how these apps are communicating on the network and if they truly are sourcing traffic from the IP's you've configured.
-
Add an Outbound NAT entry for your static IP's that is configured to send matching traffic out your VPN interface
-
Verify the rules on your OpenVPN tab are explicit so the traffic you want to be routed thru the VPN isn't matched on the wrong interface.
-