From bce67bbee359eec19e6778619b6651100a1c1477 Mon Sep 17 00:00:00 2001 From: Susant Sahani Date: Thu, 14 Sep 2017 19:51:39 +0000 Subject: networkd: add support to configure IP Rule (#5725) Routing Policy rule manipulates rules in the routing policy database control the route selection algorithm. This work supports to configure Rule ``` [RoutingPolicyRule] TypeOfService=0x08 Table=7 From= 192.168.100.18 ``` ``` ip rule show 0: from all lookup local 0: from 192.168.100.18 tos 0x08 lookup 7 ``` V2 changes: 1. Added logic to handle duplicate rules. 2. If rules are changed or deleted and networkd restarted then those are deleted when networkd restarts next time V3: 1. Add parse_fwmark_fwmask --- man/systemd.network.xml | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) (limited to 'man/systemd.network.xml') diff --git a/man/systemd.network.xml b/man/systemd.network.xml index 96d3811372..ea3bf71eea 100644 --- a/man/systemd.network.xml +++ b/man/systemd.network.xml @@ -878,6 +878,55 @@ + + [RoutingPolicyRule] Section Options + + An [RoutingPolicyRule] section accepts the + following keys. Specify several [RoutingPolicyRule] + sections to configure several rules. + + + + TypeOfService= + + Specifies the type of service to match a number between 0 to 255. + + + + From= + + Specifies the source address prefix to match. Possibly followed by a slash and the prefix length. + + + + To= + + Specifies the destination address prefix to match. Possibly followed by a slash and the prefix length. + + + + FirewallMark= + + Specifies the iptables firewall mark value to match (a number between 1 and 4294967295). + + + + Table= + + Specifies the routing table identifier to lookup if the rule + selector matches. The table identifier for a route (a number between 1 and 4294967295). + + + + Priority= + + Specifies the priority of this rule. Priority= is an unsigned + integer. Higher number means lower priority, and rules get processed in order of increasing number. + + + + + [Route] Section Options The [Route] section accepts the -- cgit v1.2.1