summaryrefslogtreecommitdiff
path: root/regress/sbin/pfctl/pf13.in
blob: 3ec22f59cc1dfa1bebb74cbfe1bb0e2e1cb0fa9a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
pass in quick on enc0 fastroute all
pass in quick on enc0 fastroute inet all
pass in quick on enc0 fastroute inet6 all

pass out quick on tun0 route-to tun1 inet all
pass out quick on tun0 route-to tun1 from any to 192.168.1.1
pass out quick on tun0 route-to tun1 from any to fec0::1

block in on tun0 dup-to (tun1 192.168.1.1) proto tcp from any to any port = 21
block in on tun0 dup-to (tun1 fec0::1) proto tcp from any to any port = 21

pass in quick on tun0 route-to tun1 from 192.168.1.1/32 to 10.1.1.1/32
pass in quick on tun0 route-to tun1 from fec0::1/64 to fec1::2/128

block in on tun0 reply-to (tun1 192.168.1.1) proto tcp from any to any port = 21
block in on tun0 reply-to (tun1 fec0::1) proto tcp from any to any port = 21

pass in quick on tun0 reply-to tun1 from 192.168.1.1/32 to 10.1.1.1/32
pass in quick on tun0 reply-to tun1 from fec0::1/64 to fec1::2/128

pass in quick on tun0 dup-to (tun1 192.168.1.100) from 192.168.1.1/32 to 10.1.1.1/32
pass in quick on tun0 dup-to (tun1 fec1::2) from fec0::1/64 to fec1::2/128