1
0
mirror of https://github.com/fwbuilder/fwbuilder synced 2025-10-16 15:38:43 +02:00
fwbuilder/test/pf/firewall10-5.conf.orig
Vadim Kurland 0aa3eac4d4 * Compiler.cpp (expandGroupsInRuleElement): sorting objects in the
rule element by name after group is expanded, this helps ensure
stable ordering of objects in generated configuration.

* Compiler.cpp (replaceClusterInterfaceInItfRE::processNext):
sorting objects in rule element after cluster interfaces have been
replaced, this helps ensure stable ordering of objects in generated
configuration.

* FWObject.h (FWObjectNameCmpPredicate): moved this class from
gui-specific module to libfwbuilder as it is universally useful.
It can compare FWObject objects by name and can optionally can
follow references; it can be used with std::sort() to sort lists
of FWObject pointers or directly sort rule elements.
2011-03-12 19:50:24 -08:00

42 lines
997 B
Plaintext

#
# Scrub rules
#
scrub in all fragment reassemble
#
# Rule 1 (NAT)
nat on eth0 proto {tcp udp icmp} from 192.168.1.0/24 to any -> 192.168.1.1
#
# Rule backup ssh access rule
# backup ssh access rule
pass in quick inet proto tcp from 192.168.1.100 to 192.168.1.1 port 22 keep state
#
# Rule 0 (enc0)
# This adds "pass out ... keep state"
# rule that compiler 2.1.14
# does not add automatically for pf 3.x
# Note that checkbox "add 'keep state'"
# is on in options
pass out quick on enc0 inet from any to any keep state
#
# Rule 1 (eth0)
pass in quick on eth0 inet proto tcp from 192.168.1.0/24 to any port { 80, 22 } keep state
#
# Rule 2 (lo0)
pass quick on lo0 inet from any to any
#
# Rule 3 (enc0)
# via ipsec
pass quick on enc0 inet proto tcp from 33.33.33.0/24 to 192.168.1.0/24 port 80 keep state
#
# Rule 4 (global)
block log quick inet from any to any
#
# Rule fallback rule
# fallback rule
block quick inet from any to any