What's new

MerlinWRT port forward over VPN (VPN director connection)

samw5

Occasional Visitor
I was reading a bunch of posts on selective routing and came across this https://github.com/RMerl/asuswrt-merlin.ng/wiki/Policy-based-Port-routing-(manual-method) on GitHub.

I have a VPN setup and routing a single client (qbittorrent) over that tunnel using VPN director. I have a port forward on the vpn side, however I can't for the life of me figure out how to forward that port over the tunnel using iptables.

I've tried the regular NAT forward route but that apparently isn't working with VPN director.

Then looking at this article I tried to setup a fwmark for the tunnel and forward the port but that doesn't seem to work either. Here is what I have:

ip rule del prio 11810 # deletes dup entry
ip rule add from 0/0 fwmark "0x1000/0x1000" table wgc4 prio 11810 # WCG4 fwmark
iptables -t mangle -A PREROUTING -i br0 -m iprange --src-range 10.77.77.100 -p tcp -m multiport --dport 51257 -j MARK --set-mark 0x1000/0x1000

Don't want to setup a startup script unless things are working first.

Any input would be welcome
 

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top