shorewall6-lite

Langue: en

Version: 06/17/2010 (ubuntu - 25/10/10)

Section: 8 (Commandes administrateur)

NAME

shorewall6-lite - Administration tool for Shoreline Firewall 6 Lite (Shorewall6-lite)

SYNOPSIS

shorewall6-lite [trace|debug [nolock]] [-options] allow address
shorewall6-lite [trace|debug [nolock]] [-options] clear
shorewall6-lite [trace|debug [nolock]] [-options] drop address
shorewall6-lite [trace|debug] [-options] dump [-x] [-m]
shorewall6-lite [trace|debug] [-options] forget [filename]
shorewall6-lite [trace|debug] [-options] help
shorewall6-lite [trace|debug] [-options] hits
shorewall6-lite [trace|debug [nolock]] [-options] logdrop address
shorewall6-lite [trace|debug] [-options] logwatch [-m] [refresh-interval]
shorewall6-lite [trace|debug [nolock]] [-options] logreject address
shorewall6-lite [trace|debug [nolock]] [-options] reject address
shorewall6-lite [trace|debug [nolock]] [-options] restart [-n] [-p]
shorewall6-lite [trace|debug [nolock]] [-options] restore [filename]
shorewall6-lite [trace|debug [nolock]] [-options] save [filename]
shorewall6-lite [trace|debug] [-options] show [-x] [-t {filter|mangle|raw}] [[chainchain...]
shorewall6-lite [trace|debug] [-options] show [-f] capabilities
shorewall6-lite [trace|debug] [-options] show {actions|classifiers|connections|config|zones}
shorewall6-lite [trace|debug] [-options] show [-x] mangle
shorewall6-lite [trace|debug] [-options] show tc
shorewall6-lite [trace|debug] [-options] show [-m] log
shorewall6-lite [trace|debug [nolock]] [-options] start [-n] [-p] [-f]
shorewall6-lite [trace|debug [nolock]] [-options] stop
shorewall6-lite [trace|debug] [-options] status
shorewall6-lite [trace|debug] [-options] version

DESCRIPTION

The shorewall6-lite utility is used to control the Shoreline Firewall 6 (Shorewall6) Lite.

OPTIONS

The trace and debug options are used for debugging. See m[blue]http://www.shorewall.net/starting_and_stopping.htm#Tracem[].

The nolock option prevents the command from attempting to acquire the Shorewall6 Lite lockfile. It is useful if you need to include shorewall6-lite commands in the started extension script.

The options control the amount of output that the command produces. They consist of a sequence of the letters v and q. If the options are omitted, the amount of output is determined by the setting of the VERBOSITY parameter in m[blue]shorewall6.confm[][1](5). Each v adds one to the effective verbosity and each q subtracts one from the effective VERBOSITY. Anternately, v may be followed immediately with one of -1,0,1,2 to specify a specify VERBOSITY. There may be no white space between v and the VERBOSITY.

The options may also include the letter t which causes all progress messages to be timestamped.

COMMANDS

The available commands are listed below.

allow

Re-enables receipt of packets from hosts previously blacklisted by a drop, logdrop, reject, or logreject command.

clear

Clear will remove all rules and chains installed by Shorewall6 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.

drop

Causes traffic from the listed addresses to be silently dropped.

dump

Produces a verbose report about the firewall configuration for the purpose of problem analysis.
The -x option causes actual packet and byte counts to be displayed. Without that option, these counts are abbreviated. The -m option causes any MAC addresses included in Shorewall6 Lite log messages to be displayed.

forget

Deletes /var/lib/shorewall6-lite/filename and /var/lib/shorewall6-lite/save. If no filename is given then the file specified by RESTOREFILE in m[blue]shorewall6-lite.confm[][2](5) is assumed.

help

Displays a syntax summary.

hits

Generates several reports from Shorewall6 Lite log messages in the current log file.

logdrop

Causes traffic from the listed addresses to be logged then discarded.

logwatch

Monitors the log file specified by theLOGFILE option in m[blue]shorewall6-lite.confm[][2](5) and produces an audible alarm when new Shorewall6 Lite messages are logged. The -m option causes the MAC address of each packet source to be displayed if that information is available. The refresh-interval specifies the time in seconds between screen refreshes. You can enter a negative number by preceding the number with "--" (e.g., shorewall6-lite logwatch -- -30). In this case, when a packet count changes, you will be prompted to hit any key to resume screen refreshes.

logreject

Causes traffic from the listed addresses to be logged then rejected.

reset

All the packet and byte counters in the firewall are reset.

restart

Restart is similar to shorewall6-lite stop followed by shorewall6-lite start. Existing connections are maintained.
The -n option causes Shorewall6 to avoid updating the routing table(s).
The -p option causes the connection tracking table to be flushed; the conntrack utility must be installed to use this option.

restore

Restore Shorewall6 Lite to a state saved using the shorewall6-lite save command. Existing connections are maintained. The filename names a restore file in /var/lib/shorewall6-lite created using shorewall6-lite save; if no filename is given then Shorewall6 Lite will be restored from the file specified by the RESTOREFILE option in m[blue]shorewall6-lite.confm[][2](5).

save

The dynamic blacklist is stored in /var/lib/shorewall6-lite/save. The state of the firewall is stored in /var/lib/shorewall6-lite/filename for use by the shorewall6-lite restore and shorewall6-lite -f start commands. If filename is not given then the state is saved in the file specified by the RESTOREFILE option in m[blue]shorewall6-lite.confm[][2](5).

show

The show command can have a number of different arguments:
actions
Produces a report about the available actions (built-in, standard and user-defined).

capabilities

Displays your kernel/iptables capabilities. The -f option causes the display to be formatted as a capabilities file for use with compile -e.

[ [ chain ] chain ... ]

The rules in each chain are displayed using the ip6tables -L chain -n -v command. If no chain is given, all of the chains in the filter table are displayed. The -x 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 -t option specifies the Netfilter table to display. The default is filter.
If the t option and the chain keyword are both omitted and any of the listed chains do not exist, a usage message will be displayed.

classifiers

Displays information about the packet classifiers defined on the system as a result of traffic shaping configuration.

config

Dispays distribution-specific defaults.

connections

Displays the IPv6 connections currently being tracked by the firewall.

mangle

Displays the Netfilter mangle table using the command ip6tables -t mangle -L -n -v.The -x option is passed directly through to iptables and causes actual packet and byte counts to be displayed. Without this option, those counts are abbreviated.

tc

Displays information about queuing disciplines, classes and filters.

zones

Displays the current composition of the Shorewall6 Lite zones on the system.

start

Start shorewall6 Lite. Existing connections through shorewall6-lite managed interfaces are untouched. New connections will be allowed only if they are allowed by the firewall rules or policies. If -f is specified, the saved configuration specified by the RESTOREFILE option in m[blue]shorewall6-lite.confm[][2](5) will be restored if that saved configuration exists and has been modified more recently than the files in /etc/shorewall6.
The -n option causes Shorewall6 to avoid updating the routing table(s).
The -p option causes the connection tracking table to be flushed; the conntrack utility must be installed to use this option.

stop

Stops the firewall. All existing connections, except those listed in m[blue]shorewall6-routestoppedm[][3](5) or permitted by the ADMINISABSENTMINDED option in shorewall6.conf(5), are taken down. The only new traffic permitted through the firewall is from systems listed in m[blue]shorewall6-routestoppedm[][3](5) or by ADMINISABSENTMINDED.

status

Produces a short report about the state of the Shorewall6-configured firewall.

version

Displays Shorewall6-lite's version.

FILES

/etc/shorewall6-lite/

SEE ALSO

m[blue]http://www.shorewall.net/starting_and_stopping_shorewall.htmm[][4]

shorewall6-accounting(5), shorewall6-actions(5), shorewall6-blacklist(5), shorewall6-hosts(5), shorewall6-interfaces(5), shorewall6-maclist(5), shorewall6-params(5), shorewall6-policy(5), shorewall6-providers(5), shorewall6-route_rules(5), shorewall6-routestopped(5), shorewall6-rules(5), shorewall6.conf(5), shorewall6-tcclasses(5), shorewall6-tcdevices(5), shorewall6-tcrules(5), shorewall6-tos(5), shorewall6-tunnels(5), shorewall6-zones(5)

NOTES

1.
shorewall6.conf
http://www.shorewall.net/manpages6/shorewall6.conf.html
2.
shorewall6-lite.conf
http://www.shorewall.net/manpages6/shorewall6-lite.conf.html
3.
shorewall6-routestopped
http://www.shorewall.net/manpages6/shorewall6-routestopped.html
4.
http://www.shorewall.net/starting_and_stopping_shorewall.htm
http://www.shorewall.net/starting_and_stopping_shorewall6.htm