Port Based Routing Over VPN

Started by CntrlAltDel, December 06, 2023, 01:09:16 PM

Previous topic - Next topic
Hi there,
I'm new to community and would like to know if it's at all possible to route traffic based on port number? The VPN config is a simple PPTP tunnel.

If I'm understanding the ask, you want to route outbound traffic with a certain destination port number, across the VPN? Assuming it has it's own interface+gateway all you really need to do is create a rule on the appropriate interface; likely LAN, which I'll use in the example below. If not, be sure your Interface and Source settings are aligned.


Action: Pass
Quick: Checked
Interface: LAN
Direction: In
TCP/IP Version: IPv4
Protocol: Per your needs (likely TCP)
Source: LAN Network
Destination: Any
Destination Port Range: Per your needs
Gateway: Whatever the gateway is associated with the VPN (should be obvious when you trigger drop-down menu)


The last 2 lines are where the magic happens.