Man page - shorewall-zones(5)
Packages contas this manual
- shorewall-tcinterfaces(5)
- shorewall-proxyndp(5)
- shorewall-blrules(5)
- shorewall-nesting(5)
- shorewall-files(5)
- shorewall-tcfilters(5)
- shorewall-stoppedrules(5)
- shorewall-actions(5)
- shorewall-routes(5)
- shorewall-logging(5)
- shorewall-names(5)
- shorewall-interfaces(5)
- shorewall-rtrules(5)
- shorewall-arprules(5)
- shorewall-params(5)
- shorewall-proxyarp(5)
- shorewall-addresses(5)
- shorewall-maclist(5)
- shorewall-tcpri(5)
- shorewall-nat(5)
- shorewall-ipsets(5)
- shorewall-zones(5)
- shorewall-providers(5)
- shorewall-vardir(5)
- shorewall-accounting(5)
- shorewall-policy(5)
- shorewall-tcdevices(5)
- shorewall-rules(5)
- shorewall-tunnels(5)
- shorewall-conntrack(5)
- shorewall-exclusion(5)
- shorewall-ecn(5)
- shorewall-modules(5)
- shorewall-snat(5)
- shorewall-tcclasses(5)
- shorewall-mangle(5)
- shorewall-secmarks(5)
- shorewall-netmap(5)
- shorewall.conf(5)
- shorewall-init(8)
- shorewall-hosts(5)
apt-get install shorewall
Manual
| SHOREWALL-ZONES(5) | Configuration Files | SHOREWALL-ZONES(5) |
NAME
zones - Shorewall zone declaration file
SYNOPSIS
/etc/shorewall/zones
DESCRIPTION
The /etc/shorewall/zones file declares your network zones. You specify the hosts in each zone through entries in /etc/shorewall/interfaces or /etc/shorewall/hosts.
The columns in the file are as follows (where the column name is followed by a different name in parentheses, the different name is used in the alternate specification syntax).
ZONE - zone[:parent-zone[,parent-zone]...]
In Shorewall 5.1.0, the LOGFORMAT in the default and sample shorewall.conf files was changed to "%s:%s ".
Example:
#ZONE TYPE OPTIONS IN OPTIONS OUT OPTIONS a ip b ip c:a,b ip
Currently, Shorewall uses this information to reorder the zone list so that parent zones appear after their subzones in the list. The IMPLICIT_CONTINUE option in shorewall.conf[1](5) can also create implicit CONTINUE policies to/from the subzone.
Where an ipsec zone is explicitly included as a child of an ip zone, the ruleset allows CONTINUE policies (explicit or implicit) to work as expected.
In the future, Shorewall may make additional use of nesting information.
TYPE
ip
ipsec
firewall
bport
vserver
Vserver zones are implicitly handled as subzones of the firewall zone.
loopback
Normally, Shorewall treats the loopback interface (lo) in the following way:
By defining a loopback zone and associating it with the loopback interface in shorewall-interfaces(5), you can effect a slightly different model. Suppose that the loopback zone name is 'local'; then:
Rules to/from the loopback zone and any zone other than the firewall zone are ignored with a warning.
loopback zones may be nested within other loopback zones.
local
OPTIONS, IN OPTIONS and OUT OPTIONS (options, in_options, out_options) - [option[,option]...]
dynamic_shared
reqid=number
spi=<number>
proto=ah|esp|ipcomp
mss=number
mode=transport|tunnel
tunnel-src=address[/mask]
tunnel-dst=address[/mask]
strict
next
The options in the OPTIONS column are applied to both incoming and outgoing traffic. The IN OPTIONS are applied to incoming traffic (in addition to OPTIONS) and the OUT OPTIONS are applied to outgoing traffic.
If you wish to leave a column empty but need to make an entry in a following column, use "-".
FILES
/etc/shorewall/zones
/etc/shorewall6/zones
SEE ALSO
https://shorewall.org/Multiple_Zones.html[4].
https://shorewall.org/configuration_file_basics.htm#Pairs[5]
shorewall(8)
NOTES
- 1.
- shorewall.conf
- 2.
- shorewall-nesting
- 3.
- shorewall-hosts
- 4.
- https://shorewall.org/Multiple_Zones.html
- 5.
- https://shorewall.org/configuration_file_basics.htm#Pairs
| 09/24/2020 | Configuration Files |