Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Deluge thru PIA VPN

    Scheduled Pinned Locked Moved OpenVPN
    2 Posts 2 Posters 2.7k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      drpete12
      last edited by

      Hi guys

      I have openvpn setup and running on pfsense 2.2.4. I have it using PIA for the VPN service. The issue I have is I would only like my bit torrent (deluge) to run thru the VPN, all my other traffic should be thru my regular internet. I can choose my ports on Deluge but I am at a loss on how or what firewall rules I can use to pass all this thru the router.

      Thanks for any help

      Peter

      1 Reply Last reply Reply Quote 0
      • DerelictD
        Derelict LAYER 8 Netgate
        last edited by

        All you have to do is be able to identify the traffic.  Post your port config page.

        If you have an inbound port forward from PIA to you you don't need to do anything because the traffic is obviously coming in PIA.

        For outgoing ports, you will have to uncheck Use Random Ports then set a port or port range for outgoing connections.

        Then add those ports to the firewall rule that policy routes traffic to the VPN.

        If you set outgoing ports from 63001 to 63010 you would set your firewall rule like this:

        TCP/IP Version: IPv4
        Protocol: TCP/UDP (unless you know it's one or the other)
        Source: Local Host IP
        This is one of the few times it's appropriate to do this, but click advanced
        Source port range: from: 63001 to: 63010
        Destination: any
        Destination port range: from: any to: any Advanced Features
        Advanced options: mark the packet NO_WAN_EGRESS
        Gateway: YOURPIAVPNGW

        A better way to do it might be to add an IP alias to your torrent host and make Deluge use only that. No idea how to do that on your system, but Deluge appears to be able to select an interface for outgoing connections. It looks like mine (MAc) just prompts for an interface name. Might take some digging.

        Chattanooga, Tennessee, USA
        A comprehensive network diagram is worth 10,000 words and 15 conference calls.
        DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
        Do Not Chat For Help! NO_WAN_EGRESS(TM)

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.