From f7219371f540cc96826a4cae8912f9557b55c4da Mon Sep 17 00:00:00 2001 From: teastep Date: Mon, 27 Mar 2006 16:35:32 +0000 Subject: [PATCH] Add note about dynamic IP addresses to the Multi-ISP doc git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@3739 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb --- docs/MultiISP.xml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/docs/MultiISP.xml b/docs/MultiISP.xml index d4d66e756..69af33361 100644 --- a/docs/MultiISP.xml +++ b/docs/MultiISP.xml @@ -15,7 +15,7 @@ - 2006-02-26 + 2006-03-27 2005 @@ -438,6 +438,23 @@ net net DROP eth0 130.252.99.27 206.124.146.176 eth1 206.124.146.176 130.252.99.27 + + If you have a Dynamic IP address on either of the interfaces, + you can use shell variables to construct the above rules. For example, + if eth0 had a dynamic IP + address, then: + + /etc/shorewall/params: + + ETH0_IP=$(find_first_interface_address eth0) + + /etc/shorewall/masq: + + #INTERFACE SUBNET ADDRESS +eth0 130.252.99.27 $ETH0_IP +eth1 $ETH0_IP 130.252.99.27 + + If you have masqueraded hosts, be sure to update /etc/shorewall/masq to masquerade to both ISPs. For example, if you masquerade all hosts connected to