[BACK]Return to example.5 CVS log [TXT][DIR] Up to [local] / src / share / ipf

File: [local] / src / share / ipf / Attic / example.5 (download)

Revision 1.2, Mon Jan 17 17:40:27 2000 UTC (24 years, 4 months ago) by kjell
Branch: MAIN
CVS Tags: OPENBSD_2_9_BASE, OPENBSD_2_9, OPENBSD_2_8_BASE, OPENBSD_2_8, OPENBSD_2_7_BASE, OPENBSD_2_7
Changes since 1.1: +6 -6 lines

Update the examples to those included with ipf 3.3.6. Add several new ones.

#
# test ruleset
#
# allow packets coming from foo (10.1.1.2) to bar (10.2.1.1)  through.
#
pass in from 10.1.1.2 to 10.2.1.1
#
# allow any TCP packets from the same subnet as foo is on through to host
# 10.1.1.2 if they are destined for port 6667.
#
pass in proto tcp from 10.2.2.2/24 to 10.1.1.2/32 port = 6667
#
# allow in UDP packets which are NOT from port 53 and are destined for
# localhost
#
pass in proto udp from 10.2.2.2 port != 53 to localhost
#
# block all ICMP unreachables.
#
block in proto icmp from any to any icmp-type unreach
#
# allow packets through which have a non-standard IP header length (ie there
# are IP options such as source-routing present).
#
pass in from any to any with ipopts