History log of /netbsd-current/usr.sbin/npf/npfctl/npf_scan.l
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.32 30-May-2020 rmind

Major NPF improvements (merge from upstream):

- Switch to the C11-style atomic primitives using atomic_loadstore(9).

- npfkern: introduce the 'state.key.interface' and 'state.key.direction'
settings. Users can now choose whether the connection state should be
strictly per-interface or global at the configuration level. Keep NAT
logic to be always per-interface, though.

- npfkern: rewrite the G/C worker logic and make it self-tuning.

- npfkern and libnpf: multiple bug fixes; add param exporting; introduce
more parameters. Remove npf_nvlist_{copyin,copyout}() functions and
refactor npfctl_load_nvlist() with others; add npfctl_run_op() to have
a single entry point for operations. Introduce npf_flow_t and clean up
some code.

- npfctl: lots of fixes for the 'npfctl show' logic; make 'npfctl list'
more informative; misc usability improvements and more user-friendly
error messages.

- Amend and improve the manual pages.


# 1.31 24-May-2020 rmind

PR/55288: npfctl: change parameter syntax to be more permissive.


Revision tags: phil-wifi-20200421 phil-wifi-20200411 is-mlppp-base phil-wifi-20200406 phil-wifi-20191119
# 1.30 30-Sep-2019 rmind

libnpf/npfctl: support dynamic NAT rulesets using a name prefix.


Revision tags: netbsd-9-base
# 1.29 23-Jul-2019 rmind

branches: 1.29.2;
NPF improvements:
- Add support for dynamic NETMAP algorithm (stateful net-to-net).
- Add most of the support for the dynamic NAT rules; a little bit more
userland work is needed to finish this up and enable.
- Replace 'stateful-ends' with more permissive 'stateful-all'.
- Add various tunable parameters and document them, see npf-params(7).
- Reduce the memory usage of the connection state table (conndb).
- Portmap rewrite: use memory more efficiently, handle addresses dynamically.
- Bug fix: add splsoftnet()/splx() around the thmap writers and comment.
- npftest: clean up and simplify; fix some memleaks to make ASAN happy.


Revision tags: phil-wifi-20190609 pgoyette-compat-20190127
# 1.28 19-Jan-2019 rmind

Major NPF improvements:
- Convert NPF connection table to thmap. State lookup is now lock-free.
- Improve connection state G/C: it is now incremental and tunable.
- Add support for dynamic NAT address. Translation addresses can now be
selected from a pool of addresses. There are two selection algorithms,
"ip-hash" and "round-robin" (see the man page).
- Translation address can be specified as e.g. ifaddrs(wm0) in npf.conf
to dynamically choose an IP from the interface address(es).
- Add support for the NETMAP algorithm with static NAT for net-to-net
translation (it is equivalent to iptables NETMAP logic).
- Convert 'ipset' tables to use thmap; the table lookup is now lock-free.
- Misc improvements, bug fixes and more unit tests.
- Bump NPF_VERSION (will also bump libnpf).


Revision tags: pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930
# 1.27 29-Sep-2018 rmind

NPF: Major rework -- migrate NPF to the libnv library.
- This conversion significantly simplifies the code and moves NPF to
a binary serialisation format (replacing the XML-like format).
- Fix some memory/reference leaks and possibly use-after-free bugs.
- Bump NPF_VERSION as this change makes libnpf incompatible with the
previous versions. Also, different serialisation format means NPF
connection/config saving and loading is not compatible with the
previous versions either.

Thanks to christos@ for extra testing.


Revision tags: pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.26 10-Dec-2017 rmind

branches: 1.26.2; 1.26.4;
npfctl: add support for the 'no-ports' flag in the 'map' statements.
This allows us to create a NAT policy without the port translation.


Revision tags: netbsd-8-2-RELEASE netbsd-8-1-RELEASE netbsd-8-1-RC1 netbsd-8-0-RELEASE netbsd-8-0-RC2 netbsd-8-0-RC1 matt-nb8-mediatek-base perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320 bouyer-socketcan-base pgoyette-localcount-20170107
# 1.25 03-Jan-2017 rmind

npfctl: dynamic interface address handling; update npf.conf(8).


# 1.24 27-Dec-2016 rmind

npf.conf: add support for logical NOT, e.g.: pass from ! 10.0.0.1 to any


Revision tags: pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.23 22-Jan-2016 christos

branches: 1.23.2;
handle v4 mapped addresses


# 1.22 26-Dec-2014 christos

allow turning off the bpf jit loading.


Revision tags: netbsd-7-base tls-earlyentropy-base tls-maxphys-base
# 1.21 31-May-2014 rmind

branches: 1.21.2;
npfctl: allow group of zeroes in IPv6 address; noted by spz@.


Revision tags: yamt-pagecache-base9 riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.20 14-Mar-2014 rmind

branches: 1.20.2;
NPF: add support for "stateful-ends".


# 1.19 13-Feb-2014 rmind

NPF: add support for IPv6-to-IPv6 Network Prefix Translation (NPTv6),
as per RFC 6296. Add a unit test. Also, bump NPF_VERSION.

Thanks to S.P.Zeidler for the help with NPTv6 work!


# 1.18 08-Feb-2014 rmind

NPF:
- Adjust the syntax - remove "inet" keyword in favour of more explicit
"inet4" for the address family. Consistent with "inet6" for IPv6.
- Adjust and improve the man page a little bit.


# 1.17 06-Feb-2014 rmind

Add support for CDB based NPF tables.


# 1.16 19-Nov-2013 rmind

Simplify parsing of npf.conf elements, create the npfvar_t when a value is
parsed (to be used as a general structured for variables and inlined values),
few misc improvements.


# 1.15 18-Nov-2013 rmind

Rename some tokens, use more accurate names (the current ones are incorrect
or missleading) and add few comments in the parser code.


# 1.14 12-Nov-2013 rmind

NPF: add support for table naming and remove NPF_TABLE_SLOTS (there is
just an arbitrary sanity limit of NPF_MAX_TABLES currently set to 128).

Few misc fixes. Bump NPF_VERSION.


# 1.13 20-Sep-2013 rmind

- NPF: change the group/ruleset syntax - simplify. Update npf.conf(5) manual.
- Add support for the inline pcap-filter(7) syntax in the rule, e.g.:
block out final pcap-filter "tcp and dst 10.1.1.252"


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base agc-symver-base
# 1.12 20-Mar-2013 christos

Make ALG's autoloadable by providing in the config file:
alg "algname"


# 1.11 18-Mar-2013 rmind

- Extend npf.conf syntax to support dynamic NAT policies.
- Imply dynamic group when using "ruleset" keyword.


# 1.10 09-Feb-2013 rmind

