xref: /illumos-gate/usr/src/cmd/ipf/examples/example.11 (revision bdb9230ac765cb7af3fc1f4119caf2c5720dceb3)
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#
5pass 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#
10pass 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#
14block 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#
19block in proto tcp/udp all
20pass 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#
25pass in proto tcp/udp all
26block in proto tcp/udp from any to any port 511 >< 516
27