xref: /freebsd/sbin/pfctl/tests/files/pf0007.in (revision 95eb4b873b6a8b527c5bd78d7191975dfca38998)
1# test modulate state
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 log quick on tun1000000 from 192.168.0.0/16	to any
18block in log quick on tun1000000 from 255.255.255.255/32 to any
19
20pass out on tun1000000 inet proto icmp all icmp-type 8 code 0 keep state
21pass in  on tun1000000 inet proto icmp all icmp-type 8 code 0 keep state
22
23pass out on tun1000000 proto udp all keep state
24
25pass in on tun1000000 proto udp from any to any port = domain keep state
26
27pass out on tun1000000 proto tcp all modulate state
28pass in on tun1000000 proto { tcp udp icmp } all modulate state
29pass in on tun1000000 proto { udp tcp icmp } all flags S/SA synproxy state
30
31pass in on tun1000000 proto tcp from any to any port = ssh    modulate state
32pass in on tun1000000 proto tcp from any to any port = smtp   modulate state
33pass in on tun1000000 proto tcp from any to any port = domain modulate state
34pass in on tun1000000 proto tcp from any to any port = auth   modulate state
35