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