NPF:
- Implement dynamic NPF rules. Controlled through npf(3) library of via
npfctl rule command. A rule can be removed using a unique identifier,
returned on addition, or using a key which is SHA1 hash of the rule.
Adjust npftest and add a regression test.
- Improvements to rule inspection mechanism.
- Initial BPF support as an alternative to n-code.
- Minor fixes; bump the version.


Revision tags: yamt-pagecache-base8 yamt-pagecache-base7
# 1.9 26-Nov-2012 rmind

npfctl: extend syntax for extracting interface IP address(es) by the family.


# 1.8 15-Nov-2012 rmind

npfctl: switch to ecalloc(3).


# 1.7 05-Nov-2012 rmind

npfctl: switch to efun(3) routines.


Revision tags: yamt-pagecache-base6
# 1.6 16-Sep-2012 rmind

Implement dynamic NPF extensions interface. An extension consists of
dynamically loaded module (.so) supplementing npfctl(8) and a kernel
module. Move normalisation and logging functionality into their own
extensions. More improvements to come.


# 1.5 19-Jul-2012 spz

branches: 1.5.2;
teach npf ipv6-icmp
reviewed by rmind@


# 1.4 01-Jul-2012 rmind

NPF improvements:
- Add NPF_OPCODE_PROTO to match the address and/or protocol only.
- Update parser to support arbitrary "pass proto <name/number>".
- Fix IPv6 address and protocol handling (add a regression test).
- Fix few theorethical races in session handling module.
- Misc fixes, simplifications and some clean up.


# 1.3 15-Jun-2012 rmind

- Rework NPF NAT syntax to be more structured and support future additions
of different types and configurations of NAT.
- npfctl: improve disassemble and show-config command functionality.
- Fix custom ICMP code and type filtering.


# 1.2 30-May-2012 rmind

npfctl(8): add show-config command. Also, update syntax.


Revision tags: yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base
# 1.1 08-Jan-2012 rmind

branches: 1.1.2; 1.1.4;
Full rewrite of npfctl(8) parser and rework of n-code generation part.
Fixes most of the known bugs and issues with the utility. Note: rule
procedures are not yet (as we want to make them fully modular).

Huge thanks to Martin Husemann who wrote the parser and Christos Zoulas
who wrote intermediate structures and helped to complete the work.


# 1.31 24-May-2020 rmind

PR/55288: npfctl: change parameter syntax to be more permissive.


Revision tags: phil-wifi-20200421 phil-wifi-20200411 is-mlppp-base phil-wifi-20200406 phil-wifi-20191119
# 1.30 30-Sep-2019 rmind

libnpf/npfctl: support dynamic NAT rulesets using a name prefix.


Revision tags: netbsd-9-base
# 1.29 23-Jul-2019 rmind

branches: 1.29.2;
NPF improvements:
- Add support for dynamic NETMAP algorithm (stateful net-to-net).
- Add most of the support for the dynamic NAT rules; a little bit more
userland work is needed to finish this up and enable.
- Replace 'stateful-ends' with more permissive 'stateful-all'.
- Add various tunable parameters and document them, see npf-params(7).
- Reduce the memory usage of the connection state table (conndb).
- Portmap rewrite: use memory more efficiently, handle addresses dynamically.
- Bug fix: add splsoftnet()/splx() around the thmap writers and comment.
- npftest: clean up and simplify; fix some memleaks to make ASAN happy.


Revision tags: phil-wifi-20190609 pgoyette-compat-20190127
# 1.28 19-Jan-2019 rmind

Major NPF improvements:
- Convert NPF connection table to thmap. State lookup is now lock-free.
- Improve connection state G/C: it is now incremental and tunable.
- Add support for dynamic NAT address. Translation addresses can now be
selected from a pool of addresses. There are two selection algorithms,
"ip-hash" and "round-robin" (see the man page).
- Translation address can be specified as e.g. ifaddrs(wm0) in npf.conf
to dynamically choose an IP from the interface address(es).
- Add support for the NETMAP algorithm with static NAT for net-to-net
translation (it is equivalent to iptables NETMAP logic).
- Convert 'ipset' tables to use thmap; the table lookup is now lock-free.
- Misc improvements, bug fixes and more unit tests.
- Bump NPF_VERSION (will also bump libnpf).


Revision tags: pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930
# 1.27 29-Sep-2018 rmind

NPF: Major rework -- migrate NPF to the libnv library.
- This conversion significantly simplifies the code and moves NPF to
a binary serialisation format (replacing the XML-like format).
- Fix some memory/reference leaks and possibly use-after-free bugs.
- Bump NPF_VERSION as this change makes libnpf incompatible with the
previous versions. Also, different serialisation format means NPF
connection/config saving and loading is not compatible with the
previous versions either.

Thanks to christos@ for extra testing.


Revision tags: pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.26 10-Dec-2017 rmind

branches: 1.26.2; 1.26.4;
npfctl: add support for the 'no-ports' flag in the 'map' statements.
This allows us to create a NAT policy without the port translation.


Revision tags: netbsd-8-2-RELEASE netbsd-8-1-RELEASE netbsd-8-1-RC1 netbsd-8-0-RELEASE netbsd-8-0-RC2 netbsd-8-0-RC1 matt-nb8-mediatek-base perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320 bouyer-socketcan-base pgoyette-localcount-20170107
# 1.25 03-Jan-2017 rmind

npfctl: dynamic interface address handling; update npf.conf(8).


# 1.24 27-Dec-2016 rmind

npf.conf: add support for logical NOT, e.g.: pass from ! 10.0.0.1 to any


Revision tags: pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.23 22-Jan-2016 christos

branches: 1.23.2;
handle v4 mapped addresses


# 1.22 26-Dec-2014 christos

allow turning off the bpf jit loading.


Revision tags: netbsd-7-base tls-earlyentropy-base tls-maxphys-base
# 1.21 31-May-2014 rmind

branches: 1.21.2;
npfctl: allow group of zeroes in IPv6 address; noted by spz@.


Revision tags: yamt-pagecache-base9 riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.20 14-Mar-2014 rmind

branches: 1.20.2;
NPF: add support for "stateful-ends".


# 1.19 13-Feb-2014 rmind

NPF: add support for IPv6-to-IPv6 Network Prefix Translation (NPTv6),
as per RFC 6296. Add a unit test. Also, bump NPF_VERSION.

Thanks to S.P.Zeidler for the help with NPTv6 work!


# 1.18 08-Feb-2014 rmind

NPF:
- Adjust the syntax - remove "inet" keyword in favour of more explicit
"inet4" for the address family. Consistent with "inet6" for IPv6.
- Adjust and improve the man page a little bit.


# 1.17 06-Feb-2014 rmind

Add support for CDB based NPF tables.


# 1.16 19-Nov-2013 rmind

