Initial import from FreeBSD RELENG_4:
[dragonfly.git] / contrib / ipfilter / rules / example.11
1 #
2 # allow any TCP packets from the same subnet as foo is on through to host
3 # 10.1.1.2 if they are destined for port 6667.
4 #
5 pass in proto tcp from 10.2.2.2/24 to 10.1.1.2/32 port = 6667
6 #
7 # allow in UDP packets which are NOT from port 53 and are destined for
8 # localhost
9 #
10 pass in proto udp from 10.2.2.2 port != 53 to localhost
11 #
12 # block anything trying to get to X terminal ports, X:0 to X:9
13 #
14 block in proto tcp from any to any port 5999 >< 6010
15 #
16 # allow any connections to be made, except to BSD print/r-services
17 # this will also protect syslog.
18 #
19 block in proto tcp/udp all
20 pass in proto tcp/udp from any to any port 512 <> 515
21 #
22 # allow any connections to be made, except to BSD print/r-services
23 # this will also protect syslog.
24 #
25 pass in proto tcp/udp all
26 block in proto tcp/udp from any to any port 511 >< 516