IFROUTE(5)

πŸ“¦ version 0.6.80, in opensuse-leap 16.0

πŸ’– IFROUTE(5) β€” ifrule πŸ’–

okay bestie, welcome to IFROUTE(5). This is the manual page for ifrule, and we're gonna get you comfy with routing policy rules without the boring-manpage energy. πŸ’…

🌸 NAME 🌸

ifrule β€” configure routing policy rules. slay, that's the whole name section.

✨ SYNOPSIS ✨

/etc/sysconfig/network/ifrule-<interface>

πŸ¦‹ DESCRIPTION πŸ¦‹

So the /etc/sysconfig/network/ifrule-<interface> file gets parsed together with the /etc/sysconfig/network/ifcfg-<interface> file. Their whole job? Applying static routing policy rules while setup of the given interface.

Wanna peek at the rules that are currently assigned? bestie, run this:

ip -4 rule show ; ip -6 rule show

πŸŽ€ SYNTAX πŸŽ€

These files use a syntax that's quite similar to the ip rule add command, but prepended with an ipv4 or ipv6 address family. You can omit the address family when either the from or the to prefix contains an IP address. πŸ‘‘

Also: lines beginning with # and blank lines are ignored. no cap, your comments and empty lines are safe.

πŸ”₯ EXAMPLES πŸ”₯

These example rules do the lookup in separate routing tables depending on the source IP address:

ipv4 from 192.168.235.42   table 42
ipv4 from 192.168.156.51   table 51

ipv6 from 2001:DB8:235::42 table 42
ipv6 from 2001:DB8:156::51 table 51

Custom table id names can be defined in /etc/iproute2/rt_tables. πŸ’–

🚨 Note: nat rules are not supported by current kernels (>2.6) any more. not me finding out the hard way, bestie.

πŸ“ FILES πŸ“

  • /etc/sysconfig/network/ifule-<interface> β€” the file path listed in this section, exactly as written.

πŸ‘‘ AUTHOR πŸ‘‘

Marius Tomaschewski. iconic.

😭 BUGS 😭

Please report bugs as described at <https://bugs.opensuse.org>. 🫢

🌈 SEE ALSO 🌈


later bestie β€” this page comes from sysconfig, dated May 2016, and it's the IFROUTE(5) manual. mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from