Is it possible to set up routing based on source ports?

This forum is for general conversation and user-user networking.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
zxun
OpenVPN User
Posts: 24
Joined: Mon Jan 04, 2021 2:26 am

Is it possible to set up routing based on source ports?

Post by zxun » Sun May 16, 2021 2:11 pm

I am considering such a scenario, that a vpn server is hidden under a normal website.
I want to redirect and outbound request not from that webserver or ssh to another vps.
Obviously it cannot be distinguished by source ip or destination ip but only by source ip.
Is it possible to do so? Thanks.

TinCanTech
OpenVPN Protagonist
Posts: 11139
Joined: Fri Jun 03, 2016 1:17 pm

Re: Is it possible to set up routing based on source ports?

Post by TinCanTech » Sun May 16, 2021 5:12 pm

You probably mean --port-share

Post Reply