2005-07-09 07:55:29 +02:00
|
|
|
Shorewall 2.4.0
|
2002-05-01 01:13:15 +02:00
|
|
|
|
2005-07-09 07:45:05 +02:00
|
|
|
-----------------------------------------------------------------------
|
2005-07-09 07:55:29 +02:00
|
|
|
Problems Corrected since 2.4.0-RC2
|
2003-12-16 22:52:37 +01:00
|
|
|
|
2005-07-09 07:55:29 +02:00
|
|
|
1) Previously, "shorewall status" could list the same routing table's
|
|
|
|
contents more than once.
|
2004-01-27 23:33:32 +01:00
|
|
|
|
2005-07-09 07:45:05 +02:00
|
|
|
-----------------------------------------------------------------------
|
2005-07-09 07:55:29 +02:00
|
|
|
Upgrade Issues when moving to 2.4.0
|
2004-02-08 21:36:46 +01:00
|
|
|
|
2005-07-09 07:55:29 +02:00
|
|
|
1) Shorewall now enforces the restriction that mark values used in
|
|
|
|
/etc/shorewall/tcrules are less than 256. If you are using mark
|
|
|
|
values >= 256, you must change your configuration before you
|
|
|
|
upgrade.
|
2004-02-09 21:46:22 +01:00
|
|
|
|
2005-07-09 07:55:29 +02:00
|
|
|
2) The value "ipp2p" is no longer accepted in the PROTO column of the
|
|
|
|
rules file. This support has never worked as intended and filtering
|
|
|
|
P2P applications this way is a bad idea to begin with (you should be
|
|
|
|
using a proxy).
|
2004-02-09 21:46:22 +01:00
|
|
|
|
2005-07-09 07:55:29 +02:00
|
|
|
3) LEAF/Bering packages for version 2.4.0 and later will not be
|
|
|
|
available from shorewall.net. See http://leaf.sf.net for the lastest
|
|
|
|
version of Shorewall for LEAF variants.
|
2005-07-09 06:45:32 +02:00
|
|
|
-----------------------------------------------------------------------
|
2005-07-09 07:55:29 +02:00
|
|
|
New Features in version 2.4.0
|
2004-03-04 16:24:59 +01:00
|
|
|
|
2005-07-09 07:55:29 +02:00
|
|
|
1) Shorewall 2.4.0 includes support for multiple internet interfaces to
|
|
|
|
different ISPs.
|
2004-03-04 16:24:59 +01:00
|
|
|
|
2005-07-09 07:55:29 +02:00
|
|
|
The file /etc/shorewall/providers may be used to define the
|
|
|
|
different providers. It can actually be used to define alternate
|
|
|
|
routing tables so uses like transparent proxy can use the file as
|
|
|
|
well.
|
2004-03-20 16:40:06 +01:00
|
|
|
|
2005-07-09 07:55:29 +02:00
|
|
|
Columns are:
|
2005-07-09 07:45:05 +02:00
|
|
|
|
2005-07-09 07:55:29 +02:00
|
|
|
NAME The provider name.
|
2005-07-09 07:45:05 +02:00
|
|
|
|
2005-07-09 07:55:29 +02:00
|
|
|
NUMBER The provider number -- a number between 1 and 15
|
2005-07-09 07:45:05 +02:00
|
|
|
|
2005-07-09 07:55:29 +02:00
|
|
|
MARK A FWMARK value used in your
|
|
|
|
/etc/shorewall/tcrules file to direct packets to
|
|
|
|
this provider.
|
2005-07-09 07:45:05 +02:00
|
|
|
|
2005-07-09 07:55:29 +02:00
|
|
|
DUPLICATE The name of an existing table to duplicate. May
|
|
|
|
be 'main' or the name of a previous provider.
|
2005-07-09 07:45:05 +02:00
|
|
|
|
2005-07-09 07:55:29 +02:00
|
|
|
INTERFACE The name of the network interface to the
|
|
|
|
provider. Must be listed in
|
|
|
|
/etc/shorewall/interfaces.
|
2005-07-09 07:45:05 +02:00
|
|
|
|
2005-07-09 07:55:29 +02:00
|
|
|
GATEWAY The IP address of the provider's gateway router.
|
|
|
|
If you enter "detect" here then Shorewall will
|
|
|
|
attempt to determine the gateway IP address
|
|
|
|
automatically.
|
2005-07-09 07:45:05 +02:00
|
|
|
|
2005-07-09 07:55:29 +02:00
|
|
|
OPTIONS A comma-separated list selected from the
|
|
|
|
following:
|
2005-07-09 07:45:05 +02:00
|
|
|
|
2005-07-09 07:55:29 +02:00
|
|
|
track If specified, connections FROM this interface are
|
|
|
|
to be tracked so that responses may be routed
|
|
|
|
back out this same interface.
|
2005-07-09 07:45:05 +02:00
|
|
|
|
2005-07-09 07:55:29 +02:00
|
|
|
You want specify 'track' if internet hosts will be
|
|
|
|
connecting to local servers through this
|
|
|
|
provider.
|
2005-07-09 07:45:05 +02:00
|
|
|
|
2005-07-09 07:55:29 +02:00
|
|
|
Because of limitations in the 'ip' utility and
|
|
|
|
policy routing, you may not use the SAVE or
|
|
|
|
RESTORE tcrules options or use connection
|
|
|
|
marking on any traffic to or from this
|
|
|
|
interface. For traffic control purposes, you
|
|
|
|
must mark packets in the FORWARD chain (or
|
|
|
|
better yet, use the CLASSIFY target).
|
2005-07-09 07:45:05 +02:00
|
|
|
|
2005-07-09 07:55:29 +02:00
|
|
|
balance The providers that have 'balance' specified will
|
|
|
|
get outbound traffic load-balanced among them. By
|
|
|
|
default, all interfaces with 'balance' specified
|
|
|
|
will have the same weight (1). You can change the
|
|
|
|
weight of the route out of the interface by
|
|
|
|
specifiying balance=<weight> where <weight> is
|
|
|
|
the desired route weight.
|
2005-07-09 07:45:05 +02:00
|
|
|
|
2005-07-09 07:55:29 +02:00
|
|
|
Example: You run squid in your DMZ on IP address
|
|
|
|
192.168.2.99. Your DMZ interface is eth2
|
2005-07-09 07:45:05 +02:00
|
|
|
|
2005-07-09 07:55:29 +02:00
|
|
|
#NAME NUMBER MARK DUPLICATE INTERFACE GATEWAY OPTIONS
|
|
|
|
Squid 1 1 - eth2 192.168.2.99 -
|
2005-07-09 07:45:05 +02:00
|
|
|
|
2005-07-09 07:55:29 +02:00
|
|
|
Use of this feature requires that your kernel and iptables
|
|
|
|
support CONNMARK target and conntrack match support. It does NOT
|
|
|
|
require the ROUTE target extension.
|
2005-07-09 07:45:05 +02:00
|
|
|
|
2005-07-09 07:55:29 +02:00
|
|
|
WARNING: The current version of iptables (1.3.1) is broken with
|
|
|
|
respect to CONNMARK and iptables-save/iptables-restore. This means
|
|
|
|
that if you configure multiple ISPs, "shorewall restore" will
|
|
|
|
fail. You must patch your iptables using the patch at
|
|
|
|
http://shorewall.net/pub/shorewall/contrib/iptables/CONNMARK.diff.
|
2005-07-09 07:45:05 +02:00
|
|
|
|
2005-07-09 07:55:29 +02:00
|
|
|
2) Shorewall 2.3.0 supports the 'cmd-owner' option of the owner match
|
|
|
|
facility in Netfilter. Like all owner match options, 'cmd-owner' may
|
|
|
|
only be applied to traffic that originates on the firewall.
|
2005-07-09 07:45:05 +02:00
|
|
|
|
2005-07-09 07:55:29 +02:00
|
|
|
The syntax of the USER/GROUP column in the following files has been
|
|
|
|
extended:
|
2005-07-09 07:45:05 +02:00
|
|
|
|
2005-07-09 07:55:29 +02:00
|
|
|
/etc/shorewall/accounting
|
|
|
|
/etc/shorewall/rules
|
|
|
|
/etc/shorewall/tcrules
|
|
|
|
/usr/share/shorewall/action.template
|
2005-07-09 07:45:05 +02:00
|
|
|
|
2005-07-09 07:55:29 +02:00
|
|
|
To specify a command, prefix the command name with "+".
|
2005-07-09 07:45:05 +02:00
|
|
|
|
2005-07-09 07:55:29 +02:00
|
|
|
Examples:
|
2005-07-09 07:45:05 +02:00
|
|
|
|
2005-07-09 07:55:29 +02:00
|
|
|
+mozilla-bin #The program is named "mozilla-bin"
|
|
|
|
joe+mozilla-bin #The program is named "mozilla-bin" and
|
|
|
|
#is being run by user "joe"
|
|
|
|
joe:users+mozilla-bin #The program is named "mozilla-bin" and
|
|
|
|
#is being run by user "joe" with
|
|
|
|
#effective group "users".
|
2005-07-09 07:45:05 +02:00
|
|
|
|
2005-07-09 07:55:29 +02:00
|
|
|
Note that this is not a particularly robust feature and I would
|
|
|
|
never advertise it as a "Personal Firewall" equivalent. Using
|
|
|
|
symbolic links, it's easy to alias command names to be anything you
|
|
|
|
want.
|
2005-07-09 07:45:05 +02:00
|
|
|
|
2005-07-09 07:55:29 +02:00
|
|
|
3) Support has been added for ipsets
|
|
|
|
(see http://people.netfilter.org/kadlec/ipset/).
|
2005-07-09 07:45:05 +02:00
|
|
|
|
2005-07-09 07:55:29 +02:00
|
|
|
In most places where a host or network address may be used, you may
|
|
|
|
also use the name of an ipset prefaced by "+".
|
2005-07-09 07:45:05 +02:00
|
|
|
|
2005-07-09 07:55:29 +02:00
|
|
|
Example: "+Mirrors"
|
2004-03-20 16:40:06 +01:00
|
|
|
|
2005-07-09 07:55:29 +02:00
|
|
|
The name of the set may be optionally followed by:
|
2005-07-09 07:45:05 +02:00
|
|
|
|
2005-07-09 07:55:29 +02:00
|
|
|
a) a number from 1 to 6 enclosed in square brackets ([]) -- this
|
|
|
|
number indicates the maximum number of ipset binding levels that
|
|
|
|
are to be matched. Depending on the context where the ipset name
|
|
|
|
is used, either all "src" or all "dst" matches will be used.
|
|
|
|
|
|
|
|
Example: "+Mirrors[4]"
|
2005-07-09 07:45:05 +02:00
|
|
|
|
2005-07-09 07:55:29 +02:00
|
|
|
b) a series of "src" and "dst" options separated by commas and
|
|
|
|
inclosed in square brackets ([]). These will be passed directly
|
|
|
|
to iptables in the generated --set clause. See the ipset
|
|
|
|
documentation for details.
|
2005-07-09 06:45:32 +02:00
|
|
|
|
2005-07-09 07:55:29 +02:00
|
|
|
Example: "+Mirrors[src,dst,src]"
|
|
|
|
|
|
|
|
Note that "+Mirrors[4]" used in the SOURCE column of the rules
|
|
|
|
file is equivalent to "+Mirrors[src,src,src,src]".
|
2005-07-09 07:45:05 +02:00
|
|
|
|
2005-07-09 07:55:29 +02:00
|
|
|
To generate a negative match, prefix the "+" with "!" as in
|
|
|
|
"!+Mirrors".
|
2005-07-09 06:45:32 +02:00
|
|
|
|
2005-07-09 07:55:29 +02:00
|
|
|
Example 1: Blacklist all hosts in an ipset named "blacklist"
|
2005-07-09 06:45:32 +02:00
|
|
|
|
2005-07-09 07:55:29 +02:00
|
|
|
/etc/shorewall/blacklist
|
2005-07-09 06:45:32 +02:00
|
|
|
|
2005-07-09 07:55:29 +02:00
|
|
|
#ADDRESS/SUBNET PROTOCOL PORT
|
|
|
|
+blacklist
|
2005-07-09 06:45:32 +02:00
|
|
|
|
2005-07-09 07:55:29 +02:00
|
|
|
Example 2: Allow SSH from all hosts in an ipset named "sshok:
|
2005-07-09 07:45:05 +02:00
|
|
|
|
2005-07-09 07:55:29 +02:00
|
|
|
/etc/shorewall/rules
|
2005-07-09 07:45:05 +02:00
|
|
|
|
2005-07-09 07:55:29 +02:00
|
|
|
#ACTION SOURCE DEST PROTO DEST PORT(S)
|
|
|
|
ACCEPT +sshok fw tcp 22
|
2005-07-09 07:45:05 +02:00
|
|
|
|
2005-07-09 07:55:29 +02:00
|
|
|
Shorewall can automatically capture the contents of your ipsets for
|
|
|
|
you. If you specify SAVE_IPSETS=Yes in /etc/shorewall/shorewall.conf
|
|
|
|
then "shorewall save" will save the contents of your ipsets. The file
|
|
|
|
where the sets are saved is formed by taking the name where the
|
|
|
|
Shorewall configuration is stored and appending "-ipsets". So if you
|
|
|
|
enter the command "shorewall save standard" then your Shorewall
|
|
|
|
configuration will be saved in /var/lib/shorewall/standard and your
|
|
|
|
ipset contents will be saved in /var/lib/shorewall/standard-ipsets.
|
|
|
|
Assuming the default RESTOREFILE setting, if you just enter
|
|
|
|
"shorewall save" then your Shorewall configuration will be saved in
|
|
|
|
/var/lib/shorewall/restore and your ipset contents will be saved in
|
|
|
|
/var/lib/shorewall/restore-ipsets.
|
2005-07-09 07:45:05 +02:00
|
|
|
|
2005-07-09 07:55:29 +02:00
|
|
|
Regardless of the setting of SAVE_IPSETS, the "shorewall -f start"
|
|
|
|
and "shorewall restore" commands will restore the ipset contents
|
|
|
|
corresponding to the Shorewall configuration restored provided that
|
|
|
|
the saved Shorewall configuration specified exists.
|
2005-07-09 07:45:05 +02:00
|
|
|
|
2005-07-09 07:55:29 +02:00
|
|
|
For example, "shorewall restore standard" would restore the ipset
|
|
|
|
contents from /var/lib/shorewall/standard-ipsets provided that
|
|
|
|
/var/lib/shorewall/standard exists and is executable and that
|
|
|
|
/var/lib/shorewall/standard-ipsets exists and is executable.
|
2005-07-09 07:45:05 +02:00
|
|
|
|
2005-07-09 07:55:29 +02:00
|
|
|
Also regardless of the setting of SAVE_IPSETS, the "shorewall forget"
|
|
|
|
command will purge the saved ipset information (if any) associated
|
|
|
|
with the saved shorewall configuration being removed.
|
2005-07-09 07:45:05 +02:00
|
|
|
|
2005-07-09 07:55:29 +02:00
|
|
|
You can also associate ipset contents with Shorewall configuration
|
|
|
|
directories using the following command:
|
2005-07-09 07:45:05 +02:00
|
|
|
|
2005-07-09 07:55:29 +02:00
|
|
|
ipset -S > <config directory>/ipsets
|
2005-07-09 07:45:05 +02:00
|
|
|
|
|
|
|
Example:
|
|
|
|
|
2005-07-09 07:55:29 +02:00
|
|
|
ipset -S > /etc/shorewall/ipsets
|
2005-07-09 07:45:05 +02:00
|
|
|
|
2005-07-09 07:55:29 +02:00
|
|
|
When you start or restart Shorewall (including using the 'try'
|
|
|
|
command) from the configuration directory, your ipsets will be
|
|
|
|
configured from the saved ipsets file. Once again, this behavior is
|
|
|
|
independent of the setting of SAVE_IPSETS.
|
2005-07-09 07:45:05 +02:00
|
|
|
|
2005-07-09 07:55:29 +02:00
|
|
|
Ipsets are well suited for large blacklists. You can maintain your
|
|
|
|
blacklist using the 'ipset' utility without ever having to restart
|
|
|
|
or refresh Shorewall. If you use the SAVE_IPSETS=Yes feature just be
|
|
|
|
sure to "shorewall save" after altering the blacklist ipset(s).
|
2005-07-09 07:45:05 +02:00
|
|
|
|
2005-07-09 07:55:29 +02:00
|
|
|
Example /etc/shorewall/blacklist:
|
2005-07-09 07:45:05 +02:00
|
|
|
|
2005-07-09 07:55:29 +02:00
|
|
|
#ADDRESS/SUBNET PROTOCOL PORT
|
|
|
|
+Blacklist[src,dst]
|
|
|
|
+Blacklistnets[src,dst]
|
2005-07-09 07:45:05 +02:00
|
|
|
|
2005-07-09 07:55:29 +02:00
|
|
|
Create the blacklist ipsets using:
|
2005-07-09 07:45:05 +02:00
|
|
|
|
2005-07-09 07:55:29 +02:00
|
|
|
ipset -N Blacklist iphash
|
|
|
|
ipset -N Blacklistnets nethash
|
2005-07-09 07:45:05 +02:00
|
|
|
|
2005-07-09 07:55:29 +02:00
|
|
|
Add entries
|
2005-07-09 07:45:05 +02:00
|
|
|
|
2005-07-09 07:55:29 +02:00
|
|
|
ipset -A Blacklist 206.124.146.177
|
|
|
|
ipset -A Blacklistnets 206.124.146.0/24
|
2005-07-09 07:45:05 +02:00
|
|
|
|
2005-07-09 07:55:29 +02:00
|
|
|
To allow entries for individual ports
|
2005-07-09 07:45:05 +02:00
|
|
|
|
2005-07-09 07:55:29 +02:00
|
|
|
ipset -N SMTP portmap --from 1 --to 31
|
|
|
|
ipset -A SMTP 25
|
2005-07-09 07:45:05 +02:00
|
|
|
|
2005-07-09 07:55:29 +02:00
|
|
|
ipset -A Blacklist 206.124.146.177
|
|
|
|
ipset -B Blacklist 206.124.146.177 -b SMTP
|
2005-07-09 07:45:05 +02:00
|
|
|
|
2005-07-09 07:55:29 +02:00
|
|
|
Now only port 25 will be blocked from 206.124.146.177.
|
2005-07-09 07:45:05 +02:00
|
|
|
|
2005-07-09 07:55:29 +02:00
|
|
|
4) Shorewall 2.4.0 can now configure routing if your kernel and
|
|
|
|
iptables support the ROUTE target extension. This extension is
|
|
|
|
available in Patch-O-Matic-ng. This feature is *EXPERIMENTAL* since
|
|
|
|
the Netfilter team have no intention of ever releasing the ROUTE
|
|
|
|
target extension to kernel.org.
|
2005-07-09 07:45:05 +02:00
|
|
|
|
2005-07-09 07:55:29 +02:00
|
|
|
Routing is configured using the /etc/shorewall/routes file. Columns
|
|
|
|
in the file are as follows:
|
2005-07-09 07:45:05 +02:00
|
|
|
|
2005-07-09 07:55:29 +02:00
|
|
|
SOURCE Source of the packet. May be any of the
|
|
|
|
following:
|
2005-07-09 07:45:05 +02:00
|
|
|
|
|
|
|
|
2005-07-09 07:55:29 +02:00
|
|
|
- A host or network address
|
|
|
|
- A network interface name.
|
|
|
|
- The name of an ipset prefaced with "+"
|
|
|
|
- $FW (for packets originating on the firewall)
|
|
|
|
- A MAC address in Shorewall format
|
|
|
|
- A range of IP addresses (assuming that your
|
|
|
|
kernel and iptables support range match)
|
|
|
|
- A network interface name followed by ":"
|
|
|
|
and an address or address range.
|
2005-07-09 07:45:05 +02:00
|
|
|
|
2005-07-09 07:55:29 +02:00
|
|
|
DEST Destination of the packet. May be any of the
|
|
|
|
following:
|
2005-07-09 07:45:05 +02:00
|
|
|
|
2005-07-09 07:55:29 +02:00
|
|
|
- A host or network address
|
|
|
|
- A network interface name (determined from
|
|
|
|
routing table(s))
|
|
|
|
- The name of an ipset prefaced with "+"
|
|
|
|
- A network interface name followed by ":"
|
|
|
|
and an address or address range.
|
2005-07-09 07:45:05 +02:00
|
|
|
|
2005-07-09 07:55:29 +02:00
|
|
|
PROTO Protocol - Must be "tcp", "udp", "icmp",
|
|
|
|
"ipp2p", a number, or "all". "ipp2p" requires
|
|
|
|
ipp2p match support in your kernel and
|
|
|
|
iptables.
|
2005-07-09 07:45:05 +02:00
|
|
|
|
2005-07-09 07:55:29 +02:00
|
|
|
PORT(S) Destination Ports. A comma-separated list of
|
|
|
|
Port names (from /etc/services), port numbers
|
|
|
|
or port ranges; if the protocol is "icmp", this
|
|
|
|
column is interpreted as the destination
|
|
|
|
icmp-type(s).
|
2005-07-09 07:45:05 +02:00
|
|
|
|
2005-07-09 07:55:29 +02:00
|
|
|
If the protocol is ipp2p, this column is
|
|
|
|
interpreted as an ipp2p option without the
|
|
|
|
leading "--" (example "bit" for bit-torrent).
|
|
|
|
If no PORT is given, "ipp2p" is assumed.
|
2005-07-09 07:45:05 +02:00
|
|
|
|
2005-07-09 07:55:29 +02:00
|
|
|
This column is ignored if PROTOCOL = all but
|
|
|
|
must be entered if any of the following field
|
|
|
|
is supplied. In that case, it is suggested that
|
|
|
|
this field contain "-"
|
2005-07-09 07:45:05 +02:00
|
|
|
|
2005-07-09 07:55:29 +02:00
|
|
|
SOURCE PORT(S) (Optional) Source port(s). If omitted,
|
|
|
|
any source port is acceptable. Specified as a
|
|
|
|
comma-separated list of port names, port
|
|
|
|
numbers or port ranges.
|
2005-07-09 07:45:05 +02:00
|
|
|
|
2005-07-09 07:55:29 +02:00
|
|
|
TEST Defines a test on the existing packet or
|
|
|
|
connection mark.
|
2005-07-09 07:45:05 +02:00
|
|
|
|
2005-07-09 07:55:29 +02:00
|
|
|
The rule will match only if the test returns
|
|
|
|
true. Tests have the format
|
|
|
|
[!]<value>[/<mask>][:C]
|
2005-07-09 06:45:32 +02:00
|
|
|
|
2005-07-09 07:55:29 +02:00
|
|
|
Where:
|
2005-07-09 07:45:05 +02:00
|
|
|
|
2005-07-09 07:55:29 +02:00
|
|
|
! Inverts the test (not equal)
|
|
|
|
<value> Value of the packet or
|
|
|
|
connection mark.
|
2005-07-09 07:45:05 +02:00
|
|
|
|
2005-07-09 07:55:29 +02:00
|
|
|
<mask> A mask to be applied to the
|
|
|
|
mark before testing
|
|
|
|
:C Designates a connection
|
|
|
|
mark. If omitted, the packet
|
|
|
|
mark's value is tested.
|
2005-07-09 07:45:05 +02:00
|
|
|
|
2005-07-09 07:55:29 +02:00
|
|
|
INTERFACE The interface that the packet is to be routed
|
|
|
|
out of. If you do not specify this field then
|
|
|
|
you must place "-" in this column and enter an
|
|
|
|
IP address in the GATEWAY column.
|
2005-07-09 07:45:05 +02:00
|
|
|
|
2005-07-09 07:55:29 +02:00
|
|
|
GATEWAY The gateway that the packet is to be forewarded
|
|
|
|
through.
|
2005-07-09 07:45:05 +02:00
|
|
|
|
2005-07-09 07:55:29 +02:00
|
|
|
5) Normally when Shorewall is stopped, starting or restarting then
|
|
|
|
connections are allowed from hosts listed in
|
|
|
|
/etc/shorewall/routestopped to the firewall and to other hosts
|
|
|
|
listed in /etc/shorewall/routestopped.
|
2005-07-09 07:45:05 +02:00
|
|
|
|
2005-07-09 07:55:29 +02:00
|
|
|
A new 'source' option is added for entries in that file which will
|
|
|
|
cause Shorewall to allow traffic from the host listed in the entry
|
|
|
|
to ANY other host. When 'source' is specified in an entry, it is
|
|
|
|
unnecessary to also specify 'routeback'.
|
2005-07-09 07:45:05 +02:00
|
|
|
|
2005-07-09 07:55:29 +02:00
|
|
|
Similarly, a new 'dest' option is added which will cause Shorewall
|
|
|
|
to allow traffic to the host listed in the entry from ANY other
|
|
|
|
host. When 'source' is specified in an entry, it is unnecessary to
|
|
|
|
also specify 'routeback'.
|
2005-07-09 07:45:05 +02:00
|
|
|
|
2005-07-09 07:55:29 +02:00
|
|
|
6) This change was implemented by Lorenzo Martignoni. It provides two
|
|
|
|
new commands: "safe-start" and "safe-restart".
|
2005-07-09 07:45:05 +02:00
|
|
|
|
2005-07-09 07:55:29 +02:00
|
|
|
safe-start starts Shorewall then prompts you to ask you if
|
|
|
|
everything looks ok. If you answer "no" or if you don't answer
|
|
|
|
within 60 seconds, a "shorewall clear" is executed.
|
2005-07-09 07:45:05 +02:00
|
|
|
|
2005-07-09 07:55:29 +02:00
|
|
|
safe-restart saves your current configuration to
|
|
|
|
/var/lib/shorewall/safe-restart then issues a "shorewall restart";
|
|
|
|
It then prompts you to ask if you if you want to accept the new
|
|
|
|
configuration. If you answer "no" or if you don't answer within 60
|
|
|
|
seconds, the configuration is restored to its prior state.
|
2005-07-09 07:45:05 +02:00
|
|
|
|
2005-07-09 07:55:29 +02:00
|
|
|
These new commands require either that your /bin/sh supports the
|
|
|
|
"-t" option to the 'read' command or that you have /bin/bash
|
|
|
|
installed.
|
2005-07-09 07:45:05 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|