I found pbr quite heavy for my basic needs so went with vpnbypass by the same author.
I am using an openvpn client that does not allow any P2P connections
I am using transmission on another machine on LAN not transmission on the router itself.
vpnbypass works fine to bypass a LAN IP for eg. to use netflix without vpn
I am having trouble just opening up the port for transmission, but then I read a few posts up, it has to be open from WAN to WAN otherwise by default the traffic will go through the VPN client.
I would NOT like to direct all traffic from that IP to WAN, if possible, for example DWService remote desktop tool is blocked by my ISP and I can only connect if using openvpn.
a set of rules/routes.
Basically to route everything from the source port 51413 via the wan and not vpn.
The port forward you have there is wrong, destination zone is lan and you need to fill in the internal IP addres of the host running transmission.
AFAIK, transmission doesn't use a single port for everything, there's a bunch of additional ports used for the actual traffic, you may have to add additional port ranges to your settings, wherever it's vpnbypass or pbr.
But since vpnbypass is going to be deleted from OpenWrt 22.03 repo in the near future, you may want to migrate to pbr anyways.
Edit:
I tested the above, it didn't work
I added option src '192.168.1.100/5' to account for Roku streaming sticks on the network that have been assigned static IP's which also need to bypass the vpn 192.168.1.101 to 105
I found pbr a little too heavy for my use case, too many dependencies/requirements. I have extended my install space using exroot, but personally, I just don't like using too many packages.
Having said that, I will fallback to pbr if I am unable to achieve what I'm trying via using rules/routes.
I did not know this about transmission, thank you, I have unchecked 'ramdomize ports' in transmission and am sticking to one, I know this is not what you meant but I'm giving it a try anyway.
The option out 'wan' is wrong there.
The route you have added doesn't make any sense. @bobafetthotmail in the rules wiki page there is nothing mentioned for adding a source or destination port. But this is supported by iproute2, so it is not documented or missing from lua configuration?
I am completely at a loss here, apologies if I'm not making any sense, any help would be appreciated.
Machine IP: 192.168.1.100 (that has transmission running on port 51413, prefer only transmission bypass otherwise if not possible full openvpn client bypass)
3 Roku IP's: 192.168.1.101, 192.168.1.102, 192.168.1.103 (these need full access bypassing openvpn client)
192.168.0.198, is the static lease ip of the router this router is connected to which has a gateway of 192.168.0.1
Thank you so much, any help would be much appreciated.