IFROUTE(5)
π 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:natrules 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 π
ip-rule(8)/etc/iproute2/rt_tables
later bestie β this page comes from sysconfig, dated May 2016, and it's the IFROUTE(5) manual. mwah πβ¨
π¦ where this page comes from
- opensuse-leap 16.0: wicked 0.6.80-bp160.2.1 Β· GPL-2.0-or-later
- opensuse-leap 16.0: wicked 0.6.80-bp160.2.1 Β· GPL-2.0-or-later
- opensuse-leap 16.0: wicked 0.6.80-bp160.2.1 Β· GPL-2.0-or-later
- opensuse-leap 16.0: wicked 0.6.80-bp160.2.1 Β· GPL-2.0-or-later
- Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms