[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.

Welcome to the Slackware Documentation Project

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
howtos:misc:network_policy_based_routing [2018/03/09 09:40 (UTC)] lamerixhowtos:misc:network_policy_based_routing [2018/03/09 09:44 (UTC)] – adding iptables mark info lamerix
Line 63: Line 63:
 You can combine ip-rule with fwmark that you can set with iptables, so can create an ip rule with every match iptables is capable of. You can combine ip-rule with fwmark that you can set with iptables, so can create an ip rule with every match iptables is capable of.
 When using in combination with iptables make sure to __disable dropping of martian packages__ When using in combination with iptables make sure to __disable dropping of martian packages__
 +
 +====== iptables mark ======
 +
 +Simply use -j MARK --set-mark <MARK>. The target MARK only works in mangle.
 +  * For incoming packages use -t mangle -A PREROUTING
 +  * For outgoing packages -t mangle -A OUTPUT. 
  
  
 howtos:misc:network_policy_based_routing ()