That script is adding a rule to route all packets marked with 0x1, and then the iptables rules are skipping all local traffic, and only tagging external traffic with 0x1 so that the ip rule will handle the routing.

Reply to this note

Please Login to reply.

Discussion

So if I were to use this, at verbatim, I could still access my local network resources just fine - but would have no unternet, unless I started clash with that tproxy configuration?

And, since my router has three ports (wan, lan1, lan2), how can I make this work network-wide? lan1 and lan2 is where my pc and wifi AP is connected to, whilst wan goes into the modem for PPPoE.