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

How do i NOT route tcp port through VPN

Scheduled Pinned Locked Moved OpenVPN
3 Posts 3 Posters 587 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.
  • H
    Hakon74
    last edited by Jun 2, 2017, 7:07 PM

    Hi all.

    I have set up PIA with the "route-nopull" under advanced configuration.

    I then created a Firewall Lan rule to make a ip range use the PIA Gateway.
    Everything is working like it should, but I can no longer access my utorrent gui on tcp 5548 from WAN.

    Can i route only tcp 5548 to use WAN and not VPN, but everything else should use VPN?

    Sorry, have done a lot of reading but can't figure out how to do it.
    Would be grateful if someone could point me in the right direction.

    1 Reply Last reply Reply Quote 0
    • M
      marvosa
      last edited by Jun 4, 2017, 1:03 AM

      Sure.  Just create the port forward and insert it ahead of the rule routing traffic out your VPN.

      1 Reply Last reply Reply Quote 0
      • D
        Derelict LAYER 8 Netgate
        last edited by Jun 4, 2017, 1:31 AM

        Doesn't need to be a port forward. Just put a rule above the one that policy routes to PIA for that destination and don't set a gateway on it.

        https://doc.pfsense.org/index.php/Bypassing_Policy_Routing

        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
        1 out of 3
        • First post
          1/3
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
          This community forum collects and processes your personal information.
          consent.not_received