diff --git a/docs/MultiISP.xml b/docs/MultiISP.xml index 14fba5f4f..5b56c940c 100644 --- a/docs/MultiISP.xml +++ b/docs/MultiISP.xml @@ -575,6 +575,12 @@ Normally, you will list all interfaces on your firewall in this column except those Internet interfaces specified in the INTERFACE column of entries in this file. + + + Beginning with Shorewall 4.4.15, provider routing tables + can be augmeted with additional routes through use of the /etc/shorewall/routes file. + @@ -1106,6 +1112,70 @@ gateway:~ #Note that because we used a priority of 1000, the +
+ /etc/shorewall/routes File + + Beginning with Shorewall 4.4.15, additional routes can be added to + the provider routing tables using the /etc/shorewall/routes file. + + The columns in the file are as follows. + + + + PROVIDER + + + The name or number of a provider defined in shorewall-providers + (5). + + + + + DEST + + + Destination host address or network address. + + + + + GATEWAY (Optional) + + + If specified, gives the IP address of the gateway to the + DEST. + + + + + DEVICE (Optional) + + + Specifies the device route. If neither DEVICE nor GATEWAY is + given, then the INTERFACE specified for the PROVIDER in shorewall-providers + (5). + + + + + Assume the following entry in + /etc/shorewall/providers: + + #NAME NUMBER MARK DUPLICATE INTERFACE GATEWAY OPTIONS COPY +Comcast 1 - xxx eth2 .... + + The following table gives some example entries in the file and the + ip route command which results. + + #PROVIDER DEST GATEWAY DEVICE | Generated Command +Comcast 172.20.1.0/24 - eth0 | ip -4 route add 172.20.1.0/24 dev eth0 table 1 +Comcast 192.168.4.0/24 172.20.1.1 | ip -4 route add 192.168.1.0/24 via 172.20.1.1 table 1 +Comcast 192.168.4.0/24 | ip -4 route add 192.168.4.0/24 dev eth2 table 1 +
+
Looking at the routing tables diff --git a/manpages/shorewall-routes.xml b/manpages/shorewall-routes.xml index 77a12e239..c0117b860 100644 --- a/manpages/shorewall-routes.xml +++ b/manpages/shorewall-routes.xml @@ -57,7 +57,7 @@ - DEVICE (Optional) + DEVICE (Optional) Specifies the device route. If neither DEVICE nor GATEWAY is diff --git a/manpages6/shorewall6-routes.xml b/manpages6/shorewall6-routes.xml index 0b297d850..d29c1313e 100644 --- a/manpages6/shorewall6-routes.xml +++ b/manpages6/shorewall6-routes.xml @@ -57,7 +57,7 @@ - DEVICE (Optional) + DEVICE (Optional) Specifies the device route. If neither DEVICE nor GATEWAY is