Beginning with Shorewall 4.4.15, the file may contain entries for both IPv4 and IPv6. By default, all rules apply to IPv4 but that can be changed by inserting a line as follows:
IPV4
IPV6
ALL
The columns in the file are as follows.
CLASS - interface:class
SOURCE - {-|address}
DEST - {-|address}}
You may exclude certain hosts from the set already defined through use of an exclusion (see m[blue]shorewall-exclusionm[][3](5)).
PROTO - {-|protocol-number|protocol-name|all}
DEST PORT (Optional) - [-|port-name-or-number]
SOURCE PORT (Optional) - [-|port-name-or-number]
TOS (Optional) - [-|tos]
The hex-numbers must be exactly two digits (e.g., 0x04)x.
LENGTH (Optional) - [-|number]
Example 1:
#CLASS SOURCE DEST PROTO DEST
# PORT
IPV4
1:10 0.0.0.0/0 0.0.0.0/0 icmp echo-request
1:10 0.0.0.0/0 0.0.0.0/0 icmp echo-reply
IPV6
1:10 ::/0 ::/0 icmp6 echo-request
1:10 ::/0 ::/0 icmp6 echo-reply
m[blue]http://shorewall.net/traffic_shaping.htmm[]
m[blue]http://shorewall.net/MultiISP.htmlm[]
m[blue]http://shorewall.net/PacketMarking.htmlm[]
shorewall(8), shorewall-accounting(5), shorewall-actions(5), shorewall-blacklist(5), shorewall-ecn(5), shorewall-exclusion(5), shorewall-hosts(5), shorewall_interfaces(5), shorewall-ipsets(5), shorewall-maclist(5), shorewall-masq(5), shorewall-nat(5), shorewall-netmap(5), shorewall-params(5), shorewall-policy(5), shorewall-providers(5), shorewall-proxyarp(5), shorewall-route_rules(5), shorewall-routestopped(5), shorewall-rules(5), shorewall.conf(5), shorewall-secmarks(5), shorewall-tcclasses(5), shorewall-tcdevices(5), shorewall-tos(5), shorewall-tunnels(5), shorewall-zones(5)