Apr 28, 2020

Jun 04, 2009 Force all network traffic through OpenVPN using iptables It sounds perfect, but if the tunnel is broken unintentionally, the default route may change back and cause traffic to leak. One solution is to use iptables to deny all outgoing traffic except when the traffic passes through the tunnel. If the tunnel is broken, access to the Internet is … IptablesHowTo - Community Help Wiki

There's no obvious policy routing in Linux - you use iptables to mark interesting traffic, iproute2 ip rules to choose an alternate routing table and a default route in the alternate routing table to policy route …

Apr 11, 2020

iptables --set-mark - Route diferent ports through different interfaces. Ask Question Asked 7 years, 6 months ago. Active 1 year, 3 months ago. Viewed 61k times 16. 6. Short story, 3 interfaces, eth0 (LAN), eth1(ADSL), eth2(4G). eth0 -> eth1: Works (ports 80, 443, 4070) eth0 -> eth2: Doesn't happen

How-To: Redirecting network traffic to a new IP using IPtables Dec 05, 2008 Iptables Essentials: Common Firewall Rules and Commands