xref: /onnv-gate/usr/src/cmd/ipf/examples/example.10 (revision 0:68f95e015346)
1*0Sstevel@tonic-gate#
2*0Sstevel@tonic-gate# pass ack packets (ie established connection)
3*0Sstevel@tonic-gate#
4*0Sstevel@tonic-gatepass in proto tcp from 10.1.0.0/16 port = 23 to 10.2.0.0/16 flags A/A
5*0Sstevel@tonic-gatepass out proto tcp from 10.1.0.0/16 port = 23 to 10.2.0.0/16 flags A/A
6*0Sstevel@tonic-gate#
7*0Sstevel@tonic-gate# block incoming connection requests to my internal network from the big bad
8*0Sstevel@tonic-gate# internet.
9*0Sstevel@tonic-gate#
10*0Sstevel@tonic-gateblock in on le0 proto tcp from any to 10.1.0.0/16 flags S/SA
11*0Sstevel@tonic-gate#  to block the replies:
12*0Sstevel@tonic-gateblock out on le0 proto tcp from 10.1.0.0 to any flags SA/SA
13