| /freebsd-14.2/contrib/netbsd-tests/ipf/expected/ |
| H A D | in2 | 1 rdr le0 9.8.7.6/32 port 0 -> 1.1.1.1/32 port 0 tcp 2 rdr le0 9.8.7.6/32 -> 1.1.1.1/32 reserved 4 rdr le0 9.8.7.6/32 -> 1.1.1.1/32 ip 5 rdr le0 9.0.0.0/8 -> 1.1.1.1/32 ip 6 rdr le0 9.8.0.0/16 -> 1.1.1.1/32 ip 11 rdr le0 9.8.7.6/32 -> 1.1.1.1/32 icmp 15 rdr le0 9.8.7.6/32 -> 1.1.1.1/32 ip frag 16 rdr le0 9.8.7.6/32 -> 1.1.1.1/32 icmp frag 26 rdr le0 9.8.7.6/32 -> 1.1.1.1/32 ip 27 rdr le0 9.8.7.6/32 -> 1.1.1.1/32 ip frag [all …]
|
| H A D | in2_6 | 1 rdr le0 inet6 9:8:7::6/128 port 0 -> 1:1:1::1/128 port 0 tcp 2 rdr le0 inet6 9:8:7::6/128 -> 1:1:1::1/128 reserved 4 rdr le0 inet6 9:8:7::6/128 -> 1:1:1::1/128 ip 5 rdr le0 inet6 9:8::/32 -> 1:1:1::1/128 ip 6 rdr le0 inet6 9:8:7::/64 -> 1:1:1::1/128 ip 8 rdr le0 inet6 9:8:7::6/128 port 80 -> any port 80 tcp 11 rdr le0 inet6 9:8:7::6/128 -> 1:1:1::1/128 icmp 15 rdr le0 inet6 9:8:7::6/128 -> 1:1:1::1/128 ip frag 16 rdr le0 inet6 9:8:7::6/128 -> 1:1:1::1/128 icmp frag 26 rdr le0 inet6 9:8:7::6/128 -> 1:1:1::1/128 ip [all …]
|
| H A D | in5 | 3 rdr le0 from 0/0 to 9.8.7.6/32 port = 0 -> 1.1.1.1/32 port 0 tcp 4 rdr le0 from 0/0 to 9.8.7.6/32 -> 1.1.1.1/32 ip 6 rdr le0 from 0/0 to 9.8.7.6/32 -> 1.1.1.1/32 ip 7 rdr le0 from 0/0 to 9.8.7.6/32 port = 8888 -> 1.1.1.1/32 port 888 tcp 8 rdr le0 from 0/0 to 9.8.7.6/32 port = 8888 -> 1.1.1.1/32 port 888 udp 10 rdr le0 from 0/0 to 9.8.7.6/32 -> 1.1.1.1/32 icmp 14 rdr le0 from 0/0 to 9.8.7.6/32 -> 1.1.1.1/32 ip frag 15 rdr le0 from 0/0 to 9.8.7.6/32 -> 1.1.1.1/32 icmp frag 19 rdr le0 from 0/0 to 9.8.7.6/32 -> 1.1.1.1/32 ip frag age 10/10 20 rdr le0 from 0/0 to 9.8.7.6/32 -> 1.1.1.1/32 ip frag age 10/20 [all …]
|
| H A D | in5_6 | 3 rdr le0 inet6 from any to 9:8:7::6/128 port = 0 -> 1:1:1::1/128 port 0 tcp 4 rdr le0 inet6 from any to 9:8:7::6/128 -> 1:1:1::1/128 ip 6 rdr le0 inet6 from any to 9:8:7::6/128 -> 1:1:1::1/128 ip 7 rdr le0 inet6 from any to 9:8:7::6/128 port = 8888 -> 1:1:1::1/128 port 888 tcp 8 rdr le0 inet6 from any to 9:8:7::6/128 port = 8888 -> 1:1:1::1/128 port 888 udp 10 rdr le0 inet6 from any to 9:8:7::6/128 -> 1:1:1::1/128 icmp 14 rdr le0 inet6 from any to 9:8:7::6/128 -> 1:1:1::1/128 ip frag 15 rdr le0 inet6 from any to 9:8:7::6/128 -> 1:1:1::1/128 icmp frag 19 rdr le0 inet6 from any to 9:8:7::6/128 -> 1:1:1::1/128 ip frag age 10/10 20 rdr le0 inet6 from any to 9:8:7::6/128 -> 1:1:1::1/128 ip frag age 10/20 [all …]
|
| H A D | n4_6 | 12 rdr zx0 inet6 10:1:1::1/128 port 23 -> 10::2:2:1/128 port 10023 tcp 43 rdr zx0 inet6 10:1:1::/112 port 23 -> 10::2:2:1/128 port 10023 tcp 74 rdr zx0 inet6 any port 23 -> 10::2:2:1/128 port 10023 tcp 106 rdr zx0 inet6 10:1:1::/112 port 53 -> 10::2:2:1/128 port 10053 udp 137 rdr zx0 inet6 10:1:1::/112 port 0 -> 10::2:2:1/128 port 0 tcp 169 rdr zx0 inet6 10:1:1::/112 -> 10::2:2:1/128 ip
|
| H A D | n4 | 12 rdr zx0 10.1.1.1/32 port 23 -> 10.2.2.1/32 port 10023 tcp 43 rdr zx0 10.1.1.0/24 port 23 -> 10.2.2.1/32 port 10023 tcp 74 rdr zx0 0/0 port 23 -> 10.2.2.1/32 port 10023 tcp 106 rdr zx0 10.1.1.0/24 port 53 -> 10.2.2.1/32 port 10053 udp 137 rdr zx0 10.1.1.0/24 port 0 -> 10.2.2.1/32 port 0 tcp 169 rdr zx0 10.1.1.0/24 -> 10.2.2.1/32 ip
|
| /freebsd-14.2/contrib/netbsd-tests/ipf/regress/ |
| H A D | in2 | 1 rdr le0 9.8.7.6/32 port 0 -> 1.1.1.1 port 0 tcp 2 rdr le0 9.8.7.6/32 port 0 -> 1.1.1.1 port 0 255 3 rdr le0 9.8.7.6/32 port 80 -> 1.1.1.1 port 80 tcp 4 rdr le0 9.8.7.6/32 -> 1.1.1.1 ip 5 rdr le0 9.8.7.6/0xff000000 -> 1.1.1.1 ip 6 rdr le0 9.8.7.6/0xffff0000 -> 1.1.1.1 ip 7 rdr le0 9.8.7.6/32 port 80 -> 1.1.1.1 port 80 tcp 8 rdr le0 9.8.7.6/32 port 80 -> 0/0 port 80 tcp 9 rdr le0 9.8.7.6/32 port 80 -> 1.1.1.1 port 80 udp 20 rdr le0 9.8.7.6/32 -> 1.1.1.1 ip frag age 10 [all …]
|
| H A D | in2_6 | 1 rdr le0 inet6 9:8:7::6/128 port 0 -> 1:1:1::1 port 0 tcp 2 rdr le0 inet6 9:8:7::6/128 port 0 -> 1:1:1::1 port 0 255 3 rdr le0 inet6 9:8:7::6/128 port 80 -> 1:1:1::1 port 80 tcp 4 rdr le0 inet6 9:8:7::6/128 -> 1:1:1::1 ip 5 rdr le0 inet6 9:8:7::6/32 -> 1:1:1::1 ip 6 rdr le0 inet6 9:8:7::6/64 -> 1:1:1::1 ip 7 rdr le0 inet6 9:8:7::6/128 port 80 -> 1:1:1::1 port 80 tcp 8 rdr le0 inet6 9:8:7::6/128 port 80 -> 0/0 port 80 tcp 20 rdr le0 inet6 9:8:7::6/128 -> 1:1:1::1 ip frag age 10 69 rdr le0 inet6 0/0 -> test.host.dots [all …]
|
| H A D | in5 | 3 rdr le0 from any to 9.8.7.6/32 port = 0 -> 1.1.1.1 port 0 tcp 4 rdr le0 from any to 9.8.7.6/0xffffffff port = 0 -> 1.1.1.1 port 0 ip 5 rdr le0 ! from 1.2.3.4 to 9.8.7.6 port = 8888 -> 1.1.1.1 port 888 tcp 6 rdr le0 from any to 9.8.7.6/255.255.255.255 port = 8888 -> 1.1.1.1 port 888 ip 7 rdr le0 from any to 9.8.7.6 mask 0xffffffff port = 8888 -> 1.1.1.1 port 888 tcp 9 rdr le0 from any to 9.8.7.6/32 port = 8888 -> 1.1.1.1 port 888 tcp/udp 10 rdr le0 from any to 9.8.7.6/32 -> 1.1.1.1 port 888 icmp 11 rdr le0 from any to 9.8.7.6/32 port = 8888 -> 1.1.1.1,1.1.1.2 port 888 tcp 14 rdr le0 from any to 9.8.7.6/32 -> 1.1.1.1 port 0 ip frag 15 rdr le0 from any to 9.8.7.6/32 port = 8888 -> 1.1.1.1 port 888 icmp frag [all …]
|
| H A D | in5_6 | 3 rdr le0 inet6 from any to 9:8:7::6/128 port = 0 -> 1:1:1::1 port 0 tcp 4 rdr le0 inet6 from any to 9:8:7::6/128 port = 0 -> 1:1:1::1 port 0 ip 5 rdr le0 inet6 ! from 1:2:3::4 to 9:8:7::6 port = 8888 -> 1:1:1::1 port 888 tcp 6 rdr le0 inet6 from any to 9:8:7::6/128 port = 8888 -> 1:1:1::1 port 888 ip 7 rdr le0 inet6 from any to 9:8:7::6/128 port = 8888 -> 1:1:1::1 port 888 tcp 8 rdr le0 inet6 from any to 9:8:7::6/128 port = 8888 -> 1:1:1::1 port 888 udp 9 rdr le0 inet6 from any to 9:8:7::6/128 port = 8888 -> 1:1:1::1 port 888 tcp/udp 10 rdr le0 inet6 from any to 9:8:7::6/128 -> 1:1:1::1 port 888 icmp 14 rdr le0 inet6 from any to 9:8:7::6/128 -> 1:1:1::1 port 0 ip frag 15 rdr le0 inet6 from any to 9:8:7::6/128 port = 8888 -> 1:1:1::1 port 888 icmp frag [all …]
|
| H A D | n4 | 1 rdr zx0 10.1.1.1/32 port 23 -> 10.2.2.1 port 10023 tcp 2 rdr zx0 10.1.1.0/24 port 23 -> 10.2.2.1 port 10023 tcp 3 rdr zx0 0/0 port 23 -> 10.2.2.1 port 10023 tcp 4 rdr zx0 10.1.1.0/24 port 53 -> 10.2.2.1 port 10053 udp 5 rdr zx0 10.1.1.0/24 port 0 -> 10.2.2.1 port 0 tcp 6 rdr zx0 10.1.1.0/24 port 0 -> 10.2.2.1 port 0 ip
|
| H A D | n4_6 | 1 rdr zx0 10:1:1::1/128 port 23 -> 10::2:2:1 port 10023 tcp 2 rdr zx0 10:1:1::/112 port 23 -> 10::2:2:1 port 10023 tcp 3 rdr zx0 any port 23 -> 10::2:2:1 port 10023 tcp 4 rdr zx0 10:1:1::/112 port 53 -> 10::2:2:1 port 10053 udp 5 rdr zx0 10:1:1::/112 port 0 -> 10::2:2:1 port 0 tcp 6 rdr zx0 10:1:1::/112 port 0 -> 10::2:2:1 port 0 ip
|
| H A D | n6 | 1 rdr zx0 10.1.1.1/32 port 23 -> 10.2.2.1 port 10023 tcp 2 rdr zx0 from any to 10.1.1.0/24 port = 23 -> 10.2.2.1 port 10023 tcp 3 rdr zx0 from 10.2.0.0/16 to 10.1.1.0/24 port = 23 -> 10.2.2.1 port 10023 tcp 4 rdr zx0 from 10.3.0.0/16 to 10.1.0.0/16 port = 23 -> 10.2.2.1 port 10023 tcp 5 rdr zx0 ! from 10.2.0.0/16 to 10.1.1.0/24 port = 53 -> 10.2.2.1 port 10053 udp
|
| H A D | n6_6 | 1 rdr zx0 10:1:1::1/128 port 23 -> 10::2:2:1 port 10023 tcp 2 rdr zx0 from any to 10:1:1::/112 port = 23 -> 10::2:2:1 port 10023 tcp 3 rdr zx0 from 10::/32 to 10:1:1::/112 port = 23 -> 10::2:2:1 port 10023 tcp 4 rdr zx0 from 10:3::/32 to 10:1::/32 port = 23 -> 10::2:2:1 port 10023 tcp 5 rdr zx0 ! from 10::/32 to 10:1:1::/112 port = 53 -> 10::2:2:1 port 10053 udp
|
| H A D | ni17.nat | 1 rdr le0 0/0 port 80 -> 10.1.1.252 port 3128 tcp round-robin 2 rdr le0 0/0 port 80 -> 10.1.2.252 port 3128 tcp round-robin 3 rdr le0 0/0 port 80 -> 10.1.3.252 port 3128 tcp round-robin sticky 4 rdr le0 0/0 port 80 -> 10.1.1.253,10.1.2.253 port 3128 tcp round-robin sticky
|
| H A D | n7_6 | 1 rdr zx0 10:1:1::1/128 port 23-79 -> 10::2:2:1 port 10023 tcp 2 rdr zx0 10:1:1::1/128 port 23-79 -> 10::2:2:1 port = 10023 tcp 3 rdr zx0 10:1:1::/112 port 80 -> 10::2:2:1,1::2:2:129 port 3128 tcp
|
| H A D | n7 | 1 rdr zx0 10.1.1.1/32 port 23-79 -> 10.2.2.1 port 10023 tcp 2 rdr zx0 10.1.1.1/32 port 23-79 -> 10.2.2.1 port = 10023 tcp 3 rdr zx0 10.1.1.0/24 port 80 -> 10.2.2.1,1.2.2.129 port 3128 tcp
|
| H A D | n15 | 1 rdr le0 0/0 port 80 -> 3.3.3.3 port 80 tcp 2 rdr le0 0/0 port 80 -> 3.3.3.3 port 80-88 tcp
|
| H A D | n15_6 | 1 rdr le0 any port 80 -> 3:0:3::3:3 port 80 tcp 2 rdr le0 any port 80 -> 3:0:3::3:3 port 80-88 tcp
|
| H A D | ni6.nat | 1 rdr nf0 192.168.6.2 port 111 -> 192.168.7.1 port 111 udp proxy rpcbu 2 rdr nf0 192.168.6.2 port 111 -> 192.168.7.1 port 111 tcp proxy rpcbt
|
| H A D | ni18.nat | 1 rdr hme0 192.168.1.0/24 port 80 -> 1.1.1.1 port 80 tcp; 2 no rdr hme0 192.168.1.1 port 80 tcp;
|
| /freebsd-14.2/sys/netgraph/ |
| H A D | ng_nat.c | 281 struct ng_nat_listrdrs_entry rdr; member 450 entry->rdr.proto = rp->proto; in ng_nat_rcvmsg() 457 entry->rdr.id = priv->nextid++; in ng_nat_rcvmsg() 469 bcopy(&entry->rdr.id, resp->data, sizeof(entry->rdr.id)); in ng_nat_rcvmsg() 509 entry->rdr.id = priv->nextid++; in ng_nat_rcvmsg() 521 bcopy(&entry->rdr.id, resp->data, sizeof(entry->rdr.id)); in ng_nat_rcvmsg() 556 entry->rdr.proto = rp->proto; in ng_nat_rcvmsg() 575 bcopy(&entry->rdr.id, resp->data, sizeof(entry->rdr.id)); in ng_nat_rcvmsg() 591 if (entry->rdr.id == *id) in ng_nat_rcvmsg() 630 if (entry->rdr.id == as->id) in ng_nat_rcvmsg() [all …]
|
| /freebsd-14.2/share/examples/pf/ |
| H A D | faq-example1 | 27 # nat/rdr 30 rdr-anchor "ftp-proxy/*" 32 rdr pass on $int_if proto tcp to port ftp -> 127.0.0.1 port 8021 33 rdr on $ext_if proto tcp from any to any port 80 -> $comp3
|
| H A D | spamd | 6 no rdr on { lo0, lo1 } from any to any 7 rdr inet proto tcp from <spamd> to any port smtp -> 127.0.0.1 port spamd
|
| /freebsd-14.2/sbin/pfctl/tests/files/ |
| H A D | pf0019.in | 6 #match in on lo0 proto tcp from any to 1.2.3.4/32 port 2222 rdr-to 10.0.0.10 port 22 9 #match in on $GOOD proto tcp from $GOOD_NET to $DEST_NET port 21 rdr-to 127.0.0.1 port 8021
|