Home
last modified time | relevance | path

Searched refs:binat (Results 1 – 11 of 11) sorted by relevance

/openbsd/regress/sbin/pfctl/
H A Dpf17.in1 # test binat
3 match on lo0 from 192.168.1.1 to any binat-to 10.0.0.1
28 match on lo0 from ::1 to no-route binat-to ::2
29 match on lo0 from (lo0:0) to ::1 binat-to ::2
32 match on lo0 from ::1 to <sometable> binat-to ::2
38 match on lo0 from ::1 to (lo0) binat-to ::1
39 match on lo0 from ::1 to (lo0:0) binat-to ::1
40 match on lo0 from ::1 to (lo0:peer) binat-to ::1
46 match on lo0 from ::1 to (lo0)/100 binat-to ::2
51 match on lo from (lo0:0) to ::1 binat-to ::2
[all …]
H A Dpfail30.in1 # invalid binat stuff
2 match on lo0 from (lo0) to (lo1000000) binat-to (lo0)
3 match on lo0 from (lo0) to no-route binat-to (lo1000000)
4 match on lo0 from no-route to any binat-to 1.1.1.1
5 match on lo0 from !1.1.1.1 to any binat-to 1.1.1.1
6 match on lo0 from !(lo0) to any binat-to 1.1.1.1
7 match on lo0 from 1.1.1.1 to any binat-to no-route
8 match on lo0 from 1.1.1.1 to any binat-to !3.3.3.3
14 match on lo0 from ::1 to any binat-to 1.2.3.4
16 match on lo0 from 1.1.1.1 to any binat-to ::1
[all …]
H A Dpfail30.ok1 stdin:2: invalid use of interface (lo0) as the source address of a binat-to rule
2 stdin:2: dynamic interfaces must be used with :0 in a binat-to rule
5 stdin:3: invalid use of interface (lo0) as the source address of a binat-to rule
6 stdin:3: dynamic interfaces must be used with :0 in a binat-to rule
9 stdin:4: binat-to requires a specified source and redirect address
12 stdin:6: invalid use of interface (lo0) as the source address of a binat-to rule
13 stdin:6: dynamic interfaces must be used with :0 in a binat-to rule
19 stdin:13: binat-to requires a specified source and redirect address
20 stdin:13: source and redir addresess must have a matching network mask in binat-rule
21 stdin:13: tables cannot be used as the redirect address of a binat-to rule
[all …]
H A Dpfail19.ok1 stdin:4: binat-to requires a specified source and redirect address
2 stdin:4: source and redir addresess must have a matching network mask in binat-rule
3 stdin:4: tables cannot be used as the redirect address of a binat-to rule
6 stdin:5: invalid use of table <sometable> as the source address of a binat-to rule
H A Dpf80.in3 pass on lo0 from 10/8 to 11/8 binat-to 12/8
7 pass log on lo0 from 10/8 to 11/8 binat-to 12/8
11 pass log (all) on lo0 from 10/8 to 11/8 binat-to 12/8
15 match log on lo0 from 10/8 to 11/8 binat-to 12/8
H A Dpf72.in1 # test binat tagging
2 match on lo0 from 192.168.1.1 to any tag regress binat-to 10.0.0.1
H A Dpfail19.in4 match on lo0 from 1.1.1.1 to any binat-to <sometable>
5 match on lo0 from <sometable> to any binat-to 1.1.1.1
H A Dpfail39.in2 tag faaaaaaaaaaaartoooooooooloooooooooongfaaaaaaaaaaaartoooooooooloooooooooong binat-to 10.0.0.1
H A Dpf76.in2 match on lo0 inet from 1.2.3.4 to 5.6.7.8 binat-to lo0
H A Dpf16.in4 match on lo0 from 192.168.1.1 to any binat-to 10.0.0.1
/openbsd/sbin/pfctl/
H A Dparse.y228 int binat; member
2109 filter_opts.nat.binat = 1;
4635 struct redirspec binat; in expand_rule() local
4796 if (nat && nat->rdr && nat->binat) { in expand_rule()
4871 bzero(&binat, sizeof(binat)); in expand_rule()
4872 if ((binat.rdr = in expand_rule()
4875 bcopy(nat->rdr, binat.rdr, sizeof(*binat.rdr)); in expand_rule()
4876 bcopy(&nat->pool_opts, &binat.pool_opts, in expand_rule()
4877 sizeof(binat.pool_opts)); in expand_rule()
4878 binat.pool_opts.staticport = 0; in expand_rule()
[all …]