Simplify parsing of npf.conf elements, create the npfvar_t when a value is
parsed (to be used as a general structured for variables and inlined values),
few misc improvements.


# 1.15 18-Nov-2013 rmind

Rename some tokens, use more accurate names (the current ones are incorrect
or missleading) and add few comments in the parser code.


# 1.14 12-Nov-2013 rmind

NPF: add support for table naming and remove NPF_TABLE_SLOTS (there is
just an arbitrary sanity limit of NPF_MAX_TABLES currently set to 128).

Few misc fixes. Bump NPF_VERSION.


# 1.13 20-Sep-2013 rmind

- NPF: change the group/ruleset syntax - simplify. Update npf.conf(5) manual.
- Add support for the inline pcap-filter(7) syntax in the rule, e.g.:
block out final pcap-filter "tcp and dst 10.1.1.252"


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base agc-symver-base
# 1.12 20-Mar-2013 christos

Make ALG's autoloadable by providing in the config file:
alg "algname"


# 1.11 18-Mar-2013 rmind

- Extend npf.conf syntax to support dynamic NAT policies.
- Imply dynamic group when using "ruleset" keyword.


# 1.10 09-Feb-2013 rmind

NPF:
- Implement dynamic NPF rules. Controlled through npf(3) library of via
npfctl rule command. A rule can be removed using a unique identifier,
returned on addition, or using a key which is SHA1 hash of the rule.
Adjust npftest and add a regression test.
- Improvements to rule inspection mechanism.
- Initial BPF support as an alternative to n-code.
- Minor fixes; bump the version.


Revision tags: yamt-pagecache-base8 yamt-pagecache-base7
# 1.9 26-Nov-2012 rmind

npfctl: extend syntax for extracting interface IP address(es) by the family.


# 1.8 15-Nov-2012 rmind

npfctl: switch to ecalloc(3).


# 1.7 05-Nov-2012 rmind

npfctl: switch to efun(3) routines.


Revision tags: yamt-pagecache-base6
# 1.6 16-Sep-2012 rmind

Implement dynamic NPF extensions interface. An extension consists of
dynamically loaded module (.so) supplementing npfctl(8) and a kernel
module. Move normalisation and logging functionality into their own
extensions. More improvements to come.


# 1.5 19-Jul-2012 spz

branches: 1.5.2;
teach npf ipv6-icmp
reviewed by rmind@


# 1.4 01-Jul-2012 rmind

NPF improvements:
- Add NPF_OPCODE_PROTO to match the address and/or protocol only.
- Update parser to support arbitrary "pass proto <name/number>".
- Fix IPv6 address and protocol handling (add a regression test).
- Fix few theorethical races in session handling module.
- Misc fixes, simplifications and some clean up.


# 1.3 15-Jun-2012 rmind

- Rework NPF NAT syntax to be more structured and support future additions
of different types and configurations of NAT.
- npfctl: improve disassemble and show-config command functionality.
- Fix custom ICMP code and type filtering.


# 1.2 30-May-2012 rmind

npfctl(8): add show-config command. Also, update syntax.


Revision tags: yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base
# 1.1 08-Jan-2012 rmind

branches: 1.1.2; 1.1.4;
Full rewrite of npfctl(8) parser and rework of n-code generation part.
Fixes most of the known bugs and issues with the utility. Note: rule
procedures are not yet (as we want to make them fully modular).

Huge thanks to Martin Husemann who wrote the parser and Christos Zoulas
who wrote intermediate structures and helped to complete the work.


# 1.30 30-Sep-2019 rmind

libnpf/npfctl: support dynamic NAT rulesets using a name prefix.


Revision tags: netbsd-9-base
# 1.29 23-Jul-2019 rmind

NPF improvements:
- Add support for dynamic NETMAP algorithm (stateful net-to-net).
- Add most of the support for the dynamic NAT rules; a little bit more
userland work is needed to finish this up and enable.
- Replace 'stateful-ends' with more permissive 'stateful-all'.
- Add various tunable parameters and document them, see npf-params(7).
- Reduce the memory usage of the connection state table (conndb).
- Portmap rewrite: use memory more efficiently, handle addresses dynamically.
- Bug fix: add splsoftnet()/splx() around the thmap writers and comment.
- npftest: clean up and simplify; fix some memleaks to make ASAN happy.


Revision tags: phil-wifi-20190609 pgoyette-compat-20190127
# 1.28 19-Jan-2019 rmind

Major NPF improvements:
- Convert NPF connection table to thmap. State lookup is now lock-free.
- Improve connection state G/C: it is now incremental and tunable.
- Add support for dynamic NAT address. Translation addresses can now be
selected from a pool of addresses. There are two selection algorithms,
"ip-hash" and "round-robin" (see the man page).
- Translation address can be specified as e.g. ifaddrs(wm0) in npf.conf
to dynamically choose an IP from the interface address(es).
- Add support for the NETMAP algorithm with static NAT for net-to-net
translation (it is equivalent to iptables NETMAP logic).
- Convert 'ipset' tables to use thmap; the table lookup is now lock-free.
- Misc improvements, bug fixes and more unit tests.
- Bump NPF_VERSION (will also bump libnpf).


Revision tags: pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930
# 1.27 29-Sep-2018 rmind

NPF: Major rework -- migrate NPF to the libnv library.
- This conversion significantly simplifies the code and moves NPF to
a binary serialisation format (replacing the XML-like format).
- Fix some memory/reference leaks and possibly use-after-free bugs.
- Bump NPF_VERSION as this change makes libnpf incompatible with the
previous versions. Also, different serialisation format means NPF
connection/config saving and loading is not compatible with the
previous versions either.

Thanks to christos@ for extra testing.


Revision tags: pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.26 10-Dec-2017 rmind

branches: 1.26.2; 1.26.4;
npfctl: add support for the 'no-ports' flag in the 'map' statements.
This allows us to create a NAT policy without the port translation.


Revision tags: netbsd-8-1-RELEASE netbsd-8-1-RC1 netbsd-8-0-RELEASE netbsd-8-0-RC2 netbsd-8-0-RC1 matt-nb8-mediatek-base perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320 bouyer-socketcan-base pgoyette-localcount-20170107
# 1.25 03-Jan-2017 rmind

npfctl: dynamic interface address handling; update npf.conf(8).


# 1.24 27-Dec-2016 rmind

npf.conf: add support for logical NOT, e.g.: pass from ! 10.0.0.1 to any


Revision tags: pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.23 22-Jan-2016 christos

branches: 1.23.2;
handle v4 mapped addresses


# 1.22 26-Dec-2014 christos

allow turning off the bpf jit loading.


Revision tags: netbsd-7-base tls-earlyentropy-base tls-maxphys-base
# 1.21 31-May-2014 rmind

branches: 1.21.2;
npfctl: allow group of zeroes in IPv6 address; noted by spz@.


Revision tags: yamt-pagecache-base9 riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.20 14-Mar-2014 rmind

branches: 1.20.2;
NPF: add support for "stateful-ends".


# 1.19 13-Feb-2014 rmind

NPF: add support for IPv6-to-IPv6 Network Prefix Translation (NPTv6),
as per RFC 6296. Add a unit test. Also, bump NPF_VERSION.

Thanks to S.P.Zeidler for the help with NPTv6 work!


# 1.18 08-Feb-2014 rmind

NPF:
- Adjust the syntax - remove "inet" keyword in favour of more explicit
"inet4" for the address family. Consistent with "inet6" for IPv6.
- Adjust and improve the man page a little bit.


# 1.17 06-Feb-2014 rmind

Add support for CDB based NPF tables.


# 1.16 19-Nov-2013 rmind

Simplify parsing of npf.conf elements, create the npfvar_t when a value is
parsed (to be used as a general structured for variables and inlined values),
few misc improvements.


# 1.15 18-Nov-2013 rmind

Rename some tokens, use more accurate names (the current ones are incorrect
or missleading) and add few comments in the parser code.


# 1.14 12-Nov-2013 rmind

NPF: add support for table naming and remove NPF_TABLE_SLOTS (there is
just an arbitrary sanity limit of NPF_MAX_TABLES currently set to 128).

Few misc fixes. Bump NPF_VERSION.


# 1.13 20-Sep-2013 rmind

- NPF: change the group/ruleset syntax - simplify. Update npf.conf(5) manual.
- Add support for the inline pcap-filter(7) syntax in the rule, e.g.:
block out final pcap-filter "tcp and dst 10.1.1.252"


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base agc-symver-base
# 1.12 20-Mar-2013 christos

Make ALG's autoloadable by providing in the config file:
alg "algname"


# 1.11 18-Mar-2013 rmind

- Extend npf.conf syntax to support dynamic NAT policies.
- Imply dynamic group when using "ruleset" keyword.


# 1.10 09-Feb-2013 rmind

NPF:
- Implement dynamic NPF rules. Controlled through npf(3) library of via
npfctl rule command. A rule can be removed using a unique identifier,
returned on addition, or using a key which is SHA1 hash of the rule.
Adjust npftest and add a regression test.
- Improvements to rule inspection mechanism.
- Initial BPF support as an alternative to n-code.
- Minor fixes; bump the version.


Revision tags: yamt-pagecache-base8 yamt-pagecache-base7
# 1.9 26-Nov-2012 rmind

npfctl: extend syntax for extracting interface IP address(es) by the family.


# 1.8 15-Nov-2012 rmind

npfctl: switch to ecalloc(3).


# 1.7 05-Nov-2012 rmind

npfctl: switch to efun(3) routines.


Revision tags: yamt-pagecache-base6
# 1.6 16-Sep-2012 rmind

Implement dynamic NPF extensions interface. An extension consists of
dynamically loaded module (.so) supplementing npfctl(8) and a kernel
module. Move normalisation and logging functionality into their own
extensions. More improvements to come.


# 1.5 19-Jul-2012 spz

branches: 1.5.2;
teach npf ipv6-icmp
reviewed by rmind@


# 1.4 01-Jul-2012 rmind

NPF improvements:
- Add NPF_OPCODE_PROTO to match the address and/or protocol only.
- Update parser to support arbitrary "pass proto <name/number>".
- Fix IPv6 address and protocol handling (add a regression test).
- Fix few theorethical races in session handling module.
- Misc fixes, simplifications and some clean up.


# 1.3 15-Jun-2012 rmind

- Rework NPF NAT syntax to be more structured and support future additions
of different types and configurations of NAT.
- npfctl: improve disassemble and show-config command functionality.
- Fix custom ICMP code and type filtering.


# 1.2 30-May-2012 rmind

npfctl(8): add show-config command. Also, update syntax.


Revision tags: yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base
# 1.1 08-Jan-2012 rmind

branches: 1.1.2; 1.1.4;
Full rewrite of npfctl(8) parser and rework of n-code generation part.
Fixes most of the known bugs and issues with the utility. Note: rule
procedures are not yet (as we want to make them fully modular).

Huge thanks to Martin Husemann who wrote the parser and Christos Zoulas
who wrote intermediate structures and helped to complete the work.


# 1.29 23-Jul-2019 rmind

NPF improvements:
- Add support for dynamic NETMAP algorithm (stateful net-to-net).
- Add most of the support for the dynamic NAT rules; a little bit more
userland work is needed to finish this up and enable.
- Replace 'stateful-ends' with more permissive 'stateful-all'.
- Add various tunable parameters and document them, see npf-params(7).
- Reduce the memory usage of the connection state table (conndb).
- Portmap rewrite: use memory more efficiently, handle addresses dynamically.
- Bug fix: add splsoftnet()/splx() around the thmap writers and comment.
- npftest: clean up and simplify; fix some memleaks to make ASAN happy.


Revision tags: phil-wifi-20190609 pgoyette-compat-20190127
# 1.28 19-Jan-2019 rmind

Major NPF improvements:
- Convert NPF connection table to thmap. State lookup is now lock-free.
- Improve connection state G/C: it is now incremental and tunable.
- Add support for dynamic NAT address. Translation addresses can now be
selected from a pool of addresses. There are two selection algorithms,
"ip-hash" and "round-robin" (see the man page).
- Translation address can be specified as e.g. ifaddrs(wm0) in npf.conf
to dynamically choose an IP from the interface address(es).
- Add support for the NETMAP algorithm with static NAT for net-to-net
translation (it is equivalent to iptables NETMAP logic).
- Convert 'ipset' tables to use thmap; the table lookup is now lock-free.
- Misc improvements, bug fixes and more unit tests.
- Bump NPF_VERSION (will also bump libnpf).


Revision tags: pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930
# 1.27 29-Sep-2018 rmind

NPF: Major rework -- migrate NPF to the libnv library.
- This conversion significantly simplifies the code and moves NPF to
a binary serialisation format (replacing the XML-like format).
- Fix some memory/reference leaks and possibly use-after-free bugs.
- Bump NPF_VERSION as this change makes libnpf incompatible with the
previous versions. Also, different serialisation format means NPF
connection/config saving and loading is not compatible with the
previous versions either.

Thanks to christos@ for extra testing.


Revision tags: pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.26 10-Dec-2017 rmind

branches: 1.26.2; 1.26.4;
npfctl: add support for the 'no-ports' flag in the 'map' statements.
This allows us to create a NAT policy without the port translation.


Revision tags: netbsd-8-1-RELEASE netbsd-8-1-RC1 netbsd-8-0-RELEASE netbsd-8-0-RC2 netbsd-8-0-RC1 matt-nb8-mediatek-base perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320 bouyer-socketcan-base pgoyette-localcount-20170107
# 1.25 03-Jan-2017 rmind

npfctl: dynamic interface address handling; update npf.conf(8).


# 1.24 27-Dec-2016 rmind

npf.conf: add support for logical NOT, e.g.: pass from ! 10.0.0.1 to any


Revision tags: pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.23 22-Jan-2016 christos

branches: 1.23.2;
handle v4 mapped addresses


# 1.22 26-Dec-2014 christos

allow turning off the bpf jit loading.


Revision tags: netbsd-7-base tls-earlyentropy-base tls-maxphys-base
# 1.21 31-May-2014 rmind

branches: 1.21.2;
npfctl: allow group of zeroes in IPv6 address; noted by spz@.


Revision tags: yamt-pagecache-base9 riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.20 14-Mar-2014 rmind

branches: 1.20.2;
NPF: add support for "stateful-ends".


# 1.19 13-Feb-2014 rmind

NPF: add support for IPv6-to-IPv6 Network Prefix Translation (NPTv6),
as per RFC 6296. Add a unit test. Also, bump NPF_VERSION.

Thanks to S.P.Zeidler for the help with NPTv6 work!


# 1.18 08-Feb-2014 rmind

NPF:
- Adjust the syntax - remove "inet" keyword in favour of more explicit
"inet4" for the address family. Consistent with "inet6" for IPv6.
- Adjust and improve the man page a little bit.


# 1.17 06-Feb-2014 rmind

Add support for CDB based NPF tables.


# 1.16 19-Nov-2013 rmind

Simplify parsing of npf.conf elements, create the npfvar_t when a value is
parsed (to be used as a general structured for variables and inlined values),
few misc improvements.


# 1.15 18-Nov-2013 rmind

Rename some tokens, use more accurate names (the current ones are incorrect
or missleading) and add few comments in the parser code.


# 1.14 12-Nov-2013 rmind

NPF: add support for table naming and remove NPF_TABLE_SLOTS (there is
just an arbitrary sanity limit of NPF_MAX_TABLES currently set to 128).

Few misc fixes. Bump NPF_VERSION.


# 1.13 20-Sep-2013 rmind

- NPF: change the group/ruleset syntax - simplify. Update npf.conf(5) manual.
- Add support for the inline pcap-filter(7) syntax in the rule, e.g.:
block out final pcap-filter "tcp and dst 10.1.1.252"


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base agc-symver-base
# 1.12 20-Mar-2013 christos

Make ALG's autoloadable by providing in the config file:
alg "algname"


# 1.11 18-Mar-2013 rmind

- Extend npf.conf syntax to support dynamic NAT policies.
- Imply dynamic group when using "ruleset" keyword.


# 1.10 09-Feb-2013 rmind

NPF:
- Implement dynamic NPF rules. Controlled through npf(3) library of via
npfctl rule command. A rule can be removed using a unique identifier,
returned on addition, or using a key which is SHA1 hash of the rule.
Adjust npftest and add a regression test.
- Improvements to rule inspection mechanism.
- Initial BPF support as an alternative to n-code.
- Minor fixes; bump the version.


Revision tags: yamt-pagecache-base8 yamt-pagecache-base7
# 1.9 26-Nov-2012 rmind

npfctl: extend syntax for extracting interface IP address(es) by the family.


# 1.8 15-Nov-2012 rmind

npfctl: switch to ecalloc(3).


# 1.7 05-Nov-2012 rmind

npfctl: switch to efun(3) routines.


Revision tags: yamt-pagecache-base6
# 1.6 16-Sep-2012 rmind

Implement dynamic NPF extensions interface. An extension consists of
dynamically loaded module (.so) supplementing npfctl(8) and a kernel
module. Move normalisation and logging functionality into their own
extensions. More improvements to come.


# 1.5 19-Jul-2012 spz

branches: 1.5.2;
teach npf ipv6-icmp
reviewed by rmind@


# 1.4 01-Jul-2012 rmind

NPF improvements:
- Add NPF_OPCODE_PROTO to match the address and/or protocol only.
- Update parser to support arbitrary "pass proto <name/number>".
- Fix IPv6 address and protocol handling (add a regression test).
- Fix few theorethical races in session handling module.
- Misc fixes, simplifications and some clean up.


# 1.3 15-Jun-2012 rmind

- Rework NPF NAT syntax to be more structured and support future additions
of different types and configurations of NAT.
- npfctl: improve disassemble and show-config command functionality.
- Fix custom ICMP code and type filtering.


# 1.2 30-May-2012 rmind

npfctl(8): add show-config command. Also, update syntax.


Revision tags: yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base
# 1.1 08-Jan-2012 rmind

branches: 1.1.2; 1.1.4;
Full rewrite of npfctl(8) parser and rework of n-code generation part.
Fixes most of the known bugs and issues with the utility. Note: rule
procedures are not yet (as we want to make them fully modular).

Huge thanks to Martin Husemann who wrote the parser and Christos Zoulas
who wrote intermediate structures and helped to complete the work.


Revision tags: pgoyette-compat-20190127
# 1.28 19-Jan-2019 rmind

Major NPF improvements:
- Convert NPF connection table to thmap. State lookup is now lock-free.
- Improve connection state G/C: it is now incremental and tunable.
- Add support for dynamic NAT address. Translation addresses can now be
selected from a pool of addresses. There are two selection algorithms,
"ip-hash" and "round-robin" (see the man page).
- Translation address can be specified as e.g. ifaddrs(wm0) in npf.conf
to dynamically choose an IP from the interface address(es).
- Add support for the NETMAP algorithm with static NAT for net-to-net
translation (it is equivalent to iptables NETMAP logic).
- Convert 'ipset' tables to use thmap; the table lookup is now lock-free.
- Misc improvements, bug fixes and more unit tests.
- Bump NPF_VERSION (will also bump libnpf).


Revision tags: pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930
# 1.27 29-Sep-2018 rmind

NPF: Major rework -- migrate NPF to the libnv library.
- This conversion significantly simplifies the code and moves NPF to
a binary serialisation format (replacing the XML-like format).
- Fix some memory/reference leaks and possibly use-after-free bugs.
- Bump NPF_VERSION as this change makes libnpf incompatible with the
previous versions. Also, different serialisation format means NPF
connection/config saving and loading is not compatible with the
previous versions either.

Thanks to christos@ for extra testing.


Revision tags: pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.26 10-Dec-2017 rmind

branches: 1.26.2;
npfctl: add support for the 'no-ports' flag in the 'map' statements.
This allows us to create a NAT policy without the port translation.


Revision tags: netbsd-8-0-RELEASE netbsd-8-0-RC2 netbsd-8-0-RC1 matt-nb8-mediatek-base perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320 bouyer-socketcan-base pgoyette-localcount-20170107
# 1.25 03-Jan-2017 rmind

npfctl: dynamic interface address handling; update npf.conf(8).


# 1.24 27-Dec-2016 rmind

npf.conf: add support for logical NOT, e.g.: pass from ! 10.0.0.1 to any


Revision tags: pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.23 22-Jan-2016 christos

branches: 1.23.2;
handle v4 mapped addresses


# 1.22 26-Dec-2014 christos

allow turning off the bpf jit loading.


Revision tags: netbsd-7-base tls-earlyentropy-base tls-maxphys-base
# 1.21 31-May-2014 rmind

branches: 1.21.2;
npfctl: allow group of zeroes in IPv6 address; noted by spz@.


Revision tags: yamt-pagecache-base9 riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.20 14-Mar-2014 rmind

branches: 1.20.2;
NPF: add support for "stateful-ends".


# 1.19 13-Feb-2014 rmind

NPF: add support for IPv6-to-IPv6 Network Prefix Translation (NPTv6),
as per RFC 6296. Add a unit test. Also, bump NPF_VERSION.

Thanks to S.P.Zeidler for the help with NPTv6 work!


# 1.18 08-Feb-2014 rmind

NPF:
- Adjust the syntax - remove "inet" keyword in favour of more explicit
"inet4" for the address family. Consistent with "inet6" for IPv6.
- Adjust and improve the man page a little bit.


# 1.17 06-Feb-2014 rmind

Add support for CDB based NPF tables.


# 1.16 19-Nov-2013 rmind

Simplify parsing of npf.conf elements, create the npfvar_t when a value is
parsed (to be used as a general structured for variables and inlined values),
few misc improvements.


# 1.15 18-Nov-2013 rmind

Rename some tokens, use more accurate names (the current ones are incorrect
or missleading) and add few comments in the parser code.


# 1.14 12-Nov-2013 rmind

NPF: add support for table naming and remove NPF_TABLE_SLOTS (there is
just an arbitrary sanity limit of NPF_MAX_TABLES currently set to 128).

Few misc fixes. Bump NPF_VERSION.


# 1.13 20-Sep-2013 rmind

- NPF: change the group/ruleset syntax - simplify. Update npf.conf(5) manual.
- Add support for the inline pcap-filter(7) syntax in the rule, e.g.:
block out final pcap-filter "tcp and dst 10.1.1.252"


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base agc-symver-base
# 1.12 20-Mar-2013 christos

Make ALG's autoloadable by providing in the config file:
alg "algname"


# 1.11 18-Mar-2013 rmind

- Extend npf.conf syntax to support dynamic NAT policies.
- Imply dynamic group when using "ruleset" keyword.


# 1.10 09-Feb-2013 rmind

NPF:
- Implement dynamic NPF rules. Controlled through npf(3) library of via
npfctl rule command. A rule can be removed using a unique identifier,
returned on addition, or using a key which is SHA1 hash of the rule.
Adjust npftest and add a regression test.
- Improvements to rule inspection mechanism.
- Initial BPF support as an alternative to n-code.
- Minor fixes; bump the version.


Revision tags: yamt-pagecache-base8 yamt-pagecache-base7
# 1.9 26-Nov-2012 rmind

npfctl: extend syntax for extracting interface IP address(es) by the family.


# 1.8 15-Nov-2012 rmind

npfctl: switch to ecalloc(3).


# 1.7 05-Nov-2012 rmind

npfctl: switch to efun(3) routines.


Revision tags: yamt-pagecache-base6
# 1.6 16-Sep-2012 rmind

Implement dynamic NPF extensions interface. An extension consists of
dynamically loaded module (.so) supplementing npfctl(8) and a kernel
module. Move normalisation and logging functionality into their own
extensions. More improvements to come.


# 1.5 19-Jul-2012 spz

branches: 1.5.2;
teach npf ipv6-icmp
reviewed by rmind@


# 1.4 01-Jul-2012 rmind

NPF improvements:
- Add NPF_OPCODE_PROTO to match the address and/or protocol only.
- Update parser to support arbitrary "pass proto <name/number>".
- Fix IPv6 address and protocol handling (add a regression test).
- Fix few theorethical races in session handling module.
- Misc fixes, simplifications and some clean up.


# 1.3 15-Jun-2012 rmind

- Rework NPF NAT syntax to be more structured and support future additions
of different types and configurations of NAT.
- npfctl: improve disassemble and show-config command functionality.
- Fix custom ICMP code and type filtering.


# 1.2 30-May-2012 rmind

npfctl(8): add show-config command. Also, update syntax.


Revision tags: yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base
# 1.1 08-Jan-2012 rmind

branches: 1.1.2; 1.1.4;
Full rewrite of npfctl(8) parser and rework of n-code generation part.
Fixes most of the known bugs and issues with the utility. Note: rule
procedures are not yet (as we want to make them fully modular).

Huge thanks to Martin Husemann who wrote the parser and Christos Zoulas
who wrote intermediate structures and helped to complete the work.


# 1.26 10-Dec-2017 rmind

npfctl: add support for the 'no-ports' flag in the 'map' statements.
This allows us to create a NAT policy without the port translation.


Revision tags: matt-nb8-mediatek-base perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320 bouyer-socketcan-base pgoyette-localcount-20170107
# 1.25 03-Jan-2017 rmind

npfctl: dynamic interface address handling; update npf.conf(8).


# 1.24 27-Dec-2016 rmind

npf.conf: add support for logical NOT, e.g.: pass from ! 10.0.0.1 to any


Revision tags: pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.23 22-Jan-2016 christos

branches: 1.23.2;
handle v4 mapped addresses


# 1.22 26-Dec-2014 christos

allow turning off the bpf jit loading.


Revision tags: netbsd-7-base tls-earlyentropy-base tls-maxphys-base
# 1.21 31-May-2014 rmind

branches: 1.21.2;
npfctl: allow group of zeroes in IPv6 address; noted by spz@.


Revision tags: yamt-pagecache-base9 riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.20 14-Mar-2014 rmind

branches: 1.20.2;
NPF: add support for "stateful-ends".


# 1.19 13-Feb-2014 rmind

NPF: add support for IPv6-to-IPv6 Network Prefix Translation (NPTv6),
as per RFC 6296. Add a unit test. Also, bump NPF_VERSION.

Thanks to S.P.Zeidler for the help with NPTv6 work!


# 1.18 08-Feb-2014 rmind

NPF:
- Adjust the syntax - remove "inet" keyword in favour of more explicit
"inet4" for the address family. Consistent with "inet6" for IPv6.
- Adjust and improve the man page a little bit.


# 1.17 06-Feb-2014 rmind

Add support for CDB based NPF tables.


# 1.16 19-Nov-2013 rmind

Simplify parsing of npf.conf elements, create the npfvar_t when a value is
parsed (to be used as a general structured for variables and inlined values),
few misc improvements.


# 1.15 18-Nov-2013 rmind

Rename some tokens, use more accurate names (the current ones are incorrect
or missleading) and add few comments in the parser code.


# 1.14 12-Nov-2013 rmind

NPF: add support for table naming and remove NPF_TABLE_SLOTS (there is
just an arbitrary sanity limit of NPF_MAX_TABLES currently set to 128).

Few misc fixes. Bump NPF_VERSION.


# 1.13 20-Sep-2013 rmind

- NPF: change the group/ruleset syntax - simplify. Update npf.conf(5) manual.
- Add support for the inline pcap-filter(7) syntax in the rule, e.g.:
block out final pcap-filter "tcp and dst 10.1.1.252"


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base agc-symver-base
# 1.12 20-Mar-2013 christos

Make ALG's autoloadable by providing in the config file:
alg "algname"


# 1.11 18-Mar-2013 rmind

- Extend npf.conf syntax to support dynamic NAT policies.
- Imply dynamic group when using "ruleset" keyword.


# 1.10 09-Feb-2013 rmind

NPF:
- Implement dynamic NPF rules. Controlled through npf(3) library of via
npfctl rule command. A rule can be removed using a unique identifier,
returned on addition, or using a key which is SHA1 hash of the rule.
Adjust npftest and add a regression test.
- Improvements to rule inspection mechanism.
- Initial BPF support as an alternative to n-code.
- Minor fixes; bump the version.


Revision tags: yamt-pagecache-base8 yamt-pagecache-base7
# 1.9 26-Nov-2012 rmind

npfctl: extend syntax for extracting interface IP address(es) by the family.


# 1.8 15-Nov-2012 rmind

npfctl: switch to ecalloc(3).


# 1.7 05-Nov-2012 rmind

npfctl: switch to efun(3) routines.


Revision tags: yamt-pagecache-base6
# 1.6 16-Sep-2012 rmind

Implement dynamic NPF extensions interface. An extension consists of
dynamically loaded module (.so) supplementing npfctl(8) and a kernel
module. Move normalisation and logging functionality into their own
extensions. More improvements to come.


# 1.5 19-Jul-2012 spz

branches: 1.5.2;
teach npf ipv6-icmp
reviewed by rmind@


# 1.4 01-Jul-2012 rmind

NPF improvements:
- Add NPF_OPCODE_PROTO to match the address and/or protocol only.
- Update parser to support arbitrary "pass proto <name/number>".
- Fix IPv6 address and protocol handling (add a regression test).
- Fix few theorethical races in session handling module.
- Misc fixes, simplifications and some clean up.


# 1.3 15-Jun-2012 rmind

- Rework NPF NAT syntax to be more structured and support future additions
of different types and configurations of NAT.
- npfctl: improve disassemble and show-config command functionality.
- Fix custom ICMP code and type filtering.


# 1.2 30-May-2012 rmind

npfctl(8): add show-config command. Also, update syntax.


Revision tags: yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base
# 1.1 08-Jan-2012 rmind

branches: 1.1.2; 1.1.4;
Full rewrite of npfctl(8) parser and rework of n-code generation part.
Fixes most of the known bugs and issues with the utility. Note: rule
procedures are not yet (as we want to make them fully modular).

Huge thanks to Martin Husemann who wrote the parser and Christos Zoulas
who wrote intermediate structures and helped to complete the work.


Revision tags: pgoyette-localcount-20170107
# 1.25 03-Jan-2017 rmind

npfctl: dynamic interface address handling; update npf.conf(8).


# 1.24 27-Dec-2016 rmind

npf.conf: add support for logical NOT, e.g.: pass from ! 10.0.0.1 to any


Revision tags: pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.23 22-Jan-2016 christos

branches: 1.23.2;
handle v4 mapped addresses


# 1.22 26-Dec-2014 christos

allow turning off the bpf jit loading.


Revision tags: netbsd-7-base tls-earlyentropy-base tls-maxphys-base
# 1.21 31-May-2014 rmind

branches: 1.21.2;
npfctl: allow group of zeroes in IPv6 address; noted by spz@.


Revision tags: yamt-pagecache-base9 riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.20 14-Mar-2014 rmind

branches: 1.20.2;
NPF: add support for "stateful-ends".


# 1.19 13-Feb-2014 rmind

NPF: add support for IPv6-to-IPv6 Network Prefix Translation (NPTv6),
as per RFC 6296. Add a unit test. Also, bump NPF_VERSION.

Thanks to S.P.Zeidler for the help with NPTv6 work!


# 1.18 08-Feb-2014 rmind

NPF:
- Adjust the syntax - remove "inet" keyword in favour of more explicit
"inet4" for the address family. Consistent with "inet6" for IPv6.
- Adjust and improve the man page a little bit.


# 1.17 06-Feb-2014 rmind

Add support for CDB based NPF tables.


# 1.16 19-Nov-2013 rmind

Simplify parsing of npf.conf elements, create the npfvar_t when a value is
parsed (to be used as a general structured for variables and inlined values),
few misc improvements.


# 1.15 18-Nov-2013 rmind

Rename some tokens, use more accurate names (the current ones are incorrect
or missleading) and add few comments in the parser code.


# 1.14 12-Nov-2013 rmind

NPF: add support for table naming and remove NPF_TABLE_SLOTS (there is
just an arbitrary sanity limit of NPF_MAX_TABLES currently set to 128).

Few misc fixes. Bump NPF_VERSION.


# 1.13 20-Sep-2013 rmind

- NPF: change the group/ruleset syntax - simplify. Update npf.conf(5) manual.
- Add support for the inline pcap-filter(7) syntax in the rule, e.g.:
block out final pcap-filter "tcp and dst 10.1.1.252"


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base agc-symver-base
# 1.12 20-Mar-2013 christos

Make ALG's autoloadable by providing in the config file:
alg "algname"


# 1.11 18-Mar-2013 rmind

- Extend npf.conf syntax to support dynamic NAT policies.
- Imply dynamic group when using "ruleset" keyword.


# 1.10 09-Feb-2013 rmind

NPF:
- Implement dynamic NPF rules. Controlled through npf(3) library of via
npfctl rule command. A rule can be removed using a unique identifier,
returned on addition, or using a key which is SHA1 hash of the rule.
Adjust npftest and add a regression test.
- Improvements to rule inspection mechanism.
- Initial BPF support as an alternative to n-code.
- Minor fixes; bump the version.


Revision tags: yamt-pagecache-base8 yamt-pagecache-base7
# 1.9 26-Nov-2012 rmind

npfctl: extend syntax for extracting interface IP address(es) by the family.


# 1.8 15-Nov-2012 rmind

npfctl: switch to ecalloc(3).


# 1.7 05-Nov-2012 rmind

npfctl: switch to efun(3) routines.


Revision tags: yamt-pagecache-base6
# 1.6 16-Sep-2012 rmind

Implement dynamic NPF extensions interface. An extension consists of
dynamically loaded module (.so) supplementing npfctl(8) and a kernel
module. Move normalisation and logging functionality into their own
extensions. More improvements to come.


# 1.5 19-Jul-2012 spz

branches: 1.5.2;
teach npf ipv6-icmp
reviewed by rmind@


# 1.4 01-Jul-2012 rmind

NPF improvements:
- Add NPF_OPCODE_PROTO to match the address and/or protocol only.
- Update parser to support arbitrary "pass proto <name/number>".
- Fix IPv6 address and protocol handling (add a regression test).
- Fix few theorethical races in session handling module.
- Misc fixes, simplifications and some clean up.


# 1.3 15-Jun-2012 rmind

- Rework NPF NAT syntax to be more structured and support future additions
of different types and configurations of NAT.
- npfctl: improve disassemble and show-config command functionality.
- Fix custom ICMP code and type filtering.


# 1.2 30-May-2012 rmind

npfctl(8): add show-config command. Also, update syntax.


Revision tags: yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base
# 1.1 08-Jan-2012 rmind

branches: 1.1.2; 1.1.4;
Full rewrite of npfctl(8) parser and rework of n-code generation part.
Fixes most of the known bugs and issues with the utility. Note: rule
procedures are not yet (as we want to make them fully modular).

Huge thanks to Martin Husemann who wrote the parser and Christos Zoulas
who wrote intermediate structures and helped to complete the work.


# 1.24 27-Dec-2016 rmind

npf.conf: add support for logical NOT, e.g.: pass from ! 10.0.0.1 to any


Revision tags: pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.23 22-Jan-2016 christos

handle v4 mapped addresses


# 1.22 26-Dec-2014 christos

allow turning off the bpf jit loading.


Revision tags: netbsd-7-base tls-earlyentropy-base tls-maxphys-base
# 1.21 31-May-2014 rmind

branches: 1.21.2;
npfctl: allow group of zeroes in IPv6 address; noted by spz@.


Revision tags: yamt-pagecache-base9 riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.20 14-Mar-2014 rmind

branches: 1.20.2;
NPF: add support for "stateful-ends".


# 1.19 13-Feb-2014 rmind

NPF: add support for IPv6-to-IPv6 Network Prefix Translation (NPTv6),
as per RFC 6296. Add a unit test. Also, bump NPF_VERSION.

Thanks to S.P.Zeidler for the help with NPTv6 work!


# 1.18 08-Feb-2014 rmind

NPF:
- Adjust the syntax - remove "inet" keyword in favour of more explicit
"inet4" for the address family. Consistent with "inet6" for IPv6.
- Adjust and improve the man page a little bit.


# 1.17 06-Feb-2014 rmind

Add support for CDB based NPF tables.


# 1.16 19-Nov-2013 rmind

Simplify parsing of npf.conf elements, create the npfvar_t when a value is
parsed (to be used as a general structured for variables and inlined values),
few misc improvements.


# 1.15 18-Nov-2013 rmind

Rename some tokens, use more accurate names (the current ones are incorrect
or missleading) and add few comments in the parser code.


# 1.14 12-Nov-2013 rmind

NPF: add support for table naming and remove NPF_TABLE_SLOTS (there is
just an arbitrary sanity limit of NPF_MAX_TABLES currently set to 128).

Few misc fixes. Bump NPF_VERSION.


# 1.13 20-Sep-2013 rmind

- NPF: change the group/ruleset syntax - simplify. Update npf.conf(5) manual.
- Add support for the inline pcap-filter(7) syntax in the rule, e.g.:
block out final pcap-filter "tcp and dst 10.1.1.252"


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base agc-symver-base
# 1.12 20-Mar-2013 christos

Make ALG's autoloadable by providing in the config file:
alg "algname"


# 1.11 18-Mar-2013 rmind

- Extend npf.conf syntax to support dynamic NAT policies.
- Imply dynamic group when using "ruleset" keyword.


# 1.10 09-Feb-2013 rmind

NPF:
- Implement dynamic NPF rules. Controlled through npf(3) library of via
npfctl rule command. A rule can be removed using a unique identifier,
returned on addition, or using a key which is SHA1 hash of the rule.
Adjust npftest and add a regression test.
- Improvements to rule inspection mechanism.
- Initial BPF support as an alternative to n-code.
- Minor fixes; bump the version.


Revision tags: yamt-pagecache-base8 yamt-pagecache-base7
# 1.9 26-Nov-2012 rmind

npfctl: extend syntax for extracting interface IP address(es) by the family.


# 1.8 15-Nov-2012 rmind

npfctl: switch to ecalloc(3).


# 1.7 05-Nov-2012 rmind

npfctl: switch to efun(3) routines.


Revision tags: yamt-pagecache-base6
# 1.6 16-Sep-2012 rmind

Implement dynamic NPF extensions interface. An extension consists of
dynamically loaded module (.so) supplementing npfctl(8) and a kernel
module. Move normalisation and logging functionality into their own
extensions. More improvements to come.


# 1.5 19-Jul-2012 spz

branches: 1.5.2;
teach npf ipv6-icmp
reviewed by rmind@


# 1.4 01-Jul-2012 rmind

NPF improvements:
- Add NPF_OPCODE_PROTO to match the address and/or protocol only.
- Update parser to support arbitrary "pass proto <name/number>".
- Fix IPv6 address and protocol handling (add a regression test).
- Fix few theorethical races in session handling module.
- Misc fixes, simplifications and some clean up.


# 1.3 15-Jun-2012 rmind

- Rework NPF NAT syntax to be more structured and support future additions
of different types and configurations of NAT.
- npfctl: improve disassemble and show-config command functionality.
- Fix custom ICMP code and type filtering.


# 1.2 30-May-2012 rmind

npfctl(8): add show-config command. Also, update syntax.


Revision tags: yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base
# 1.1 08-Jan-2012 rmind

branches: 1.1.2; 1.1.4;
Full rewrite of npfctl(8) parser and rework of n-code generation part.
Fixes most of the known bugs and issues with the utility. Note: rule
procedures are not yet (as we want to make them fully modular).

Huge thanks to Martin Husemann who wrote the parser and Christos Zoulas
who wrote intermediate structures and helped to complete the work.