| /freebsd/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 3 rdr le0 9.8.7.6/32 port 80 -> 1.1.1.1/32 port 80 tcp 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 7 rdr le0 9.8.7.6/32 port 80 -> 1.1.1.1/32 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/32 port 80 udp 10 rdr le0 9.8.7.6/32 port 80 -> 1.1.1.1/32 port 80 tcp/udp [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 3 rdr le0 inet6 9:8:7::6/128 port 80 -> 1:1:1::1/128 port 80 tcp 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 7 rdr le0 inet6 9:8:7::6/128 port 80 -> 1:1:1::1/128 port 80 tcp 8 rdr le0 inet6 9:8:7::6/128 port 80 -> any port 80 tcp 9 rdr le0 inet6 9:8:7::6/128 port 80 -> 1:1:1::1/128 port 80 udp 10 rdr le0 inet6 9:8:7::6/128 port 80 -> 1:1:1::1/128 port 80 tcp/udp [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 5 rdr le0 ! from 1.2.3.4/32 to 9.8.7.6/32 port = 8888 -> 1.1.1.1/32 port 888 tcp 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 9 rdr le0 from 0/0 to 9.8.7.6/32 port = 8888 -> 1.1.1.1/32 port 888 tcp/udp 10 rdr le0 from 0/0 to 9.8.7.6/32 -> 1.1.1.1/32 icmp 11 rdr le0 from 0/0 to 9.8.7.6/32 port = 8888 -> 1.1.1.1,1.1.1.2 port 888 tcp 12 rdr le0 from 0/0 to 9.8.7.6/32 port = 8888 -> 1.1.1.1/32 port 888 tcp round-robin [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 5 rdr le0 inet6 ! from 1:2:3::4/128 to 9:8:7::6/128 port = 8888 -> 1:1:1::1/128 port 888 tcp 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 9 rdr le0 inet6 from any to 9:8:7::6/128 port = 8888 -> 1:1:1::1/128 port 888 tcp/udp 10 rdr le0 inet6 from any to 9:8:7::6/128 -> 1:1:1::1/128 icmp 11 rdr le0 inet6 from any to 9:8:7::6/128 port = 8888 -> 1:1:1::1,1:1:1::2 port 888 tcp 12 rdr le0 inet6 from any to 9:8:7::6/128 port = 8888 -> 1:1:1::1/128 port 888 tcp round-robin [all …]
|
| 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
|
| 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
|
| /freebsd/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 10 rdr le0 9.8.7.6/32 port 80 -> 1.1.1.1 port 80 tcp/udp [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 9 rdr le0 inet6 9:8:7::6/128 port 80 -> 1:1:1::1 port 80 udp 10 rdr le0 inet6 9:8:7::6/128 port 80 -> 1:1:1::1 port 80 tcp/udp [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 8 rdr le0 from any to 9.8.7.6 mask 255.255.255.255 port = 8888 -> 1.1.1.1 port 888 udp 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 12 rdr le0 from any to 9.8.7.6/32 port = 8888 -> 1.1.1.1 port 888 tcp round-robin [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 11 rdr le0 inet6 from any to 9:8:7::6/128 port = 8888 -> 1:1:1::1,1:1:1::2 port 888 tcp 12 rdr le0 inet6 from any to 9:8:7::6/128 port = 8888 -> 1:1:1::1 port 888 tcp round-robin [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 | 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 | 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 | 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
|
| /freebsd/sys/netgraph/ |
| H A D | ng_nat.c | 287 struct ng_nat_listrdrs_entry rdr; member 450 entry->rdr.local_addr = rp->local_addr; in ng_nat_rcvmsg() 451 entry->rdr.alias_addr = rp->alias_addr; in ng_nat_rcvmsg() 452 entry->rdr.remote_addr = rp->remote_addr; in ng_nat_rcvmsg() 453 entry->rdr.local_port = rp->local_port; in ng_nat_rcvmsg() 454 entry->rdr.alias_port = rp->alias_port; in ng_nat_rcvmsg() 455 entry->rdr.remote_port = rp->remote_port; in ng_nat_rcvmsg() 456 entry->rdr.proto = rp->proto; in ng_nat_rcvmsg() 457 bcopy(rp->description, entry->rdr.description, in ng_nat_rcvmsg() 461 entry->rdr.description[NG_NAT_DESC_LENGTH-1] = '\0'; in ng_nat_rcvmsg() [all …]
|
| /freebsd/sbin/pfctl/tests/files/ |
| H A D | pf0019.ok | 5 match in on lo0 inet proto tcp from any to 1.2.3.4 port = 2222 rdr-to 10.0.0.10 port 22 6 match in on lo0 inet proto tcp from 127.0.0.0/24 to 1.2.3.0/25 port = ftp rdr-to 127.0.0.1 port 8021 7 match in on lo0 inet proto tcp from 127.0.0.0/24 to 2.4.6.8/30 port = ftp rdr-to 127.0.0.1 port 8021 8 match in on lo0 inet proto tcp from 10.0.1.0/24 to 1.2.3.0/25 port = ftp rdr-to 127.0.0.1 port 8021 9 match in on lo0 inet proto tcp from 10.0.1.0/24 to 2.4.6.8/30 port = ftp rdr-to 127.0.0.1 port 8021 10 match in on lo1000000 inet proto tcp from 127.0.0.0/24 to 1.2.3.0/25 port = ftp rdr-to 127.0.0.1 po… 11 match in on lo1000000 inet proto tcp from 127.0.0.0/24 to 2.4.6.8/30 port = ftp rdr-to 127.0.0.1 po… 12 match in on lo1000000 inet proto tcp from 10.0.1.0/24 to 1.2.3.0/25 port = ftp rdr-to 127.0.0.1 por… 13 match in on lo1000000 inet proto tcp from 10.0.1.0/24 to 2.4.6.8/30 port = ftp rdr-to 127.0.0.1 por…
|
| H A D | pf0020.ok | 9 match in on lo0 inet proto tcp from 127.0.0.0/24 to 1.2.3.0/25 port = ftp rdr-to 127.0.0.1 port 8021 10 match in on lo0 inet proto tcp from 127.0.0.0/24 to 2.4.6.8/30 port = ftp rdr-to 127.0.0.1 port 8021 11 match in on lo0 inet proto tcp from 10.0.1.0/24 to 1.2.3.0/25 port = ftp rdr-to 127.0.0.1 port 8021 12 match in on lo0 inet proto tcp from 10.0.1.0/24 to 2.4.6.8/30 port = ftp rdr-to 127.0.0.1 port 8021 13 match in on lo1000000 inet proto tcp from 127.0.0.0/24 to 1.2.3.0/25 port = ftp rdr-to 127.0.0.1 po… 14 match in on lo1000000 inet proto tcp from 127.0.0.0/24 to 2.4.6.8/30 port = ftp rdr-to 127.0.0.1 po… 15 match in on lo1000000 inet proto tcp from 10.0.1.0/24 to 1.2.3.0/25 port = ftp rdr-to 127.0.0.1 por… 16 match in on lo1000000 inet proto tcp from 10.0.1.0/24 to 2.4.6.8/30 port = ftp rdr-to 127.0.0.1 por…
|
| /freebsd/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
|
| /freebsd/contrib/pf/ftp-proxy/ |
| H A D | filter.c | 110 pfrule.rdr.proxy_port[0] = nat_range_low; in add_nat() 111 pfrule.rdr.proxy_port[1] = nat_range_high; in add_nat() 121 u_int16_t d_port, struct sockaddr *rdr, u_int16_t rdr_port) in add_rdr() argument 123 if (!src || !dst || !d_port || !rdr || !rdr_port || in add_rdr() 124 (src->sa_family != rdr->sa_family)) { in add_rdr() 132 if (rdr->sa_family == AF_INET) { in add_rdr() 134 &satosin(rdr)->sin_addr.s_addr, 4); in add_rdr() 138 &satosin6(rdr)->sin6_addr.s6_addr, 16); in add_rdr() 144 pfrule.rdr.proxy_port[0] = rdr_port; in add_rdr()
|
| /freebsd/contrib/pf/tftp-proxy/ |
| H A D | filter.c | 114 pfrule.rdr.proxy_port[0] = nat_range_low; in add_nat() 115 pfrule.rdr.proxy_port[1] = nat_range_high; in add_nat() 125 u_int16_t d_port, struct sockaddr *rdr, u_int16_t rdr_port, u_int8_t proto) in add_rdr() argument 127 if (!src || !dst || !d_port || !rdr || !rdr_port || !proto || in add_rdr() 128 (src->sa_family != rdr->sa_family)) { in add_rdr() 136 if (rdr->sa_family == AF_INET) { in add_rdr() 138 &satosin(rdr)->sin_addr.s_addr, 4); in add_rdr() 142 &satosin6(rdr)->sin6_addr.s6_addr, 16); in add_rdr() 148 pfrule.rdr.proxy_port[0] = rdr_port; in add_rdr()
|