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

    Can't send specific port traffic over VPN

    Scheduled Pinned Locked Moved OpenVPN
    3 Posts 3 Posters 967 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.
    • I Offline
      infolink
      last edited by

      I've setup a rule to send all traffic from a specific client over my VPN interface and this works. But the second I change it to a specific port of the specified client, it seems to ignore the rule and follow my default rule for all other traffic and go out over my WAN interface.

      For example, if I set up a rule (above my default rule) to have all traffic from 192.168.1.200 use my VPN interface, it will send all all the traffic from that client through the VPN interface. So that works, which is good. What isn't good is when I take that same rule and set the Protocol to TCP/UDP and set the Source Port Range to 50000 (torrent client port), it seems to ignore the rule entirely and instead follows the default rule of sending traffic out over the WAN.

      Does anyone have any idea why this is happening?

      Thanks in advance.

      1 Reply Last reply Reply Quote 0
      • M Offline
        marpfsense
        last edited by

        Did you ever find a way to get this to work?

        1 Reply Last reply Reply Quote 0
        • johnpozJ Online
          johnpoz LAYER 8 Global Moderator
          last edited by

          "Source Port Range to 50000 (torrent client port)"

          Because your client is not using that as its source port..  Source ports are normally some random port above 1024.. your sure your traffic was going to X from the source port 50000, you saw that in the clients connects with a simple netstat on the client.

          An intelligent man is sometimes forced to be drunk to spend time with his fools
          If you get confused: Listen to the Music Play
          Please don't Chat/PM me for help, unless mod related
          SG-4860 24.11 | Lab VMs 2.8, 24.11

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