xref: /freebsd/sbin/pfctl/tests/pfctl_test_list.inc (revision b197d4b893974c9eb4d7b38704c6d5c486235d6f)
1/*-
2 * SPDX-License-Identifier: BSD-2-Clause
3 *
4 * Copyright 2020 Alex Richardson <arichardson@FreeBSD.org>
5 *
6 * This software was developed by SRI International and the University of
7 * Cambridge Computer Laboratory (Department of Computer Science and
8 * Technology) under DARPA contract HR0011-18-C-0016 ("ECATS"), as part of the
9 * DARPA SSITH research programme.
10 *
11 * This work was supported by Innovate UK project 105694, "Digital Security by
12 * Design (DSbD) Technology Platform Prototype".
13 *
14 * Redistribution and use in source and binary forms, with or without
15 * modification, are permitted provided that the following conditions are met:
16 * 1. Redistributions of source code must retain the above copyright notice,
17 *    this list of conditions and the following disclaimer.
18 * 2. Redistributions in binary form must reproduce the above copyright notice,
19 *    this list of conditions and the following disclaimer in the documentation
20 *    and/or other materials provided with the distribution.
21 *
22 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY
23 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
24 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
25 * DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY
26 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
27 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
28 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
29 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
31 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 *
33 * $FreeBSD$
34 */
35
36/*
37 * No include guards since this file is included multiple times by pfctl_test
38 * to avoid duplicating code.
39 */
40PFCTL_TEST(0001, "Pass with labels")
41PFCTL_TEST(0002, "Block/pass")
42PFCTL_TEST(0003, "Block/pass with flags")
43PFCTL_TEST(0004, "Block")
44PFCTL_TEST(0005, "Block with variables")
45PFCTL_TEST(0006, "Variables")
46PFCTL_TEST(0007, "Block/pass with return")
47PFCTL_TEST(0008, "Block with address list")
48PFCTL_TEST(0009, "Block with interface list")
49PFCTL_TEST(0010, "Block/pass with return")
50PFCTL_TEST(0011, "Block/pass ICMP")
51PFCTL_TEST(0012, "Pass to subnets")
52PFCTL_TEST(0013, "Pass quick")
53PFCTL_TEST(0014, "Pass quick IPv6")
54PFCTL_TEST(0016, "Pass with no state")
55PFCTL_TEST(0018, "Address lists")
56PFCTL_TEST(0019, "Lists")
57PFCTL_TEST(0020, "Lists")
58PFCTL_TEST(0022, "Set options")
59PFCTL_TEST(0023, "Block on negated interface")
60PFCTL_TEST(0024, "Variable concatenation")
61PFCTL_TEST(0025, "Antispoof")
62PFCTL_TEST(0026, "Block from negated interface")
63PFCTL_TEST(0028, "Block with log and quick")
64PFCTL_TEST(0030, "Line continuation")
65PFCTL_TEST(0031, "Block policy")
66PFCTL_TEST(0032, "Pass to any")
67PFCTL_TEST(0034, "Pass with probability")
68PFCTL_TEST(0035, "Matching on TOS")
69PFCTL_TEST(0038, "Pass with user")
70PFCTL_TEST(0039, "Ordered opts")
71PFCTL_TEST(0040, "Block/pass")
72PFCTL_TEST(0041, "Anchors")
73PFCTL_TEST(0047, "Pass with labels")
74PFCTL_TEST(0048, "Tables")
75PFCTL_TEST(0049, "Broadcast and network modifiers")
76PFCTL_TEST(0050, "Double macro set")
77PFCTL_TEST(0052, "Set optimization")
78PFCTL_TEST(0053, "Pass with labels")
79PFCTL_TEST(0055, "Set options")
80PFCTL_TEST(0056, "State opts")
81PFCTL_TEST(0057, "Variables")
82PFCTL_TEST(0060, "Pass from multicast")
83PFCTL_TEST(0061, "Dynaddr with netmask")
84PFCTL_TEST(0065, "Antispoof with labels")
85PFCTL_TEST(0067, "Tags")
86PFCTL_TEST(0069, "Tags")
87PFCTL_TEST(0070, "Tags")
88PFCTL_TEST(0071, "Tags")
89PFCTL_TEST(0072, "Tags")
90PFCTL_TEST(0074, "Synproxy")
91PFCTL_TEST(0075, "Block quick with tags")
92PFCTL_TEST(0077, "Dynaddr with netmask")
93PFCTL_TEST(0078, "Table with label")
94PFCTL_TEST(0079, "No-route with label")
95PFCTL_TEST(0081, "Address list and table list with no-route")
96PFCTL_TEST(0082, "Pass with interface, table and no-route")
97PFCTL_TEST(0084, "Source track")
98PFCTL_TEST(0085, "Tag macro expansion")
99PFCTL_TEST(0087, "Optimization rule reordering")
100PFCTL_TEST(0088, "Optimization duplicate rules handling")
101PFCTL_TEST(0089, "TCP connection tracking")
102PFCTL_TEST(0090, "Log opts")
103PFCTL_TEST(0091, "Nested anchors")
104PFCTL_TEST(0092, "Comments")
105PFCTL_TEST(0094, "Address ranges")
106PFCTL_TEST(0095, "Include")
107PFCTL_TEST(0096, "Variables")
108PFCTL_TEST(0097, "Divert-to")
109PFCTL_TEST(0098, "Pass")
110PFCTL_TEST(0100, "Anchor with multiple path components")
111PFCTL_TEST(0101, "Prio")
112PFCTL_TEST(0102, "Address lists with mixed address family")
113PFCTL_TEST(0104, "Divert-to with localhost")
114PFCTL_TEST(1001, "Binat")
115PFCTL_TEST(1002, "Set timeout interval")
116PFCTL_TEST(1003, "ALTQ")
117PFCTL_TEST(1004, "ALTQ with Codel")
118PFCTL_TEST(1005, "PR 231323")
119PFCTL_TEST(1006, "pfctl crashes with certain fairq configurations")
120PFCTL_TEST(1007, "Basic ethernet rule")
121PFCTL_TEST(1008, "Ethernet rule with mask length")
122PFCTL_TEST(1009, "Ethernet rule with mask")
123PFCTL_TEST(1010, "POM_STICKYADDRESS test")
124