2006-11-19 04:36:00 +01:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2008-12-14 19:45:13 +01:00
|
|
|
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd">
|
2006-11-19 04:36:00 +01:00
|
|
|
<refentry>
|
|
|
|
<refmeta>
|
2006-11-19 04:53:26 +01:00
|
|
|
<refentrytitle>shorewall-lite</refentrytitle>
|
2006-11-19 04:36:00 +01:00
|
|
|
|
|
|
|
<manvolnum>8</manvolnum>
|
2014-01-16 17:32:57 +01:00
|
|
|
|
|
|
|
<refmiscinfo>Administrative Commands</refmiscinfo>
|
2006-11-19 04:36:00 +01:00
|
|
|
</refmeta>
|
|
|
|
|
|
|
|
<refnamediv>
|
2006-11-19 04:53:26 +01:00
|
|
|
<refname>shorewall-lite</refname>
|
2006-11-19 04:36:00 +01:00
|
|
|
|
2012-02-08 22:23:53 +01:00
|
|
|
<refpurpose>Administration tool for Shoreline Firewall Lite (Shorewall
|
|
|
|
Lite)</refpurpose>
|
2006-11-19 04:36:00 +01:00
|
|
|
</refnamediv>
|
|
|
|
|
|
|
|
<refsynopsisdiv>
|
2012-02-08 22:23:53 +01:00
|
|
|
<cmdsynopsis>
|
|
|
|
<command>shorewall-lite</command>
|
|
|
|
|
|
|
|
<arg
|
|
|
|
choice="opt"><option>trace</option>|<option>debug</option><arg><option>nolock</option></arg></arg>
|
|
|
|
|
|
|
|
<arg rep="norepeat">-<replaceable>options</replaceable></arg>
|
|
|
|
|
|
|
|
<arg choice="plain"><option>add</option></arg>
|
|
|
|
|
|
|
|
<arg choice="plain"
|
|
|
|
rep="repeat"><replaceable>interface</replaceable>[:<replaceable>host-list</replaceable>]</arg>
|
|
|
|
|
|
|
|
<arg choice="plain"><replaceable>zone</replaceable></arg>
|
|
|
|
</cmdsynopsis>
|
|
|
|
|
2006-11-19 04:36:00 +01:00
|
|
|
<cmdsynopsis>
|
2006-11-19 04:53:26 +01:00
|
|
|
<command>shorewall-lite</command>
|
2006-11-19 04:36:00 +01:00
|
|
|
|
2008-04-10 16:55:08 +02:00
|
|
|
<arg
|
|
|
|
choice="opt"><option>trace</option>|<option>debug</option><arg><option>nolock</option></arg></arg>
|
2007-10-06 18:50:20 +02:00
|
|
|
|
2007-01-14 22:06:05 +01:00
|
|
|
<arg>-<replaceable>options</replaceable></arg>
|
2006-11-19 04:36:00 +01:00
|
|
|
|
2007-01-13 19:33:38 +01:00
|
|
|
<arg choice="plain"><option>allow</option></arg>
|
2006-11-19 04:36:00 +01:00
|
|
|
|
2007-01-14 22:06:05 +01:00
|
|
|
<arg choice="plain"><replaceable>address</replaceable></arg>
|
2006-11-19 04:36:00 +01:00
|
|
|
</cmdsynopsis>
|
|
|
|
|
|
|
|
<cmdsynopsis>
|
2006-11-19 04:53:26 +01:00
|
|
|
<command>shorewall-lite</command>
|
2006-11-19 04:36:00 +01:00
|
|
|
|
2008-04-10 16:55:08 +02:00
|
|
|
<arg
|
|
|
|
choice="opt"><option>trace</option>|<option>debug</option><arg><option>nolock</option></arg></arg>
|
2007-10-06 18:50:20 +02:00
|
|
|
|
2007-01-14 22:06:05 +01:00
|
|
|
<arg>-<replaceable>options</replaceable></arg>
|
2006-11-19 04:36:00 +01:00
|
|
|
|
2012-02-08 22:23:53 +01:00
|
|
|
<arg
|
|
|
|
choice="plain"><option>clear</option><arg><option>-f</option></arg></arg>
|
|
|
|
</cmdsynopsis>
|
|
|
|
|
|
|
|
<cmdsynopsis>
|
|
|
|
<command>shorewall-lite</command>
|
|
|
|
|
|
|
|
<arg
|
|
|
|
choice="opt"><option>trace</option>|<option>debug</option><arg><option>nolock</option></arg></arg>
|
|
|
|
|
|
|
|
<arg rep="norepeat">-<replaceable>options</replaceable></arg>
|
|
|
|
|
|
|
|
<arg choice="plain"><option>delete</option></arg>
|
|
|
|
|
|
|
|
<arg choice="plain"
|
|
|
|
rep="repeat"><replaceable>interface</replaceable>[:<replaceable>host-list</replaceable>]</arg>
|
|
|
|
|
|
|
|
<arg choice="plain"><replaceable>zone</replaceable></arg>
|
2006-11-19 04:36:00 +01:00
|
|
|
</cmdsynopsis>
|
|
|
|
|
2011-12-01 19:25:51 +01:00
|
|
|
<cmdsynopsis>
|
2012-02-08 22:23:53 +01:00
|
|
|
<command>shorewall-lite</command>
|
2011-12-01 19:25:51 +01:00
|
|
|
|
|
|
|
<arg
|
|
|
|
choice="opt"><option>trace</option>|<option>debug</option><arg><option>nolock</option></arg></arg>
|
|
|
|
|
|
|
|
<arg>-<replaceable>options</replaceable></arg>
|
|
|
|
|
|
|
|
<arg choice="plain"><option>disable</option></arg>
|
|
|
|
|
2012-02-08 22:23:53 +01:00
|
|
|
<arg choice="plain">{ <replaceable>interface</replaceable> |
|
|
|
|
<replaceable>provider</replaceable> }</arg>
|
2011-12-01 19:25:51 +01:00
|
|
|
</cmdsynopsis>
|
|
|
|
|
2006-11-19 04:36:00 +01:00
|
|
|
<cmdsynopsis>
|
2006-11-19 04:53:26 +01:00
|
|
|
<command>shorewall-lite</command>
|
2006-11-19 04:36:00 +01:00
|
|
|
|
2008-04-10 16:55:08 +02:00
|
|
|
<arg
|
|
|
|
choice="opt"><option>trace</option>|<option>debug</option><arg><option>nolock</option></arg></arg>
|
2007-10-06 18:50:20 +02:00
|
|
|
|
2007-01-14 22:06:05 +01:00
|
|
|
<arg>-<replaceable>options</replaceable></arg>
|
2006-11-19 04:36:00 +01:00
|
|
|
|
2007-01-13 19:33:38 +01:00
|
|
|
<arg choice="plain"><option>drop</option></arg>
|
2006-11-19 04:36:00 +01:00
|
|
|
|
2012-02-08 22:23:53 +01:00
|
|
|
<arg choice="plain"><replaceable>address</replaceable></arg>
|
2006-11-19 04:36:00 +01:00
|
|
|
</cmdsynopsis>
|
|
|
|
|
|
|
|
<cmdsynopsis>
|
2006-11-19 04:53:26 +01:00
|
|
|
<command>shorewall-lite</command>
|
2006-11-19 04:36:00 +01:00
|
|
|
|
2007-10-06 18:50:20 +02:00
|
|
|
<arg choice="opt"><option>trace</option>|<option>debug</option></arg>
|
|
|
|
|
2007-01-14 22:06:05 +01:00
|
|
|
<arg>-<replaceable>options</replaceable></arg>
|
2006-11-19 04:36:00 +01:00
|
|
|
|
2007-01-13 19:33:38 +01:00
|
|
|
<arg choice="plain"><option>dump</option></arg>
|
2006-11-19 04:36:00 +01:00
|
|
|
|
|
|
|
<arg><option>-x</option></arg>
|
|
|
|
|
2012-02-08 22:23:53 +01:00
|
|
|
<arg><option>-l</option></arg>
|
|
|
|
|
2006-11-19 04:36:00 +01:00
|
|
|
<arg><option>-m</option></arg>
|
2014-12-26 20:57:24 +01:00
|
|
|
|
|
|
|
<arg><option>-c</option></arg>
|
2006-11-19 04:36:00 +01:00
|
|
|
</cmdsynopsis>
|
|
|
|
|
2011-12-01 19:25:51 +01:00
|
|
|
<cmdsynopsis>
|
2012-02-08 22:23:53 +01:00
|
|
|
<command>shorewall-lite</command>
|
2011-12-01 19:25:51 +01:00
|
|
|
|
|
|
|
<arg
|
|
|
|
choice="opt"><option>trace</option>|<option>debug</option><arg><option>nolock</option></arg></arg>
|
|
|
|
|
|
|
|
<arg>-<replaceable>options</replaceable></arg>
|
|
|
|
|
|
|
|
<arg choice="plain"><option>enable</option></arg>
|
|
|
|
|
2011-12-01 22:04:53 +01:00
|
|
|
<arg choice="plain">{ <replaceable>interface</replaceable> |
|
|
|
|
<replaceable>provider</replaceable> }</arg>
|
2011-12-01 19:25:51 +01:00
|
|
|
</cmdsynopsis>
|
|
|
|
|
2006-11-19 04:36:00 +01:00
|
|
|
<cmdsynopsis>
|
2006-11-19 04:53:26 +01:00
|
|
|
<command>shorewall-lite</command>
|
2006-11-19 04:36:00 +01:00
|
|
|
|
2012-02-08 22:23:53 +01:00
|
|
|
<arg
|
|
|
|
choice="opt"><option>trace</option>|<option>debug</option><arg><option>nolock</option></arg></arg>
|
2007-10-06 18:50:20 +02:00
|
|
|
|
2007-01-14 22:06:05 +01:00
|
|
|
<arg>-<replaceable>options</replaceable></arg>
|
2006-11-19 04:36:00 +01:00
|
|
|
|
2007-01-13 19:33:38 +01:00
|
|
|
<arg choice="plain"><option>forget</option></arg>
|
2006-11-19 04:36:00 +01:00
|
|
|
|
2007-01-14 22:06:05 +01:00
|
|
|
<arg><replaceable>filename</replaceable></arg>
|
2006-11-19 04:36:00 +01:00
|
|
|
</cmdsynopsis>
|
|
|
|
|
|
|
|
<cmdsynopsis>
|
2006-11-19 04:53:26 +01:00
|
|
|
<command>shorewall-lite</command>
|
2006-11-19 04:36:00 +01:00
|
|
|
|
2007-10-06 18:50:20 +02:00
|
|
|
<arg choice="opt"><option>trace</option>|<option>debug</option></arg>
|
|
|
|
|
2007-01-14 22:06:05 +01:00
|
|
|
<arg>-<replaceable>options</replaceable></arg>
|
2006-11-19 04:36:00 +01:00
|
|
|
|
2007-01-13 19:33:38 +01:00
|
|
|
<arg choice="plain"><option>help</option></arg>
|
2006-11-19 04:36:00 +01:00
|
|
|
</cmdsynopsis>
|
|
|
|
|
|
|
|
<cmdsynopsis>
|
2006-11-19 04:53:26 +01:00
|
|
|
<command>shorewall-lite</command>
|
2006-11-19 04:36:00 +01:00
|
|
|
|
2007-10-06 18:50:20 +02:00
|
|
|
<arg choice="opt"><option>trace</option>|<option>debug</option></arg>
|
|
|
|
|
2007-01-14 22:06:05 +01:00
|
|
|
<arg>-<replaceable>options</replaceable></arg>
|
2006-11-19 04:36:00 +01:00
|
|
|
|
2012-02-08 22:23:53 +01:00
|
|
|
<arg
|
|
|
|
choice="plain"><option>hits</option><arg><option>-t</option></arg></arg>
|
2006-11-19 04:36:00 +01:00
|
|
|
</cmdsynopsis>
|
|
|
|
|
|
|
|
<cmdsynopsis>
|
2006-11-19 04:53:26 +01:00
|
|
|
<command>shorewall-lite</command>
|
2006-11-19 04:36:00 +01:00
|
|
|
|
2007-10-06 18:50:20 +02:00
|
|
|
<arg choice="opt"><option>trace</option>|<option>debug</option></arg>
|
|
|
|
|
2007-01-14 22:06:05 +01:00
|
|
|
<arg>-<replaceable>options</replaceable></arg>
|
2006-11-19 04:36:00 +01:00
|
|
|
|
2007-01-13 19:33:38 +01:00
|
|
|
<arg choice="plain"><option>ipcalc</option></arg>
|
2006-11-19 04:36:00 +01:00
|
|
|
|
|
|
|
<group choice="req">
|
2007-01-14 22:06:05 +01:00
|
|
|
<arg choice="plain"><replaceable>address</replaceable>
|
|
|
|
<replaceable>mask</replaceable></arg>
|
2006-11-19 04:36:00 +01:00
|
|
|
|
2007-01-14 22:06:05 +01:00
|
|
|
<arg
|
|
|
|
choice="plain"><replaceable>address</replaceable>/<replaceable>vlsm</replaceable></arg>
|
2006-11-19 04:36:00 +01:00
|
|
|
</group>
|
|
|
|
</cmdsynopsis>
|
|
|
|
|
|
|
|
<cmdsynopsis>
|
2006-11-19 04:53:26 +01:00
|
|
|
<command>shorewall-lite</command>
|
2006-11-19 04:36:00 +01:00
|
|
|
|
2007-10-06 18:50:20 +02:00
|
|
|
<arg choice="opt"><option>trace</option>|<option>debug</option></arg>
|
|
|
|
|
2007-01-14 22:06:05 +01:00
|
|
|
<arg>-<replaceable>options</replaceable></arg>
|
2006-11-19 04:36:00 +01:00
|
|
|
|
2007-01-13 19:33:38 +01:00
|
|
|
<arg choice="plain"><option>iprange</option></arg>
|
2006-11-19 04:36:00 +01:00
|
|
|
|
2007-01-14 22:06:05 +01:00
|
|
|
<arg
|
|
|
|
choice="plain"><replaceable>address1</replaceable><option>-</option><replaceable>address2</replaceable></arg>
|
2006-11-19 04:36:00 +01:00
|
|
|
</cmdsynopsis>
|
|
|
|
|
2012-02-08 22:23:53 +01:00
|
|
|
<cmdsynopsis>
|
|
|
|
<command>shorewall-lite</command>
|
|
|
|
|
|
|
|
<arg choice="opt"><option>trace</option>|<option>debug</option></arg>
|
|
|
|
|
|
|
|
<arg>-<replaceable>options</replaceable></arg>
|
|
|
|
|
|
|
|
<arg choice="plain"><option>iptrace</option></arg>
|
|
|
|
|
|
|
|
<arg choice="plain"><replaceable>iptables match
|
|
|
|
expression</replaceable></arg>
|
|
|
|
</cmdsynopsis>
|
|
|
|
|
2006-11-19 04:36:00 +01:00
|
|
|
<cmdsynopsis>
|
2006-11-19 04:53:26 +01:00
|
|
|
<command>shorewall-lite</command>
|
2006-11-19 04:36:00 +01:00
|
|
|
|
2008-04-10 16:55:08 +02:00
|
|
|
<arg
|
|
|
|
choice="opt"><option>trace</option>|<option>debug</option><arg><option>nolock</option></arg></arg>
|
2007-10-06 18:50:20 +02:00
|
|
|
|
2007-01-14 22:06:05 +01:00
|
|
|
<arg>-<replaceable>options</replaceable></arg>
|
2006-11-19 04:36:00 +01:00
|
|
|
|
2007-01-13 19:33:38 +01:00
|
|
|
<arg choice="plain"><option>logdrop</option></arg>
|
2006-11-19 04:36:00 +01:00
|
|
|
|
2007-01-14 22:06:05 +01:00
|
|
|
<arg choice="plain"><replaceable>address</replaceable></arg>
|
2006-11-19 04:36:00 +01:00
|
|
|
</cmdsynopsis>
|
|
|
|
|
|
|
|
<cmdsynopsis>
|
2006-11-19 04:53:26 +01:00
|
|
|
<command>shorewall-lite</command>
|
2006-11-19 04:36:00 +01:00
|
|
|
|
2007-10-06 18:50:20 +02:00
|
|
|
<arg choice="opt"><option>trace</option>|<option>debug</option></arg>
|
|
|
|
|
2007-01-14 22:06:05 +01:00
|
|
|
<arg>-<replaceable>options</replaceable></arg>
|
2006-11-19 04:36:00 +01:00
|
|
|
|
2007-01-13 19:33:38 +01:00
|
|
|
<arg choice="plain"><option>logwatch</option></arg>
|
2006-11-19 04:36:00 +01:00
|
|
|
|
|
|
|
<arg><option>-m</option></arg>
|
|
|
|
|
2007-01-14 22:06:05 +01:00
|
|
|
<arg><replaceable>refresh-interval</replaceable></arg>
|
2006-11-19 04:36:00 +01:00
|
|
|
</cmdsynopsis>
|
|
|
|
|
|
|
|
<cmdsynopsis>
|
2006-11-19 04:53:26 +01:00
|
|
|
<command>shorewall-lite</command>
|
2006-11-19 04:36:00 +01:00
|
|
|
|
2008-04-10 16:55:08 +02:00
|
|
|
<arg
|
|
|
|
choice="opt"><option>trace</option>|<option>debug</option><arg><option>nolock</option></arg></arg>
|
2007-10-06 18:50:20 +02:00
|
|
|
|
2007-01-14 22:06:05 +01:00
|
|
|
<arg>-<replaceable>options</replaceable></arg>
|
2006-11-19 04:36:00 +01:00
|
|
|
|
2007-01-13 19:33:38 +01:00
|
|
|
<arg choice="plain"><option>logreject</option></arg>
|
2006-11-19 04:36:00 +01:00
|
|
|
|
2007-01-14 22:06:05 +01:00
|
|
|
<arg choice="plain"><replaceable>address</replaceable></arg>
|
2006-11-19 04:36:00 +01:00
|
|
|
</cmdsynopsis>
|
|
|
|
|
2012-02-08 22:23:53 +01:00
|
|
|
<cmdsynopsis>
|
|
|
|
<command>shorewall-lite</command>
|
|
|
|
|
|
|
|
<arg choice="opt"><option>trace</option>|<option>debug</option></arg>
|
|
|
|
|
|
|
|
<arg>-<replaceable>options</replaceable></arg>
|
|
|
|
|
|
|
|
<arg choice="plain"><option>noiptrace</option></arg>
|
|
|
|
|
|
|
|
<arg choice="plain"><replaceable>iptables match
|
|
|
|
expression</replaceable></arg>
|
|
|
|
</cmdsynopsis>
|
|
|
|
|
2006-11-19 04:36:00 +01:00
|
|
|
<cmdsynopsis>
|
2006-11-19 04:53:26 +01:00
|
|
|
<command>shorewall-lite</command>
|
2006-11-19 04:36:00 +01:00
|
|
|
|
2008-04-10 16:55:08 +02:00
|
|
|
<arg
|
|
|
|
choice="opt"><option>trace</option>|<option>debug</option><arg><option>nolock</option></arg></arg>
|
2007-10-06 18:50:20 +02:00
|
|
|
|
2007-01-14 22:06:05 +01:00
|
|
|
<arg>-<replaceable>options</replaceable></arg>
|
2006-11-19 04:36:00 +01:00
|
|
|
|
2007-01-13 19:33:38 +01:00
|
|
|
<arg choice="plain"><option>reject</option></arg>
|
2006-11-19 04:36:00 +01:00
|
|
|
|
2007-01-14 22:06:05 +01:00
|
|
|
<arg choice="plain"><replaceable>address</replaceable></arg>
|
2006-11-19 04:36:00 +01:00
|
|
|
</cmdsynopsis>
|
|
|
|
|
|
|
|
<cmdsynopsis>
|
2006-11-19 04:53:26 +01:00
|
|
|
<command>shorewall-lite</command>
|
2006-11-19 04:36:00 +01:00
|
|
|
|
2008-04-10 16:55:08 +02:00
|
|
|
<arg
|
|
|
|
choice="opt"><option>trace</option>|<option>debug</option><arg><option>nolock</option></arg></arg>
|
2007-10-06 18:50:20 +02:00
|
|
|
|
2007-01-14 22:06:05 +01:00
|
|
|
<arg>-<replaceable>options</replaceable></arg>
|
2006-11-19 04:36:00 +01:00
|
|
|
|
2012-02-08 22:23:53 +01:00
|
|
|
<arg choice="plain"><option>reset</option></arg>
|
|
|
|
</cmdsynopsis>
|
|
|
|
|
|
|
|
<cmdsynopsis>
|
|
|
|
<command>shorewall-lite</command>
|
|
|
|
|
2008-03-24 21:07:15 +01:00
|
|
|
<arg
|
2012-02-08 22:23:53 +01:00
|
|
|
choice="opt"><option>trace</option>|<option>debug</option><arg><option>nolock</option></arg></arg>
|
|
|
|
|
|
|
|
<arg>-<replaceable>options</replaceable></arg>
|
|
|
|
|
|
|
|
<arg choice="plain"><option>restart</option></arg>
|
|
|
|
|
|
|
|
<arg><option>-n</option></arg>
|
|
|
|
|
2014-11-01 17:37:57 +01:00
|
|
|
<arg><option>-p</option><arg><option>-C</option></arg></arg>
|
2012-02-08 22:23:53 +01:00
|
|
|
|
|
|
|
<arg><replaceable>directory</replaceable></arg>
|
2006-11-19 04:36:00 +01:00
|
|
|
</cmdsynopsis>
|
|
|
|
|
|
|
|
<cmdsynopsis>
|
2006-11-19 04:53:26 +01:00
|
|
|
<command>shorewall-lite</command>
|
2006-11-19 04:36:00 +01:00
|
|
|
|
2008-04-10 16:55:08 +02:00
|
|
|
<arg
|
|
|
|
choice="opt"><option>trace</option>|<option>debug</option><arg><option>nolock</option></arg></arg>
|
2007-10-06 18:50:20 +02:00
|
|
|
|
2007-01-14 22:06:05 +01:00
|
|
|
<arg>-<replaceable>options</replaceable></arg>
|
2006-11-19 04:36:00 +01:00
|
|
|
|
2007-01-13 19:33:38 +01:00
|
|
|
<arg choice="plain"><option>restore</option></arg>
|
2006-11-19 04:36:00 +01:00
|
|
|
|
2014-11-01 17:37:57 +01:00
|
|
|
<arg><option>-C</option></arg>
|
|
|
|
|
2007-01-14 22:06:05 +01:00
|
|
|
<arg><replaceable>filename</replaceable></arg>
|
2006-11-19 04:36:00 +01:00
|
|
|
</cmdsynopsis>
|
|
|
|
|
2014-07-28 16:04:56 +02:00
|
|
|
<cmdsynopsis>
|
|
|
|
<command>shorewall-lite</command>
|
|
|
|
|
|
|
|
<arg
|
|
|
|
choice="opt"><option>trace</option>|<option>debug</option><arg><option>nolock</option></arg></arg>
|
|
|
|
|
|
|
|
<arg>-<replaceable>options</replaceable></arg>
|
|
|
|
|
|
|
|
<arg choice="plain"><option>run</option></arg>
|
|
|
|
|
|
|
|
<arg choice="plain">function</arg>
|
|
|
|
|
|
|
|
<arg><replaceable>parameter ...</replaceable></arg>
|
|
|
|
</cmdsynopsis>
|
|
|
|
|
2006-11-19 04:36:00 +01:00
|
|
|
<cmdsynopsis>
|
2006-11-19 04:53:26 +01:00
|
|
|
<command>shorewall-lite</command>
|
2006-11-19 04:36:00 +01:00
|
|
|
|
2008-04-10 16:55:08 +02:00
|
|
|
<arg
|
|
|
|
choice="opt"><option>trace</option>|<option>debug</option><arg><option>nolock</option></arg></arg>
|
2007-10-06 18:50:20 +02:00
|
|
|
|
2007-01-14 22:06:05 +01:00
|
|
|
<arg>-<replaceable>options</replaceable></arg>
|
2006-11-19 04:36:00 +01:00
|
|
|
|
2014-11-01 17:37:57 +01:00
|
|
|
<arg
|
|
|
|
choice="plain"><option>save</option><arg><option>-C</option></arg></arg>
|
2006-11-19 04:36:00 +01:00
|
|
|
|
2007-01-14 22:06:05 +01:00
|
|
|
<arg choice="opt"><replaceable>filename</replaceable></arg>
|
2006-11-19 04:36:00 +01:00
|
|
|
</cmdsynopsis>
|
|
|
|
|
|
|
|
<cmdsynopsis>
|
2006-11-19 04:53:26 +01:00
|
|
|
<command>shorewall-lite</command>
|
2006-11-19 04:36:00 +01:00
|
|
|
|
2007-10-06 18:50:20 +02:00
|
|
|
<arg choice="opt"><option>trace</option>|<option>debug</option></arg>
|
|
|
|
|
2007-01-14 22:06:05 +01:00
|
|
|
<arg>-<replaceable>options</replaceable></arg>
|
2006-11-19 04:36:00 +01:00
|
|
|
|
2014-12-26 21:15:28 +01:00
|
|
|
<arg choice="req"><option>show | list | ls </option></arg>
|
2006-11-19 04:36:00 +01:00
|
|
|
|
2012-10-20 06:03:01 +02:00
|
|
|
<arg><option>-b</option></arg>
|
|
|
|
|
2006-11-19 04:36:00 +01:00
|
|
|
<arg><option>-x</option></arg>
|
|
|
|
|
2012-02-08 22:23:53 +01:00
|
|
|
<arg><option>-l</option></arg>
|
|
|
|
|
2006-11-21 23:52:07 +01:00
|
|
|
<arg><option>-t</option>
|
2012-02-08 22:23:53 +01:00
|
|
|
{<option>filter</option>|<option>mangle</option>|<option>nat</option>|<option>raw|rawpost</option>}</arg>
|
2006-11-21 23:52:07 +01:00
|
|
|
|
2007-06-28 20:21:28 +02:00
|
|
|
<arg><arg><option>chain</option></arg><arg choice="plain"
|
|
|
|
rep="repeat"><replaceable>chain</replaceable></arg></arg>
|
2006-11-19 04:36:00 +01:00
|
|
|
</cmdsynopsis>
|
|
|
|
|
2014-07-28 17:31:20 +02:00
|
|
|
<cmdsynopsis>
|
|
|
|
<command>shorewall-lite</command>
|
|
|
|
|
|
|
|
<arg choice="opt"><option>trace</option>|<option>debug</option></arg>
|
|
|
|
|
|
|
|
<arg>-<replaceable>options</replaceable></arg>
|
|
|
|
|
2014-12-26 21:15:28 +01:00
|
|
|
<arg choice="req"><option>show | list | ls </option></arg>
|
2014-07-28 17:31:20 +02:00
|
|
|
|
|
|
|
<arg><option>-x</option></arg>
|
|
|
|
|
|
|
|
<arg choice="plain"><option>{bl|blacklists}</option></arg>
|
|
|
|
</cmdsynopsis>
|
|
|
|
|
2006-11-19 04:36:00 +01:00
|
|
|
<cmdsynopsis>
|
2006-11-19 04:53:26 +01:00
|
|
|
<command>shorewall-lite</command>
|
2006-11-19 04:36:00 +01:00
|
|
|
|
2007-10-06 18:50:20 +02:00
|
|
|
<arg choice="opt"><option>trace</option>|<option>debug</option></arg>
|
|
|
|
|
2007-01-14 22:06:05 +01:00
|
|
|
<arg>-<replaceable>options</replaceable></arg>
|
2006-11-19 04:36:00 +01:00
|
|
|
|
2014-12-26 21:15:28 +01:00
|
|
|
<arg choice="req"><option>show | list | ls </option></arg>
|
2006-11-19 04:36:00 +01:00
|
|
|
|
|
|
|
<arg><option>-f</option></arg>
|
|
|
|
|
2007-01-13 19:33:38 +01:00
|
|
|
<arg choice="plain"><option>capabilities</option></arg>
|
2006-11-19 04:36:00 +01:00
|
|
|
</cmdsynopsis>
|
|
|
|
|
|
|
|
<cmdsynopsis>
|
2006-11-19 04:53:26 +01:00
|
|
|
<command>shorewall-lite</command>
|
2006-11-19 04:36:00 +01:00
|
|
|
|
2007-10-06 18:50:20 +02:00
|
|
|
<arg choice="opt"><option>trace</option>|<option>debug</option></arg>
|
|
|
|
|
2007-01-14 22:06:05 +01:00
|
|
|
<arg>-<replaceable>options</replaceable></arg>
|
2006-11-19 04:36:00 +01:00
|
|
|
|
2014-12-26 21:15:28 +01:00
|
|
|
<arg choice="req"><option>show | list | ls </option></arg>
|
2006-11-19 04:36:00 +01:00
|
|
|
|
|
|
|
<arg
|
2013-07-12 19:37:27 +02:00
|
|
|
choice="req"><option>classifiers|connections|config|events|filters|ip|ipa|zones|policies|marks</option></arg>
|
|
|
|
</cmdsynopsis>
|
|
|
|
|
|
|
|
<cmdsynopsis>
|
|
|
|
<command>shorewall-lite</command>
|
|
|
|
|
|
|
|
<arg choice="opt"><option>trace</option>|<option>debug</option></arg>
|
|
|
|
|
|
|
|
<arg>-<replaceable>options</replaceable></arg>
|
|
|
|
|
2014-12-26 21:15:28 +01:00
|
|
|
<arg choice="req"><option>show | list | ls </option></arg>
|
2013-07-12 19:37:27 +02:00
|
|
|
|
|
|
|
<arg choice="plain"><option>event</option><arg
|
|
|
|
choice="plain"><replaceable>event</replaceable></arg></arg>
|
2006-11-19 04:36:00 +01:00
|
|
|
</cmdsynopsis>
|
|
|
|
|
|
|
|
<cmdsynopsis>
|
2006-11-19 04:53:26 +01:00
|
|
|
<command>shorewall-lite</command>
|
2006-11-19 04:36:00 +01:00
|
|
|
|
2007-10-06 18:50:20 +02:00
|
|
|
<arg choice="opt"><option>trace</option>|<option>debug</option></arg>
|
|
|
|
|
2007-01-14 22:06:05 +01:00
|
|
|
<arg>-<replaceable>options</replaceable></arg>
|
2006-11-19 04:36:00 +01:00
|
|
|
|
2014-12-26 21:15:28 +01:00
|
|
|
<arg choice="req"><option>show | list | ls </option></arg>
|
|
|
|
|
|
|
|
<arg><option>-c</option></arg>
|
|
|
|
|
|
|
|
<arg choice="plain"><option>routing</option></arg>
|
|
|
|
</cmdsynopsis>
|
|
|
|
|
|
|
|
<cmdsynopsis>
|
|
|
|
<command>shorewall-lite</command>
|
|
|
|
|
|
|
|
<arg choice="opt"><option>trace</option>|<option>debug</option></arg>
|
|
|
|
|
|
|
|
<arg>-<replaceable>options</replaceable></arg>
|
|
|
|
|
|
|
|
<arg choice="req"><option>show | list | ls </option></arg>
|
2006-11-19 04:36:00 +01:00
|
|
|
|
|
|
|
<arg><option>-x</option></arg>
|
|
|
|
|
2014-12-26 23:05:43 +01:00
|
|
|
<arg choice="req"><option>mangle|nat|raw|rawpost</option></arg>
|
2006-11-19 04:36:00 +01:00
|
|
|
</cmdsynopsis>
|
|
|
|
|
|
|
|
<cmdsynopsis>
|
2006-11-19 04:53:26 +01:00
|
|
|
<command>shorewall-lite</command>
|
2006-11-19 04:36:00 +01:00
|
|
|
|
2007-10-06 18:50:20 +02:00
|
|
|
<arg choice="opt"><option>trace</option>|<option>debug</option></arg>
|
|
|
|
|
2007-01-14 22:06:05 +01:00
|
|
|
<arg>-<replaceable>options</replaceable></arg>
|
2006-11-19 04:36:00 +01:00
|
|
|
|
2014-12-26 21:15:28 +01:00
|
|
|
<arg choice="req"><option>show | list | ls </option></arg>
|
2006-11-19 04:36:00 +01:00
|
|
|
|
|
|
|
<arg choice="plain"><option>tc</option></arg>
|
|
|
|
</cmdsynopsis>
|
|
|
|
|
|
|
|
<cmdsynopsis>
|
2006-11-19 04:53:26 +01:00
|
|
|
<command>shorewall-lite</command>
|
2006-11-19 04:36:00 +01:00
|
|
|
|
2007-10-06 18:50:20 +02:00
|
|
|
<arg choice="opt"><option>trace</option>|<option>debug</option></arg>
|
|
|
|
|
2007-01-14 22:06:05 +01:00
|
|
|
<arg>-<replaceable>options</replaceable></arg>
|
2006-11-19 04:36:00 +01:00
|
|
|
|
2014-12-26 21:15:28 +01:00
|
|
|
<arg choice="req"><option>show | list | ls </option></arg>
|
2006-11-19 04:36:00 +01:00
|
|
|
|
|
|
|
<arg><option>-m</option></arg>
|
|
|
|
|
2007-01-13 19:33:38 +01:00
|
|
|
<arg choice="plain"><option>log</option></arg>
|
2006-11-19 04:36:00 +01:00
|
|
|
</cmdsynopsis>
|
|
|
|
|
|
|
|
<cmdsynopsis>
|
2006-11-19 04:53:26 +01:00
|
|
|
<command>shorewall-lite</command>
|
2006-11-19 04:36:00 +01:00
|
|
|
|
2008-04-10 16:55:08 +02:00
|
|
|
<arg
|
|
|
|
choice="opt"><option>trace</option>|<option>debug</option><arg><option>nolock</option></arg></arg>
|
2007-10-06 18:50:20 +02:00
|
|
|
|
2007-01-14 22:06:05 +01:00
|
|
|
<arg>-<replaceable>options</replaceable></arg>
|
2006-11-19 04:36:00 +01:00
|
|
|
|
2007-01-13 19:33:38 +01:00
|
|
|
<arg choice="plain"><option>start</option></arg>
|
2006-11-19 04:36:00 +01:00
|
|
|
|
2008-03-24 21:07:15 +01:00
|
|
|
<arg><option>-n</option></arg>
|
|
|
|
|
2012-02-08 22:23:53 +01:00
|
|
|
<arg><option>-p</option></arg>
|
2014-10-30 18:42:39 +01:00
|
|
|
|
|
|
|
<arg><option>-f</option></arg>
|
2014-11-01 17:37:57 +01:00
|
|
|
|
|
|
|
<arg><option>-C</option></arg>
|
2006-11-19 04:36:00 +01:00
|
|
|
</cmdsynopsis>
|
|
|
|
|
|
|
|
<cmdsynopsis>
|
2006-11-19 04:53:26 +01:00
|
|
|
<command>shorewall-lite</command>
|
2006-11-19 04:36:00 +01:00
|
|
|
|
2008-04-10 16:55:08 +02:00
|
|
|
<arg
|
|
|
|
choice="opt"><option>trace</option>|<option>debug</option><arg><option>nolock</option></arg></arg>
|
2007-10-06 18:50:20 +02:00
|
|
|
|
2007-01-14 22:06:05 +01:00
|
|
|
<arg>-<replaceable>options</replaceable></arg>
|
2006-11-19 04:36:00 +01:00
|
|
|
|
2007-01-13 19:33:38 +01:00
|
|
|
<arg choice="plain"><option>stop</option></arg>
|
2006-11-19 04:36:00 +01:00
|
|
|
</cmdsynopsis>
|
|
|
|
|
|
|
|
<cmdsynopsis>
|
2006-11-19 04:53:26 +01:00
|
|
|
<command>shorewall-lite</command>
|
2006-11-19 04:36:00 +01:00
|
|
|
|
2007-10-06 18:50:20 +02:00
|
|
|
<arg choice="opt"><option>trace</option>|<option>debug</option></arg>
|
|
|
|
|
2007-01-14 22:06:05 +01:00
|
|
|
<arg>-<replaceable>options</replaceable></arg>
|
2006-11-19 04:36:00 +01:00
|
|
|
|
2014-07-28 17:31:20 +02:00
|
|
|
<arg choice="plain"><arg
|
|
|
|
choice="plain"><option>status</option><arg><option>-i</option></arg></arg></arg>
|
2006-11-19 04:36:00 +01:00
|
|
|
</cmdsynopsis>
|
|
|
|
|
|
|
|
<cmdsynopsis>
|
2006-11-19 04:53:26 +01:00
|
|
|
<command>shorewall-lite</command>
|
2006-11-19 04:36:00 +01:00
|
|
|
|
2007-10-06 18:50:20 +02:00
|
|
|
<arg choice="opt"><option>trace</option>|<option>debug</option></arg>
|
|
|
|
|
2007-01-14 22:06:05 +01:00
|
|
|
<arg>-<replaceable>options</replaceable></arg>
|
2006-11-19 04:36:00 +01:00
|
|
|
|
2012-02-08 22:23:53 +01:00
|
|
|
<arg
|
|
|
|
choice="plain"><option>version</option><arg><option>-a</option></arg></arg>
|
2006-11-19 04:36:00 +01:00
|
|
|
</cmdsynopsis>
|
|
|
|
</refsynopsisdiv>
|
|
|
|
|
|
|
|
<refsect1>
|
|
|
|
<title>Description</title>
|
|
|
|
|
2006-11-19 17:55:13 +01:00
|
|
|
<para>The shorewall-lite utility is used to control the Shoreline Firewall
|
2012-02-08 22:23:53 +01:00
|
|
|
Lite (Shorewall Lite).</para>
|
2006-11-19 04:36:00 +01:00
|
|
|
</refsect1>
|
|
|
|
|
|
|
|
<refsect1>
|
|
|
|
<title>Options</title>
|
|
|
|
|
2007-10-06 18:50:20 +02:00
|
|
|
<para>The <option>trace</option> and <option>debug</option> options are
|
|
|
|
used for debugging. See <ulink
|
2012-02-08 22:23:53 +01:00
|
|
|
url="http://www.shorewall.net/starting_and_stopping_shorewall.htm#Trace">http://www.shorewall.net/starting_and_stopping_shorewall.htm#Trace</ulink>.</para>
|
2007-10-06 18:50:20 +02:00
|
|
|
|
2008-04-10 16:55:08 +02:00
|
|
|
<para>The nolock <option>option</option> prevents the command from
|
2012-02-08 22:23:53 +01:00
|
|
|
attempting to acquire the Shorewall-lite lockfile. It is useful if you
|
2014-11-11 16:48:57 +01:00
|
|
|
need to include <command>shorewall</command> commands in the
|
|
|
|
<filename>started</filename> <ulink
|
|
|
|
url="../shorewall_extension_scripts.html">extension script</ulink>.</para>
|
2008-04-10 16:55:08 +02:00
|
|
|
|
2006-11-19 04:36:00 +01:00
|
|
|
<para>The <emphasis>options</emphasis> control the amount of output that
|
|
|
|
the command produces. They consist of a sequence of the letters <emphasis
|
|
|
|
role="bold">v</emphasis> and <emphasis role="bold">q</emphasis>. If the
|
|
|
|
options are omitted, the amount of output is determined by the setting of
|
2007-01-14 23:34:51 +01:00
|
|
|
the VERBOSITY parameter in <ulink
|
2007-11-23 22:49:06 +01:00
|
|
|
url="shorewall.conf.html">shorewall.conf</ulink>(5). Each <emphasis
|
|
|
|
role="bold">v</emphasis> adds one to the effective verbosity and each
|
|
|
|
<emphasis role="bold">q</emphasis> subtracts one from the effective
|
2013-05-03 18:19:45 +02:00
|
|
|
VERBOSITY. Alternately, <emphasis role="bold">v</emphasis> may be followed
|
2014-11-11 16:48:57 +01:00
|
|
|
immediately with one of -1,0,1,2 to specify VERBOSITY. There may be no
|
|
|
|
white-space between <emphasis role="bold">v</emphasis> and the
|
2006-11-19 04:36:00 +01:00
|
|
|
VERBOSITY.</para>
|
2007-02-09 17:34:13 +01:00
|
|
|
|
|
|
|
<para>The <emphasis>options</emphasis> may also include the letter
|
|
|
|
<option>t</option> which causes all progress messages to be
|
|
|
|
timestamped.</para>
|
2006-11-19 04:36:00 +01:00
|
|
|
</refsect1>
|
|
|
|
|
|
|
|
<refsect1>
|
|
|
|
<title>Commands</title>
|
|
|
|
|
|
|
|
<para>The available commands are listed below.</para>
|
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
<varlistentry>
|
|
|
|
<term><emphasis role="bold">add</emphasis></term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>Adds a list of hosts or subnets to a dynamic zone usually used
|
|
|
|
with VPN's.</para>
|
|
|
|
|
|
|
|
<para>The <emphasis>interface</emphasis> argument names an interface
|
2007-01-14 23:34:51 +01:00
|
|
|
defined in the <ulink
|
|
|
|
url="shorewall-interfaces.html">shorewall-interfaces</ulink>(5)
|
|
|
|
file. A <emphasis>host-list</emphasis> is comma-separated list whose
|
2012-02-25 16:53:05 +01:00
|
|
|
elements are host or network addresses.</para>
|
|
|
|
|
|
|
|
<caution>
|
|
|
|
<para>The <command>add</command> command is not very robust. If
|
|
|
|
there are errors in the <replaceable>host-list</replaceable>, you
|
|
|
|
may see a large number of error messages yet a subsequent
|
|
|
|
<command>shorewall-lite show zones</command> command will indicate
|
|
|
|
that all hosts were added. If this happens, replace
|
|
|
|
<command>add</command> by <command>delete</command> and run the
|
|
|
|
same command again. Then enter the correct command.</para>
|
|
|
|
</caution>
|
2006-11-19 04:36:00 +01:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term><emphasis role="bold">allow</emphasis></term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>Re-enables receipt of packets from hosts previously
|
|
|
|
blacklisted by a <emphasis role="bold">drop</emphasis>, <emphasis
|
|
|
|
role="bold">logdrop</emphasis>, <emphasis
|
|
|
|
role="bold">reject</emphasis>, or <emphasis
|
|
|
|
role="bold">logreject</emphasis> command.</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term><emphasis role="bold">clear</emphasis></term>
|
|
|
|
|
|
|
|
<listitem>
|
2012-02-08 22:23:53 +01:00
|
|
|
<para>Clear will remove all rules and chains installed by
|
|
|
|
Shorewall-lite. The firewall is then wide open and unprotected.
|
|
|
|
Existing connections are untouched. Clear is often used to see if
|
|
|
|
the firewall is causing connection problems.</para>
|
|
|
|
|
|
|
|
<para>If <option>-f</option> is given, the command will be processed
|
|
|
|
by the compiled script that executed the last successful <emphasis
|
|
|
|
role="bold">start</emphasis>, <emphasis
|
|
|
|
role="bold">restart</emphasis> or <emphasis
|
|
|
|
role="bold">refresh</emphasis> command if that script exists.</para>
|
2006-11-19 04:36:00 +01:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term><emphasis role="bold">delete</emphasis></term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>The delete command reverses the effect of an earlier <emphasis
|
|
|
|
role="bold">add</emphasis> command.</para>
|
|
|
|
|
|
|
|
<para>The <emphasis>interface</emphasis> argument names an interface
|
2007-01-14 23:34:51 +01:00
|
|
|
defined in the <ulink
|
|
|
|
url="shorewall-interfaces.html">shorewall-interfaces</ulink>(5)
|
|
|
|
file. A <emphasis>host-list</emphasis> is comma-separated list whose
|
2007-06-27 16:47:58 +02:00
|
|
|
elements are a host or network address.</para>
|
2006-11-19 04:36:00 +01:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2011-12-01 22:04:53 +01:00
|
|
|
<varlistentry>
|
|
|
|
<term><emphasis role="bold">disable</emphasis></term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>Added in Shorewall 4.4.26. Disables the optional provider
|
|
|
|
associated with the specified <replaceable>interface</replaceable>
|
|
|
|
or <replaceable>provider</replaceable>. Where more than one provider
|
|
|
|
share a single network interface, a
|
|
|
|
<replaceable>provider</replaceable> name must be given.</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2006-11-19 04:36:00 +01:00
|
|
|
<varlistentry>
|
|
|
|
<term><emphasis role="bold">drop</emphasis></term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>Causes traffic from the listed <emphasis>address</emphasis>es
|
|
|
|
to be silently dropped.</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term><emphasis role="bold">dump</emphasis></term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>Produces a verbose report about the firewall configuration for
|
|
|
|
the purpose of problem analysis.</para>
|
|
|
|
|
|
|
|
<para>The <emphasis role="bold">-x</emphasis> option causes actual
|
|
|
|
packet and byte counts to be displayed. Without that option, these
|
|
|
|
counts are abbreviated. The <emphasis role="bold">-m</emphasis>
|
2012-02-08 22:23:53 +01:00
|
|
|
option causes any MAC addresses included in Shorewall-lite log
|
2006-11-19 17:55:13 +01:00
|
|
|
messages to be displayed.</para>
|
2012-02-08 22:23:53 +01:00
|
|
|
|
|
|
|
<para>The <emphasis role="bold">-l</emphasis> option causes the rule
|
|
|
|
number for each Netfilter rule to be displayed.</para>
|
2014-12-26 20:57:24 +01:00
|
|
|
|
|
|
|
<para>The <option>-c</option> option causes the route cache to be
|
|
|
|
dumped in addition to the other routing information.</para>
|
2006-11-19 04:36:00 +01:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2011-12-01 22:04:53 +01:00
|
|
|
<varlistentry>
|
|
|
|
<term><emphasis role="bold">enable</emphasis></term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>Added in Shorewall 4.4.26. Enables the optional provider
|
|
|
|
associated with the specified <replaceable>interface</replaceable>
|
|
|
|
or <replaceable>provider</replaceable>. Where more than one provider
|
|
|
|
share a single network interface, a
|
|
|
|
<replaceable>provider</replaceable> name must be given.</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2006-11-19 04:36:00 +01:00
|
|
|
<varlistentry>
|
|
|
|
<term><emphasis role="bold">forget</emphasis></term>
|
|
|
|
|
|
|
|
<listitem>
|
2013-05-03 18:19:45 +02:00
|
|
|
<para>Deletes /var/lib/shorewall-lite/<emphasis>filename</emphasis>
|
2006-11-19 17:55:13 +01:00
|
|
|
and /var/lib/shorewall-lite/save. If no
|
|
|
|
<emphasis>filename</emphasis> is given then the file specified by
|
2007-01-14 23:34:51 +01:00
|
|
|
RESTOREFILE in <ulink
|
2012-02-08 22:23:53 +01:00
|
|
|
url="shorewall.conf.html">shorewall.conf</ulink>(5) is
|
2007-01-14 23:34:51 +01:00
|
|
|
assumed.</para>
|
2006-11-19 04:36:00 +01:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term><emphasis role="bold">help</emphasis></term>
|
|
|
|
|
|
|
|
<listitem>
|
2006-11-21 23:52:07 +01:00
|
|
|
<para>Displays a syntax summary.</para>
|
2006-11-19 04:36:00 +01:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term><emphasis role="bold">hits</emphasis></term>
|
|
|
|
|
|
|
|
<listitem>
|
2012-02-08 22:23:53 +01:00
|
|
|
<para>Generates several reports from Shorewall-lite log messages in
|
|
|
|
the current log file. If the <option>-t</option> option is included,
|
|
|
|
the reports are restricted to log messages generated today.</para>
|
2006-11-19 04:36:00 +01:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term><emphasis role="bold">ipcalc</emphasis></term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>Ipcalc displays the network address, broadcast address,
|
|
|
|
network in CIDR notation and netmask corresponding to the
|
|
|
|
input[s].</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term><emphasis role="bold">iprange</emphasis></term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>Iprange decomposes the specified range of IP addresses into
|
|
|
|
the equivalent list of network/host addresses.</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2012-02-08 22:23:53 +01:00
|
|
|
<varlistentry>
|
|
|
|
<term><emphasis role="bold">iptrace</emphasis></term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>This is a low-level debugging command that causes iptables
|
|
|
|
TRACE log records to be created. See iptables(8) for details.</para>
|
|
|
|
|
|
|
|
<para>The <replaceable>iptables match expression</replaceable> must
|
|
|
|
be one or more matches that may appear in both the raw table OUTPUT
|
|
|
|
and raw table PREROUTING chains.</para>
|
|
|
|
|
|
|
|
<para>The trace records are written to the kernel's log buffer with
|
2013-05-03 18:19:45 +02:00
|
|
|
facility = kernel and priority = warning, and they are routed from
|
2012-02-08 22:23:53 +01:00
|
|
|
there by your logging daemon (syslogd, rsyslog, syslog-ng, ...) --
|
|
|
|
Shorewall-lite has no control over where the messages go; consult
|
|
|
|
your logging daemon's documentation.</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2006-11-19 04:36:00 +01:00
|
|
|
<varlistentry>
|
|
|
|
<term><emphasis role="bold">logdrop</emphasis></term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>Causes traffic from the listed <emphasis>address</emphasis>es
|
2012-02-08 22:23:53 +01:00
|
|
|
to be logged then discarded. Logging occurs at the log level
|
|
|
|
specified by the BLACKLIST_LOGLEVEL setting in <ulink
|
|
|
|
url="shorewall.conf.html">shorewall.conf</ulink> (5).</para>
|
2006-11-19 04:36:00 +01:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term><emphasis role="bold">logwatch</emphasis></term>
|
|
|
|
|
|
|
|
<listitem>
|
2012-02-08 22:23:53 +01:00
|
|
|
<para>Monitors the log file specified by the LOGFILE option in
|
|
|
|
<ulink url="shorewall.conf.html">shorewall.conf</ulink>(5) and
|
|
|
|
produces an audible alarm when new Shorewall-lite messages are
|
2007-01-14 23:34:51 +01:00
|
|
|
logged. The <emphasis role="bold">-m</emphasis> option causes the
|
|
|
|
MAC address of each packet source to be displayed if that
|
2007-12-01 18:27:20 +01:00
|
|
|
information is available. The
|
|
|
|
<replaceable>refresh-interval</replaceable> specifies the time in
|
|
|
|
seconds between screen refreshes. You can enter a negative number by
|
|
|
|
preceding the number with "--" (e.g., <command>shorewall-lite
|
|
|
|
logwatch -- -30</command>). In this case, when a packet count
|
|
|
|
changes, you will be prompted to hit any key to resume screen
|
|
|
|
refreshes.</para>
|
2006-11-19 04:36:00 +01:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term><emphasis role="bold">logreject</emphasis></term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>Causes traffic from the listed <emphasis>address</emphasis>es
|
2012-02-08 22:23:53 +01:00
|
|
|
to be logged then rejected. Logging occurs at the log level
|
|
|
|
specified by the BLACKLIST_LOGLEVEL setting in <ulink
|
|
|
|
url="shorewall.conf.html">shorewall.conf</ulink> (5).</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term><emphasis role="bold">noiptrace</emphasis></term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>This is a low-level debugging command that cancels a trace
|
|
|
|
started by a preceding <command>iptrace</command> command.</para>
|
|
|
|
|
|
|
|
<para>The <replaceable>iptables match expression</replaceable> must
|
|
|
|
be one given in the <command>iptrace</command> command being
|
2013-05-03 18:19:45 +02:00
|
|
|
canceled.</para>
|
2006-11-19 04:36:00 +01:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term><emphasis role="bold">reset</emphasis></term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>All the packet and byte counters in the firewall are
|
|
|
|
reset.</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term><emphasis role="bold">restart</emphasis></term>
|
|
|
|
|
|
|
|
<listitem>
|
2006-11-19 04:53:26 +01:00
|
|
|
<para>Restart is similar to <emphasis role="bold">shorewall-lite
|
2012-02-08 22:23:53 +01:00
|
|
|
start</emphasis> except that it assumes that the firewall is already
|
|
|
|
started. Existing connections are maintained.</para>
|
2008-04-28 19:32:31 +02:00
|
|
|
|
2012-02-08 22:23:53 +01:00
|
|
|
<para>The <option>-n</option> option causes Shorewall-lite to avoid
|
2008-04-28 19:32:31 +02:00
|
|
|
updating the routing table(s).</para>
|
|
|
|
|
|
|
|
<para>The <option>-p</option> option causes the connection tracking
|
|
|
|
table to be flushed; the <command>conntrack</command> utility must
|
|
|
|
be installed to use this option.</para>
|
2014-11-01 17:37:57 +01:00
|
|
|
|
|
|
|
<para>The <option>-C</option> option was added in Shorewall 4.6.5.
|
|
|
|
If the specified (or implicit) firewall script is the one that
|
|
|
|
generated the current running configuration, then the running
|
|
|
|
netfilter configuration will be reloaded as is so as to preserve the
|
|
|
|
iptables packet and byte counters.</para>
|
2006-11-19 04:36:00 +01:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term><emphasis role="bold">restore</emphasis></term>
|
|
|
|
|
|
|
|
<listitem>
|
2012-02-08 22:23:53 +01:00
|
|
|
<para>Restore Shorewall-lite to a state saved using the <emphasis
|
2006-11-19 04:53:26 +01:00
|
|
|
role="bold">shorewall-lite save</emphasis> command. Existing
|
|
|
|
connections are maintained. The <emphasis>filename</emphasis> names
|
|
|
|
a restore file in /var/lib/shorewall-lite created using <emphasis
|
|
|
|
role="bold">shorewall-lite save</emphasis>; if no
|
2012-02-08 22:23:53 +01:00
|
|
|
<emphasis>filename</emphasis> is given then Shorewall-lite will be
|
2007-01-14 23:34:51 +01:00
|
|
|
restored from the file specified by the RESTOREFILE option in <ulink
|
2012-02-08 22:23:53 +01:00
|
|
|
url="shorewall.conf.html">shorewall.conf</ulink>(5).</para>
|
2014-11-01 17:37:57 +01:00
|
|
|
|
2014-11-02 18:25:58 +01:00
|
|
|
<caution>
|
|
|
|
<para>If your iptables ruleset depends on variables that are
|
|
|
|
detected at run-time, either in your params file or by
|
|
|
|
Shorewall-generated code, <command>restore</command> will use the
|
|
|
|
values that were current when the ruleset was saved, which may be
|
|
|
|
different from the current values.</para>
|
|
|
|
</caution>
|
|
|
|
|
2014-11-01 17:37:57 +01:00
|
|
|
<para>The <option>-C</option> option was added in Shorewall 4.6.5.
|
|
|
|
If the <option>-C</option> option was specified during <emphasis
|
|
|
|
role="bold">shorewall save</emphasis>, then the counters saved by
|
|
|
|
that operation will be restored.</para>
|
2006-11-19 04:36:00 +01:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2014-07-28 16:04:56 +02:00
|
|
|
<varlistentry>
|
|
|
|
<term><emphasis role="bold">run</emphasis></term>
|
|
|
|
|
|
|
|
<listitem>
|
2014-07-29 19:30:07 +02:00
|
|
|
<para>Added in Shorewall 4.6.3. Executes
|
|
|
|
<replaceable>command</replaceable> in the context of the generated
|
|
|
|
script passing the supplied <replaceable>parameter</replaceable>s.
|
|
|
|
Normally, the <replaceable>command</replaceable> will be a function
|
|
|
|
declared in <filename>lib.private</filename>.</para>
|
2014-07-30 19:25:00 +02:00
|
|
|
|
|
|
|
<para>Before executing the <replaceable>command</replaceable>, the
|
|
|
|
script will detect the configuration, setting all SW_* variables and
|
|
|
|
will run your <filename>init</filename> extension script with
|
|
|
|
$COMMAND = 'run'.</para>
|
2014-07-28 16:04:56 +02:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2006-11-19 04:36:00 +01:00
|
|
|
<varlistentry>
|
|
|
|
<term><emphasis role="bold">save</emphasis></term>
|
|
|
|
|
|
|
|
<listitem>
|
2006-11-19 04:53:26 +01:00
|
|
|
<para>The dynamic blacklist is stored in
|
|
|
|
/var/lib/shorewall-lite/save. The state of the firewall is stored in
|
|
|
|
/var/lib/shorewall-lite/<emphasis>filename</emphasis> for use by the
|
2012-02-08 22:23:53 +01:00
|
|
|
<emphasis role="bold">shorewall-lite restore</emphasis>. If
|
|
|
|
<emphasis>filename</emphasis> is not given then the state is saved
|
|
|
|
in the file specified by the RESTOREFILE option in <ulink
|
|
|
|
url="shorewall.conf.html">shorewall.conf</ulink>(5).</para>
|
2014-11-01 17:37:57 +01:00
|
|
|
|
|
|
|
<para>The <option>-C</option> option, added in Shorewall 4.6.5,
|
|
|
|
causes the iptables packet and byte counters to be saved along with
|
|
|
|
the chains and rules.</para>
|
2006-11-19 04:36:00 +01:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term><emphasis role="bold">show</emphasis></term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>The show command can have a number of different
|
|
|
|
arguments:</para>
|
|
|
|
|
|
|
|
<variablelist>
|
2014-07-28 17:31:20 +02:00
|
|
|
<varlistentry>
|
|
|
|
<term><emphasis role="bold">bl|blacklists</emphasis></term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>Added in Shorewall 4.6.2. Displays the dynamic chain
|
|
|
|
along with any chains produced by entries in
|
|
|
|
shorewall-blrules(5).The <emphasis role="bold">-x</emphasis>
|
|
|
|
option is passed directly through to iptables and causes
|
|
|
|
actual packet and byte counts to be displayed. Without this
|
|
|
|
option, those counts are abbreviated.</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2006-11-19 04:36:00 +01:00
|
|
|
<varlistentry>
|
|
|
|
<term><emphasis role="bold">capabilities</emphasis></term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>Displays your kernel/iptables capabilities. The
|
|
|
|
<emphasis role="bold">-f</emphasis> option causes the display
|
|
|
|
to be formatted as a capabilities file for use with <emphasis
|
|
|
|
role="bold">compile -e</emphasis>.</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2007-06-28 20:21:28 +02:00
|
|
|
<varlistentry>
|
2012-02-08 22:23:53 +01:00
|
|
|
<term>[ [ <option>chain</option> ] <emphasis>chain</emphasis>...
|
|
|
|
]</term>
|
2007-06-28 20:21:28 +02:00
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>The rules in each <emphasis>chain</emphasis> are
|
|
|
|
displayed using the <emphasis role="bold">iptables
|
|
|
|
-L</emphasis> <emphasis>chain</emphasis> <emphasis
|
|
|
|
role="bold">-n -v</emphasis> command. If no
|
|
|
|
<emphasis>chain</emphasis> is given, all of the chains in the
|
|
|
|
filter table are displayed. The <emphasis
|
|
|
|
role="bold">-x</emphasis> option is passed directly through to
|
|
|
|
iptables and causes actual packet and byte counts to be
|
|
|
|
displayed. Without this option, those counts are abbreviated.
|
|
|
|
The <emphasis role="bold">-t</emphasis> option specifies the
|
|
|
|
Netfilter table to display. The default is <emphasis
|
|
|
|
role="bold">filter</emphasis>.</para>
|
|
|
|
|
2012-10-22 23:15:37 +02:00
|
|
|
<para>The <emphasis role="bold">-b</emphasis> ('brief') option
|
|
|
|
causes rules which have not been used (i.e. which have zero
|
|
|
|
packet and byte counts) to be omitted from the output. Chains
|
|
|
|
with no rules displayed are also omitted from the
|
|
|
|
output.</para>
|
2012-10-20 06:03:01 +02:00
|
|
|
|
2012-02-08 22:23:53 +01:00
|
|
|
<para>The <emphasis role="bold">-l</emphasis> option causes
|
|
|
|
the rule number for each Netfilter rule to be
|
|
|
|
displayed.</para>
|
|
|
|
|
2007-06-28 20:21:28 +02:00
|
|
|
<para>If the <emphasis role="bold">t</emphasis> option and the
|
2007-12-01 18:30:08 +01:00
|
|
|
<option>chain</option> keyword are both omitted and any of the
|
2007-06-28 20:21:28 +02:00
|
|
|
listed <replaceable>chain</replaceable>s do not exist, a usage
|
2012-02-08 22:23:53 +01:00
|
|
|
message is displayed.</para>
|
2007-06-28 20:21:28 +02:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2006-11-19 04:36:00 +01:00
|
|
|
<varlistentry>
|
2012-02-08 22:23:53 +01:00
|
|
|
<term><emphasis
|
|
|
|
role="bold">classifiers|filters</emphasis></term>
|
2006-11-19 04:36:00 +01:00
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>Displays information about the packet classifiers
|
2012-02-08 22:23:53 +01:00
|
|
|
defined on the system as a result of traffic shaping
|
|
|
|
configuration.</para>
|
2006-11-19 04:36:00 +01:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term><emphasis role="bold">config</emphasis></term>
|
|
|
|
|
|
|
|
<listitem>
|
2013-05-03 18:19:45 +02:00
|
|
|
<para>Displays distribution-specific defaults.</para>
|
2006-11-19 04:36:00 +01:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term><emphasis role="bold">connections</emphasis></term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>Displays the IP connections currently being tracked by
|
|
|
|
the firewall.</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2013-07-12 19:37:27 +02:00
|
|
|
<varlistentry>
|
|
|
|
<term><emphasis role="bold">event</emphasis><replaceable>
|
|
|
|
event</replaceable></term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>Added in Shorewall 4.5.19. Displays the named
|
|
|
|
event.</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term><emphasis role="bold">events</emphasis></term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>Added in Shorewall 4.5.19. Displays all events.</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2006-11-19 04:36:00 +01:00
|
|
|
<varlistentry>
|
2012-02-08 22:23:53 +01:00
|
|
|
<term><emphasis role="bold">ip</emphasis></term>
|
2006-11-19 04:36:00 +01:00
|
|
|
|
|
|
|
<listitem>
|
2012-02-08 22:23:53 +01:00
|
|
|
<para>Displays the system's IPv4 configuration.</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term><emphasis role="bold">ipa</emphasis></term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>Added in Shorewall 4.4.17. Displays the per-IP
|
|
|
|
accounting counters (<ulink
|
|
|
|
url="manpages/shorewall-accounting.html">shorewall-accounting</ulink>
|
|
|
|
(5)).</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term><emphasis role="bold">log</emphasis></term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>Displays the last 20 Shorewall-lite messages from the
|
|
|
|
log file specified by the LOGFILE option in <ulink
|
|
|
|
url="shorewall.conf.html">shorewall.conf</ulink>(5). The
|
|
|
|
<emphasis role="bold">-m</emphasis> option causes the MAC
|
|
|
|
address of each packet source to be displayed if that
|
|
|
|
information is available.</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term><emphasis role="bold">marks</emphasis></term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>Added in Shorewall 4.4.26. Displays the various fields
|
|
|
|
in packet marks giving the min and max value (in both decimal
|
|
|
|
and hex) and the applicable mask (in hex).</para>
|
2006-11-19 04:36:00 +01:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term><emphasis role="bold">nat</emphasis></term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>Displays the Netfilter nat table using the command
|
|
|
|
<emphasis role="bold">iptables -t nat -L -n -v</emphasis>.The
|
|
|
|
<emphasis role="bold">-x</emphasis> option is passed directly
|
|
|
|
through to iptables and causes actual packet and byte counts
|
|
|
|
to be displayed. Without this option, those counts are
|
|
|
|
abbreviated.</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2012-02-08 22:23:53 +01:00
|
|
|
<varlistentry>
|
|
|
|
<term><emphasis role="bold">policies</emphasis></term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>Added in Shorewall 4.4.4. Displays the applicable policy
|
|
|
|
between each pair of zones. Note that implicit intrazone
|
|
|
|
ACCEPT policies are not displayed for zones associated with a
|
|
|
|
single network where that network doesn't specify
|
|
|
|
<option>routeback</option>.</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term><emphasis role="bold">routing</emphasis></term>
|
|
|
|
|
|
|
|
<listitem>
|
2014-12-26 21:15:28 +01:00
|
|
|
<para>Displays the system's IPv4 routing configuration. The -c
|
|
|
|
option causes the route cache to be displayed in addition to
|
|
|
|
the other routing information.</para>
|
2012-02-08 22:23:53 +01:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term><emphasis role="bold">raw</emphasis></term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>Displays the Netfilter raw table using the command
|
|
|
|
<emphasis role="bold">iptables -t raw -L -n -v</emphasis>.The
|
|
|
|
<emphasis role="bold">-x</emphasis> option is passed directly
|
|
|
|
through to iptables and causes actual packet and byte counts
|
|
|
|
to be displayed. Without this option, those counts are
|
|
|
|
abbreviated.</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2006-11-19 04:36:00 +01:00
|
|
|
<varlistentry>
|
|
|
|
<term><emphasis role="bold">tc</emphasis></term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>Displays information about queuing disciplines, classes
|
|
|
|
and filters.</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term><emphasis role="bold">zones</emphasis></term>
|
|
|
|
|
|
|
|
<listitem>
|
2012-02-08 22:23:53 +01:00
|
|
|
<para>Displays the current composition of the Shorewall zones
|
|
|
|
on the system.</para>
|
2006-11-19 04:36:00 +01:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term><emphasis role="bold">start</emphasis></term>
|
|
|
|
|
|
|
|
<listitem>
|
2012-02-08 22:23:53 +01:00
|
|
|
<para>Start Shorewall Lite. Existing connections through
|
2006-11-19 17:55:13 +01:00
|
|
|
shorewall-lite managed interfaces are untouched. New connections
|
|
|
|
will be allowed only if they are allowed by the firewall rules or
|
2012-02-08 22:23:53 +01:00
|
|
|
policies.</para>
|
2008-04-28 19:32:31 +02:00
|
|
|
|
|
|
|
<para>The <option>-p</option> option causes the connection tracking
|
|
|
|
table to be flushed; the <command>conntrack</command> utility must
|
|
|
|
be installed to use this option.</para>
|
2014-10-30 18:42:39 +01:00
|
|
|
|
|
|
|
<para>The <option>-m</option> option prevents the firewall script
|
|
|
|
from modifying the current routing configuration.</para>
|
|
|
|
|
|
|
|
<para>The <option>-f</option> option was added in Shorewall 4.6.5.
|
|
|
|
If the RESTOREFILE named in <ulink
|
|
|
|
url="shorewall.conf.html">shorewall.conf</ulink>(5) exists, is
|
|
|
|
executable and is not older than the current filewall script, then
|
|
|
|
that saved configuration is restored.</para>
|
2014-11-01 17:37:57 +01:00
|
|
|
|
|
|
|
<para>The <option>-C</option> option was added in Shorewall 4.6.5
|
|
|
|
and is only meaningful when the <option>-f</option> option is also
|
|
|
|
specified. If the previously-saved configuration is restored, and if
|
|
|
|
the <option>-C</option> option was also specified in the <emphasis
|
|
|
|
role="bold">save</emphasis> command, then the packet and byte
|
|
|
|
counters will be restored.</para>
|
2006-11-19 04:36:00 +01:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term><emphasis role="bold">stop</emphasis></term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>Stops the firewall. All existing connections, except those
|
2007-01-14 23:34:51 +01:00
|
|
|
listed in <ulink
|
|
|
|
url="shorewall-routestopped.html">shorewall-routestopped</ulink>(5)
|
2012-02-08 22:23:53 +01:00
|
|
|
or permitted by the ADMINISABSENTMINDED option in <ulink
|
|
|
|
url="shorewall.conf.html">shorewall.conf</ulink>(5), are taken down.
|
|
|
|
The only new traffic permitted through the firewall is from systems
|
|
|
|
listed in <ulink
|
2007-01-14 23:34:51 +01:00
|
|
|
url="shorewall-routestopped.html">shorewall-routestopped</ulink>(5)
|
|
|
|
or by ADMINISABSENTMINDED.</para>
|
2012-02-08 22:23:53 +01:00
|
|
|
|
|
|
|
<para>If <option>-f</option> is given, the command will be processed
|
|
|
|
by the compiled script that executed the last successful <emphasis
|
|
|
|
role="bold">start</emphasis>, <emphasis
|
|
|
|
role="bold">restart</emphasis> or <emphasis
|
|
|
|
role="bold">refresh</emphasis> command if that script exists.</para>
|
2006-11-19 04:36:00 +01:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term><emphasis role="bold">status</emphasis></term>
|
|
|
|
|
|
|
|
<listitem>
|
|
|
|
<para>Produces a short report about the state of the
|
|
|
|
Shorewall-configured firewall.</para>
|
2014-07-28 17:31:20 +02:00
|
|
|
|
|
|
|
<para>The <option>-i </option>option was added in Shorewall 4.6.2
|
|
|
|
and causes the status of each optional or provider interface to be
|
|
|
|
displayed.</para>
|
2006-11-19 04:36:00 +01:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term><emphasis role="bold">version</emphasis></term>
|
|
|
|
|
|
|
|
<listitem>
|
2012-02-08 22:23:53 +01:00
|
|
|
<para>Displays Shorewall's version. The <option>-a</option> option
|
|
|
|
is included for compatibility with earlier Shorewall releases and is
|
|
|
|
ignored.</para>
|
2006-11-19 04:36:00 +01:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
</refsect1>
|
|
|
|
|
2013-08-13 15:52:46 +02:00
|
|
|
<refsect1>
|
|
|
|
<title>EXIT STATUS</title>
|
|
|
|
|
|
|
|
<para>In general, when a command succeeds, status 0 is returned; when the
|
|
|
|
command fails, a non-zero status is returned.</para>
|
|
|
|
|
|
|
|
<para>The <command>status</command> command returns exit status as
|
|
|
|
follows:</para>
|
|
|
|
|
|
|
|
<para>0 - Firewall is started.</para>
|
|
|
|
|
|
|
|
<para>3 - Firewall is stopped or cleared</para>
|
|
|
|
|
|
|
|
<para>4 - Unknown state; usually means that the firewall has never been
|
|
|
|
started.</para>
|
|
|
|
</refsect1>
|
|
|
|
|
2006-11-19 04:36:00 +01:00
|
|
|
<refsect1>
|
|
|
|
<title>FILES</title>
|
|
|
|
|
2006-11-19 04:53:26 +01:00
|
|
|
<para>/etc/shorewall-lite/</para>
|
2006-11-19 04:36:00 +01:00
|
|
|
</refsect1>
|
|
|
|
|
|
|
|
<refsect1>
|
|
|
|
<title>See ALSO</title>
|
|
|
|
|
2006-11-22 04:53:20 +01:00
|
|
|
<para><ulink
|
|
|
|
url="http://www.shorewall.net/starting_and_stopping_shorewall.htm">http://www.shorewall.net/starting_and_stopping_shorewall.htm</ulink></para>
|
|
|
|
|
2006-11-19 05:49:21 +01:00
|
|
|
<para>shorewall-accounting(5), shorewall-actions(5),
|
2012-02-08 22:23:53 +01:00
|
|
|
shorewall-blacklist(5), shorewall-hosts(5), shorewall_interfaces(5),
|
|
|
|
shorewall-ipsets(5), shorewall-maclist(5), shorewall-masq(5),
|
2006-11-19 05:49:21 +01:00
|
|
|
shorewall-nat(5), shorewall-netmap(5), shorewall-params(5),
|
|
|
|
shorewall-policy(5), shorewall-providers(5), shorewall-proxyarp(5),
|
2012-02-08 22:23:53 +01:00
|
|
|
shorewall-rtrules(5), shorewall-routestopped(5), shorewall-rules(5),
|
|
|
|
shorewall.conf(5), shorewall-secmarks(5), shorewall-tcclasses(5),
|
|
|
|
shorewall-tcdevices(5), shorewall-tcrules(5), shorewall-tos(5),
|
|
|
|
shorewall-tunnels(5), shorewall-zones(5)</para>
|
2006-11-19 04:36:00 +01:00
|
|
|
</refsect1>
|
2008-12-14 19:45:13 +01:00
|
|
|
</refentry>
|