xref: /onnv-gate/usr/src/cmd/ipf/examples/example.11 (revision 0:68f95e015346)
1*0Sstevel@tonic-gate#
2*0Sstevel@tonic-gate# allow any TCP packets from the same subnet as foo is on through to host
3*0Sstevel@tonic-gate# 10.1.1.2 if they are destined for port 6667.
4*0Sstevel@tonic-gate#
5*0Sstevel@tonic-gatepass in proto tcp from 10.2.2.2/24 to 10.1.1.2/32 port = 6667
6*0Sstevel@tonic-gate#
7*0Sstevel@tonic-gate# allow in UDP packets which are NOT from port 53 and are destined for
8*0Sstevel@tonic-gate# localhost
9*0Sstevel@tonic-gate#
10*0Sstevel@tonic-gatepass in proto udp from 10.2.2.2 port != 53 to localhost
11*0Sstevel@tonic-gate#
12*0Sstevel@tonic-gate# block anything trying to get to X terminal ports, X:0 to X:9
13*0Sstevel@tonic-gate#
14*0Sstevel@tonic-gateblock in proto tcp from any to any port 5999 >< 6010
15*0Sstevel@tonic-gate#
16*0Sstevel@tonic-gate# allow any connections to be made, except to BSD print/r-services
17*0Sstevel@tonic-gate# this will also protect syslog.
18*0Sstevel@tonic-gate#
19*0Sstevel@tonic-gateblock in proto tcp/udp all
20*0Sstevel@tonic-gatepass in proto tcp/udp from any to any port 512 <> 515
21*0Sstevel@tonic-gate#
22*0Sstevel@tonic-gate# allow any connections to be made, except to BSD print/r-services
23*0Sstevel@tonic-gate# this will also protect syslog.
24*0Sstevel@tonic-gate#
25*0Sstevel@tonic-gatepass in proto tcp/udp all
26*0Sstevel@tonic-gateblock in proto tcp/udp from any to any port 511 >< 516
27