xref: /freebsd/sbin/pfctl/tests/files/pf0002.in (revision ea825d02749f382c3f7e17f28247f20a48733eab)
1# test
2
3block	       out log on tun1000000		 all
4block	       in  log on tun1000000		 all
5
6block return-rst  out log on tun1000000 proto tcp all
7block return-rst  in  log on tun1000000 proto tcp all
8block return-icmp out log on tun1000000 proto udp all
9block return-icmp in  log on tun1000000 proto udp all
10
11block out log quick on tun1000000 from ! 157.161.48.183 to any
12
13block in quick on tun1000000 from any to 255.255.255.255
14
15block in log quick on tun1000000 from 10.0.0.0/8		to any
16block in log quick on tun1000000 from 172.16.0.0/12	to any
17block in quick log on tun1000000 from 192.168.0.0/16	to any
18block in quick log on tun1000000 from 255.255.255.255/32 to any
19
20block in log quick from no-route to any
21
22pass out on tun1000000 inet proto icmp all icmp-type 8 code 0 keep state
23pass in  on tun1000000 inet proto icmp all icmp-type 8 code 0 keep state
24
25pass out on tun1000000 proto udp all keep state
26
27pass in on tun1000000 proto udp from any to any port = domain keep state
28
29pass out on tun1000000 proto tcp all keep state
30
31pass in on tun1000000 proto tcp from any to any port = ssh    keep state
32pass in on tun1000000 proto tcp from any to any port = smtp   keep state
33pass in on tun1000000 proto tcp from any to any port = domain keep state
34pass in on tun1000000 proto tcp from any to any port = auth   keep state
35