[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.
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
howtos:misc:network_policy_based_routing [2018/03/09 09:40 (UTC)] – lamerix | howtos: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 < | ||
+ | * For incoming packages use -t mangle -A PREROUTING | ||
+ | * For outgoing packages -t mangle -A OUTPUT. | ||