History log of /openbsd-current/sbin/pfctl/Makefile
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.23 19-May-2018 matthieu

Revert change that benno apparently commited by mistake and breaks build
on gcc architectures. ok florian@


# 1.22 18-May-2018 benno

A pf rule with a "on rdomain n" with nonexisting rdomain n will cause an

pfctl: DIOCADDRULE: Device busy

error when loading the ruleset, with no information which rule caused
the problem and no indication that the problem is the rdomain
<nonexisting>.

This diff makes pfctl check if the rdomain really exists when parsing
the config.

ok bluhm@


Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE
# 1.21 19-Apr-2014 henning

remove altq bits here, too
(i was convinced i committed that yesterday already, hrm)


Revision tags: OPENBSD_5_5_BASE
# 1.20 12-Oct-2013 henning

config bits for the bandwidth shaping part of the new queueing subsystem
syntax worked out with many in ljubljana using a whiteboard, testing &
looking over by many, ok phessler sthen


Revision tags: OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE
# 1.19 24-Dec-2006 miod

Remove m88k compiler flags tweak which is no longer necessary since a long time
already.


# 1.18 28-Oct-2006 mcbride

Load all rules into memory before loading into the kernel, and add support
for anchors loaded inline in pf.conf, enclosed in a brace-delimited
block ("{" "}").

anchor on fxp0 {
pass in proto tcp port 22
}

The anchor name is optional on inline loaded anchors.

testing ckuethe@
ok henning@ dhartmei@


Revision tags: OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE
# 1.17 16-Jul-2004 frantzen

'pfctl -o' ruleset optimizer that doesnt change the meaning of the final ruleset
- remove identical and subsetted rules
- when advantageous merge rules w/ similar addresses into a table and one rule
- re-order rules to improve skip step performance (can do better w/ kernel mods)
- 'pfctl -oo' will load the currently running ruleset and use it as a profile
to direct the optimization of quicked rules
ok henning@ mcbride@. man page help from jmc@


# 1.16 10-Jun-2004 miod

Work around an uncovered gcc problem on m88k until it receives proper cure.


Revision tags: OPENBSD_3_5_BASE
# 1.15 10-Mar-2004 mcbride

Actually use SRCS+= so that we don't have a wrapped line.


# 1.14 05-Jan-2004 espie

include path fixes for gcc3.
tests otto@, okay millert@


Revision tags: OPENBSD_3_4_BASE
# 1.13 21-Aug-2003 frantzen

Add Michal Zalewski's p0f v2 style passive OS fingerprinting to PF.
Exposes the source IP's operating system to the filter language.
Interesting policy decisions are now enforceable:
. block proto tcp from any os SCO
. block proto tcp from any os Windows to any port smtp
. rdr ... from any os "Windows 98" to port WWW -> 127.0.0.1 port 8001


Revision tags: OPENBSD_3_3_BASE
# 1.12 09-Jan-2003 henning

first attack at pfctl queue statistics, to be displayed with pfctl -vsq

This commit is dedicated to the cute KLM girls who made part of this
possible with giving me a seat in the plane where you actually have enough
place to hack. Thanks, girls.

ok markus@ dhartmei@


# 1.11 03-Jan-2003 cedric

Bring in userland code for accessing PF radix tables.
ok dhartmei@ mcbride@


# 1.10 06-Dec-2002 henning

style


# 1.9 18-Nov-2002 henning

altq and pf merged

this isn't 100% done yet: the print_ stuff isn't finished, some features
will be added later, and there is no documetation yet, but committing now
enables a few more people to work on.

print_altq_node stuff hacked by Daniel at euroBSDcon; lotsa stuff from kjc,
debugging help also pb and camiel. lots of good ideas by theo.

"commit now" theo philipp daniel


Revision tags: OPENBSD_3_2_BASE
# 1.8 14-Sep-2002 henning

oooooooopsie


# 1.7 14-Sep-2002 henning

bit more clue in rdr/nat rules wrt address family examination
don't take the af from host_node structs based on interface lookups, most
interfaces will have both IPv4 and IPv6 addresses. Most rdr/nat rules will
at least have one IP address specified from whoch we take the af for the
whole rule. The rare exceptional cases require the user to specify the af.

ok frantzen@


# 1.6 06-Jun-2002 mickey

split out the pf_state printing functions to be used elsewhere, no functional change; dhartmei@ ok


Revision tags: OPENBSD_3_0_BASE OPENBSD_3_1_BASE
# 1.5 16-Jul-2001 mickey

get rid of cleanfiles by getting rid of cleanfiles; markus@ ok


# 1.4 16-Jul-2001 markus

add a yacc parser for pf.conf and nat.conf, with help from mickey@,
plus: -n now turns off all operations, and just parses the conf files
ok deraadt@


# 1.3 26-Jun-2001 smart

