1*7c478bd9Sstevel@tonic-gate# 2*7c478bd9Sstevel@tonic-gate# test ruleset 3*7c478bd9Sstevel@tonic-gate# 4*7c478bd9Sstevel@tonic-gate# allow packets coming from foo to bar through. 5*7c478bd9Sstevel@tonic-gate# 6*7c478bd9Sstevel@tonic-gatepass in from 10.1.1.2 to 10.2.1.1 7*7c478bd9Sstevel@tonic-gate# 8*7c478bd9Sstevel@tonic-gate# allow any TCP packets from the same subnet as foo is on through to host 9*7c478bd9Sstevel@tonic-gate# 10.1.1.2 if they are destined for port 6667. 10*7c478bd9Sstevel@tonic-gate# 11*7c478bd9Sstevel@tonic-gatepass in proto tcp from 10.2.2.2/24 to 10.1.1.2/32 port = 6667 12*7c478bd9Sstevel@tonic-gate# 13*7c478bd9Sstevel@tonic-gate# allow in UDP packets which are NOT from port 53 and are destined for 14*7c478bd9Sstevel@tonic-gate# localhost 15*7c478bd9Sstevel@tonic-gate# 16*7c478bd9Sstevel@tonic-gatepass in proto udp from 10.2.2.2 port != 53 to localhost 17*7c478bd9Sstevel@tonic-gate# 18*7c478bd9Sstevel@tonic-gate# block all ICMP unreachables. 19*7c478bd9Sstevel@tonic-gate# 20*7c478bd9Sstevel@tonic-gateblock in proto icmp from any to any icmp-type unreach 21*7c478bd9Sstevel@tonic-gate# 22*7c478bd9Sstevel@tonic-gate# allow packets through which have a non-standard IP header length (ie there 23*7c478bd9Sstevel@tonic-gate# are IP options such as source-routing present). 24*7c478bd9Sstevel@tonic-gate# 25*7c478bd9Sstevel@tonic-gatepass in from any to any with ipopts 26