What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Port based routing won't work

Kees17760

Regular Contributor
Hi All,

I use a WireGuard connction for all outbound traffic, but would like to keep usenet downloads (port 119 and 443) for a certain client routed via WAN (don't want the extra encrypting/decrypting).

I followed part of the instrucions here: https://github-wiki-see.page/m/RMer...iki/Policy-based-Port-routing-(manual-method)

Created /jffs/scripts/nat-start (Yes, it has mod 755) and enabled script processing via GUI (scripts do run).

Added rule:
ip rule add from 0/0 fwmark "0x8000/0x8000" table main prio 9990 # WAN fwmark

tried both IP Address base:
iptables -t mangle -A PREROUTING -i br0 -m iprange --src-range 192.168.30.105 -p tcp -m multiport --dport 119,443 -j MARK --set-mark "0x8000/0x8000"

As wel as MAC address base
iptables -t mangle -A PREROUTING -i br0 -m mac --mac-source xx:xx:xx:xx:xx:xx -p tcp -m multiport --dport 119,443 -j MARK --set-mark "0x8000/0x8000"

However both methods won't work for me. Newsreaders and Outlook can't connect to WAN anymore. Am i missing something and/or are there more elegant/safe ways to achieve this?
 
Last edited:

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