Outils pour utilisateurs

Outils du site


informatique:reseau:shorewall

Table des matières

Shorewall

Installation

Exemples de fichiers dans /usr/share/shorewall/configfiles/. 2 versions des fichiers, 1 en .annotated.

$ cat /etc/shorewall/interfaces 
#
# Shorewall -- /etc/shorewall/interfaces
#
# For information about entries in this file, type "man shorewall-interfaces"
#
# The manpage is also online at
# http://www.shorewall.net/manpages/shorewall-interfaces.html
#
?FORMAT 2
###############################################################################
#ZONE		INTERFACE		OPTIONS

net eth0 dhcp,tcpflags,logmartians,nosmurfs
lan eth1
$ cat /etc/shorewall/zones 
# Shorewall -- /etc/shorewall/zones
#
# For information about this file, type "man shorewall-zones"
#
# The manpage is also online at
# http://www.shorewall.net/manpages/shorewall-zones.html
#
###############################################################################
#ZONE		TYPE		OPTIONS		IN_OPTIONS	OUT_OPTIONS

fw		firewall
net	ipv4
lan	ipv4
$ cat /etc/shorewall/policy 
#
# Shorewall -- /etc/shorewall/policy
#
# For information about entries in this file, type "man shorewall-policy"
#
# The manpage is also online at
# http://www.shorewall.net/manpages/shorewall-policy.html
#
###############################################################################
#SOURCE		DEST		POLICY	LOGLEVEL	RATE	CONNLIMIT

$FW		net		ACCEPT
net		all		DROP	info
lan		all		ACCEPT	info
# The FOLLOWING POLICY MUST BE LAST
all		all		REJECT	info
$ cat /etc/shorewall/rules 
#
# Shorewall -- /etc/shorewall/rules
#
# For information on the settings in this file, type "man shorewall-rules"
#
# The manpage is also online at
# http://www.shorewall.net/manpages/shorewall-rules.html
#
##############################################################################################################################################################
#ACTION		SOURCE		DEST		PROTO	DPORT	SPORT	ORIGDEST	RATE	USER	MARK	CONNLIMIT	TIME	HEADERS	SWITCH	HELPER

?SECTION ALL
?SECTION ESTABLISHED
?SECTION RELATED
?SECTION INVALID
?SECTION UNTRACKED
?SECTION NEW

ACCEPT	net	$FW	icmp	8
ACCEPT	net	$FW	tcp	22
ACCEPT	net	$FW	tcp	80
ACCEPT	net	$FW	tcp	443
informatique/reseau/shorewall.txt · Dernière modification : 12/03/2021 18:02 de cyrille

Sauf mention contraire, le contenu de ce wiki est placé sous les termes de la licence suivante : CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki