opnsense-src/sbin/pfctl
Kristof Provost 7a372bded8 pf: make reply-to work with nat64
Just like route-to reply-to is problematic when used in combination with nat64.

In the normal (i.e. without nat64) flow we return immediately from pf_route().
However, with nat64 we need to continue and do a route lookup. In that case
we should not make the extra pf_test(PF_OUT) call to remain similar to the
non-nat64 flow.

We also have to fix the interface binding. We can only bind to the interface
after we've done the route lookup, not before.

Add a funcional test case, and a test for pfctl's rule printing.

Sponsored by:	Rubicon Communications, LLC ("Netgate")
2025-01-24 11:20:31 +01:00
..
tests pf: make reply-to work with nat64 2025-01-24 11:20:31 +01:00
Makefile Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
Makefile.depend Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
parse.y pf: make reply-to work with nat64 2025-01-24 11:20:31 +01:00
pf.os Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
pf_print_state.c pfctl: change for af-to / NAT64 support. 2024-12-17 11:07:13 +01:00
pf_ruleset.c sbin: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
pfctl.8 pfctl: add -T reset to touch pfras_tzero only for non-zero entries 2024-12-09 10:36:34 +01:00
pfctl.c pf: add a dedicated pf pool for route options 2025-01-24 11:20:30 +01:00
pfctl.h pf: convert DIOCRCLRTABLES to netlink 2025-01-14 09:54:17 +01:00
pfctl_altq.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
pfctl_ioctl.h pfctl: Move ioctl abstraction functions into libpfctl 2021-04-10 11:16:02 +02:00
pfctl_optimize.c pf: add a dedicated pf pool for route options 2025-01-24 11:20:30 +01:00
pfctl_osfp.c sbin: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
pfctl_parser.c pf: make reply-to work with nat64 2025-01-24 11:20:31 +01:00
pfctl_parser.h pfctl: pfctl_set_hostid always returns 0 2025-01-14 09:54:17 +01:00
pfctl_qstats.c Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:42 -06:00
pfctl_radix.c pf: convert DIOCRCLRTABLES to netlink 2025-01-14 09:54:17 +01:00
pfctl_table.c pf: convert DIOCRCLRTABLES to netlink 2025-01-14 09:54:17 +01:00