1
0
mirror of https://github.com/fwbuilder/fwbuilder synced 2026-03-19 17:57:22 +01:00
fwbuilder/test/pf/firewall70.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

50 lines
1.8 KiB
Plaintext

# Tables: (1)
table <tbl.r0.d> { 22.22.22.22 , 192.0.2.1 , 192.168.1.1 }
# Policy compiler errors and warnings:
# firewall70:Policy:0: warning: Changing rule direction due to self reference
# firewall70:Policy:1: warning: Changing rule direction due to self reference
# firewall70:Policy:2: warning: Changing rule direction due to self reference
# firewall70:Policy:3: warning: Changing rule direction due to self reference
# firewall70:Policy:4: warning: Changing rule direction due to self reference
# firewall70:Policy:5: warning: Changing rule direction due to self reference
#
# Rule 0 (global)
# firewall70:Policy:0: warning: Changing rule direction due to self reference
pass in quick inet proto tcp from any to <tbl.r0.d> port 22 flags S/SA keep state
#
# Rule 1 (en0)
# firewall70:Policy:1: warning: Changing rule direction due to self reference
pass in quick on en0 inet proto tcp from any to <tbl.r0.d> port 22 flags S/SA keep state
#
# Rule 2 (en0,en1)
# firewall70:Policy:2: warning: Changing rule direction due to self reference
pass in quick on { en0 en1 } inet proto tcp from any to <tbl.r0.d> port 22 flags S/SA keep state
#
# Rule 3 (en2,en0,en1,en3)
# firewall70:Policy:3: warning: Changing rule direction due to self reference
pass in quick on { en0 en1 en2 en3 } inet proto tcp from any to <tbl.r0.d> port 22 flags S/SA keep state
#
# Rule 4 (en0)
# firewall70:Policy:4: warning: Changing rule direction due to self reference
pass in quick on { en1 en2 } inet proto tcp from any to <tbl.r0.d> port 22 flags S/SA keep state
#
# Rule 5 (en0,en1)
# firewall70:Policy:5: warning: Changing rule direction due to self reference
pass in quick on en2 inet proto tcp from any to <tbl.r0.d> port 22 flags S/SA keep state
#
# Rule fallback rule
# fallback rule
block quick inet from any to any