Add -Wall


# 1.2 25-Jun-2001 kjell

pfctl now has a manpage. likely needs fleshing out.


# 1.1 24-Jun-2001 kjell

Move and rename packet filter userland.
grr. CVS: making easy things difficult, and directory operations impossible.


Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE
# 1.21 19-Apr-2014 henning

remove altq bits here, too
(i was convinced i committed that yesterday already, hrm)


Revision tags: OPENBSD_5_5_BASE
# 1.20 12-Oct-2013 henning

config bits for the bandwidth shaping part of the new queueing subsystem
syntax worked out with many in ljubljana using a whiteboard, testing &
looking over by many, ok phessler sthen


Revision tags: OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE
# 1.19 24-Dec-2006 miod

Remove m88k compiler flags tweak which is no longer necessary since a long time
already.


# 1.18 28-Oct-2006 mcbride

Load all rules into memory before loading into the kernel, and add support
for anchors loaded inline in pf.conf, enclosed in a brace-delimited
block ("{" "}").

anchor on fxp0 {
pass in proto tcp port 22
}

The anchor name is optional on inline loaded anchors.

testing ckuethe@
ok henning@ dhartmei@


Revision tags: OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE
# 1.17 16-Jul-2004 frantzen

'pfctl -o' ruleset optimizer that doesnt change the meaning of the final ruleset
- remove identical and subsetted rules
- when advantageous merge rules w/ similar addresses into a table and one rule
- re-order rules to improve skip step performance (can do better w/ kernel mods)
- 'pfctl -oo' will load the currently running ruleset and use it as a profile
to direct the optimization of quicked rules
ok henning@ mcbride@. man page help from jmc@


# 1.16 10-Jun-2004 miod

Work around an uncovered gcc problem on m88k until it receives proper cure.


Revision tags: OPENBSD_3_5_BASE
# 1.15 10-Mar-2004 mcbride

Actually use SRCS+= so that we don't have a wrapped line.


# 1.14 05-Jan-2004 espie

include path fixes for gcc3.
tests otto@, okay millert@


Revision tags: OPENBSD_3_4_BASE
# 1.13 21-Aug-2003 frantzen

Add Michal Zalewski's p0f v2 style passive OS fingerprinting to PF.
Exposes the source IP's operating system to the filter language.
Interesting policy decisions are now enforceable:
. block proto tcp from any os SCO
. block proto tcp from any os Windows to any port smtp
. rdr ... from any os "Windows 98" to port WWW -> 127.0.0.1 port 8001


Revision tags: OPENBSD_3_3_BASE
# 1.12 09-Jan-2003 henning

first attack at pfctl queue statistics, to be displayed with pfctl -vsq

This commit is dedicated to the cute KLM girls who made part of this
possible with giving me a seat in the plane where you actually have enough
place to hack. Thanks, girls.

ok markus@ dhartmei@


# 1.11 03-Jan-2003 cedric

Bring in userland code for accessing PF radix tables.
ok dhartmei@ mcbride@


# 1.10 06-Dec-2002 henning

style


# 1.9 18-Nov-2002 henning

altq and pf merged

this isn't 100% done yet: the print_ stuff isn't finished, some features
will be added later, and there is no documetation yet, but committing now
enables a few more people to work on.

print_altq_node stuff hacked by Daniel at euroBSDcon; lotsa stuff from kjc,
debugging help also pb and camiel. lots of good ideas by theo.

"commit now" theo philipp daniel


Revision tags: OPENBSD_3_2_BASE
# 1.8 14-Sep-2002 henning

oooooooopsie


# 1.7 14-Sep-2002 henning

bit more clue in rdr/nat rules wrt address family examination
don't take the af from host_node structs based on interface lookups, most
interfaces will have both IPv4 and IPv6 addresses. Most rdr/nat rules will
at least have one IP address specified from whoch we take the af for the
whole rule. The rare exceptional cases require the user to specify the af.

ok frantzen@


# 1.6 06-Jun-2002 mickey

split out the pf_state printing functions to be used elsewhere, no functional change; dhartmei@ ok


Revision tags: OPENBSD_3_0_BASE OPENBSD_3_1_BASE
# 1.5 16-Jul-2001 mickey

get rid of cleanfiles by getting rid of cleanfiles; markus@ ok


# 1.4 16-Jul-2001 markus

add a yacc parser for pf.conf and nat.conf, with help from mickey@,
plus: -n now turns off all operations, and just parses the conf files
ok deraadt@


# 1.3 26-Jun-2001 smart

Add -Wall


# 1.2 25-Jun-2001 kjell

pfctl now has a manpage. likely needs fleshing out.


# 1.1 24-Jun-2001 kjell

Move and rename packet filter userland.
grr. CVS: making easy things difficult, and directory operations impossible.