History log of /openbsd/regress/sys/net/pf_divert/Makefile (Results 1 – 24 of 24)
Revision Date Author Comments
# 1073f88e 12-Dec-2021 bluhm <bluhm@openbsd.org>

Replace deprecated IO::Socket::INET6 with IO::Socket::IP.


# b5d99089 17-Dec-2020 bluhm <bluhm@openbsd.org>

Remove echo headlines.


# 31432b1d 12-Jul-2019 bluhm <bluhm@openbsd.org>

Test should also run if there is no obj directory. Name regress
targets consistently with a run- prefix.


# 0c2ea69f 04-Jun-2019 bluhm <bluhm@openbsd.org>

To avoid SYN retransmit, kill local tcp pf state that will be reused.
This makes the state reuse tests faster and more reliable.


# 2316dd1b 26-Dec-2017 bluhm <bluhm@openbsd.org>

As the divert-to pf state is not connected, it is not linked to the
incpb and so not removed when the socket is closed. Packets matching
reply and reply-to states are linked to the sockets immediate

As the divert-to pf state is not connected, it is not linked to the
incpb and so not removed when the socket is closed. Packets matching
reply and reply-to states are linked to the sockets immediately.
So these states must go away when the socket is closed. Check this
with the output of "pfctl -s states" after running the Perl scripts.

show more ...


# d76821b9 18-Dec-2017 bluhm <bluhm@openbsd.org>

When setting KTRACE in the environment, client and server write
ktrace files. This simplifies debugging as system calls can be
inspected with kdump.


# 40df215e 09-Oct-2017 bluhm <bluhm@openbsd.org>

The divert-packet socket option IP_DIVERTFL, IPPROTO_DIVERT_RESP,
IPPROTO_DIVERT_INIT feature is gone. Remove the corresponding
tests.


# 0c490069 04-Sep-2017 bluhm <bluhm@openbsd.org>

Run divert-packet tests also for IPv6.


# 068b97e5 15-Aug-2017 bluhm <bluhm@openbsd.org>

Add tests for pf divert-packet. Currently UDP packets are tested
with in and out rules. A single packet, the initial packet or the
response packet are diverted and reinjected.


# 6a1cb87e 16-Nov-2016 bluhm <bluhm@openbsd.org>

Test multiple combinations of divert connections. The socket cleanup
of the first connection must remove the pf state so that the second
connection can succeed. Disable two raw IP tests that do not

Test multiple combinations of divert connections. The socket cleanup
of the first connection must remove the pf state so that the second
connection can succeed. Disable two raw IP tests that do not work
with the current implementation in the kernel.

show more ...


# d8cb2e0f 15-Nov-2016 bluhm <bluhm@openbsd.org>

Mark pf states created by this regress test with a label. Remove
all such states before basic testing to make sure that these subtests
are independent.


# 54eefd0c 02-Sep-2016 bluhm <bluhm@openbsd.org>

Print SKIPPED if a regress test cannot be executed for some reason.
This allows to identify such tests by looking at their output.


# c30a42c2 28-Jul-2015 bluhm <bluhm@openbsd.org>

Add more and deeper tests for pf divert-reply rules. Especially
the combination of sending and receiving multiple packets over one
socket is tested for UDP, raw IP and ICMP.


# aa8f1300 18-Aug-2014 bluhm <bluhm@openbsd.org>

Make the perl modules consistent for the multiple regression tests.
This includes coding style, better error messages and variable
naming.


# 02079822 12-Jul-2014 bluhm <bluhm@openbsd.org>

Use a saner and consistent address layout for my network tests that
run over 4 machines. Add a check-setup target to verify that
interface addresses and routes are properly set up.


# 9b269b52 11-Jul-2014 bluhm <bluhm@openbsd.org>

Make the test output easier to read by splitting the test cases
with an empty line and a header line.


# 3c0bd7e8 08-Jan-2014 bluhm <bluhm@openbsd.org>

Fix the tests for the pf divert state and socket reuse.


# cee6974d 03-Nov-2013 bluhm <bluhm@openbsd.org>

Grep pf state table on remote machine to find state reuse problems.


# d0e91fd6 03-Nov-2013 bluhm <bluhm@openbsd.org>

Add divert tests that reuse protocol and port. They show what
happens when we close the socket but the divert state remains. If
a new socket uses the same protocol and port, it will use the old
dan

Add divert tests that reuse protocol and port. They show what
happens when we close the socket but the divert state remains. If
a new socket uses the same protocol and port, it will use the old
dangling state. Without searching for the correct rule, the divert-to
will fail. There are real life corner cases where this occurred.

show more ...


# 79a2adff 01-Nov-2013 bluhm <bluhm@openbsd.org>

Add a check-setup target. This allows to find setup errors more
easily. A remote machine with correct addresses, routes and pf
rules is needed for the test.


# 1e607023 11-Aug-2013 bluhm <bluhm@openbsd.org>

Check wether the required perl packages are installed and that the
environment for the remote testing machine is set up. If not, print
a message and skip the regression tests.


# 11f7eadf 17-Jun-2013 bluhm <bluhm@openbsd.org>

Do not write my IP addresses into the pf_divert Makefile, the tester
has to fill in his own addresses. Link the pf_divert regression
tests to the build.


# 50f04348 04-Jun-2013 bluhm <bluhm@openbsd.org>

Add tests for raw IP divert. Set effective user ID to 0 only during
privileged operations for raw sockets and bind any.


# 336dfed2 03-Jun-2013 bluhm <bluhm@openbsd.org>

Add a regression test suite for the pf divert-to and divert-reply
feature. It requires two machines, the local host is running the
regression test, the remote host gets pf divert rules installed.
Th

Add a regression test suite for the pf divert-to and divert-reply
feature. It requires two machines, the local host is running the
regression test, the remote host gets pf divert rules installed.
The diverted TCP connections are running between these hosts in
both directions. The remote host is controlled via ssh.

show more ...