Some provider tweaks

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@7118 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2007-08-10 21:36:08 +00:00
parent 71c45e607a
commit 9de9c60e9e
2 changed files with 10 additions and 8 deletions

View File

@ -127,19 +127,20 @@
<para>isusable -- (Added in Shorewall-perl version 4.0.3) invoked when <para>isusable -- (Added in Shorewall-perl version 4.0.3) invoked when
Shorewall is trying to determine the usability of the network Shorewall is trying to determine the usability of the network
interface associated with an optional entry in interface associated with an optional entry in
/etc/shorewall/providers. $1 is the name of the interface which will <filename>/etc/shorewall/providers</filename>. $1 is the name of the
have been determined to be up and configured before the script is interface which will have been determined to be up and configured
invoked. The return value from the script indicates whether or not the before the script is invoked. The return value from the script
interface is usable (0 = usable, other = unusable).</para> indicates whether or not the interface is usable (0 = usable, other =
unusable).</para>
<para>Example:<programlisting># Ping a gateway through the passed interface <para>Example:<programlisting># Ping a gateway through the passed interface
case $1 in case $1 in
eth0) eth0)
ping -c 4 -I eth0 206.124.146.254 &gt; /dev/null 2&gt;&amp;1 ping -c 4 -t 1 -I eth0 206.124.146.254 &gt; /dev/null 2&gt;&amp;1
return return
;; ;;
eth1) eth1)
ping -c 4 -I eth1 192.168.12.254 &gt; /dev/null 2&gt;&amp;1 ping -c 4 -t 1 -I eth1 192.168.12.254 &gt; /dev/null 2&gt;&amp;1
return return
;; ;;
*) *)

View File

@ -23,8 +23,9 @@
<title>Description</title> <title>Description</title>
<para>This file is used to define the hosts that are accessible when the <para>This file is used to define the hosts that are accessible when the
firewall is stopped or when it is in the process of being firewall is stopped or is being stopped. When shorewall-shell is being
[re]started.</para> used, the file also determines those hosts that are accessible when the
firewall is in the process of being [re]started.</para>
<para>The columns in the file are as follows.</para> <para>The columns in the file are as follows.</para>