[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 revision
Previous revision
howtos:misc:network_policy_based_routing [2018/03/09 09:44 (UTC)] – adding iptables mark info lamerixhowtos:misc:network_policy_based_routing [2018/03/09 22:24 (UTC)] (current) – [ip rule] lamerix
Line 18: Line 18:
  
 By default the file should look something like this: By default the file should look something like this:
-<file>+<file bash /etc/iproute2/rt_tables>
 # #
 # reserved values # reserved values
Line 60: Line 60:
 ====== ip rule ====== ====== ip rule ======
  
-Full list of the possible parameters you can get from the [[http://man7.org/linux/man-pages/man8/ip-rule.8.html|man page]]. \ +Full list of the possible parameters you can get from the [[http://man7.org/linux/man-pages/man8/ip-rule.8.html|man page]]. \
-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__+If you notice any packets getting lost, make sure to enable martian packages logging 
 +<code> 
 +net.ipv4.conf.default.log_martians=1 
 +net.ipv4.conf.all.log_martians=1 
 +</code> 
 +If you notice any martian packets getting logged/dropped, you can disable the reverse path filer of the kernel 
 +<code> 
 +net.ipv4.conf.default.rp_filter=0 
 +</code>
  
 ====== iptables mark ====== ====== iptables mark ======
 howtos:misc:network_policy_based_routing ()