diff options
author | Kjell Wooding <kjell@cvs.openbsd.org> | 2000-01-17 17:40:28 +0000 |
---|---|---|
committer | Kjell Wooding <kjell@cvs.openbsd.org> | 2000-01-17 17:40:28 +0000 |
commit | a68bb2f3100afe06e37fdcfe0938115283ac9cb6 (patch) | |
tree | 99f78db56848b22694e7b630707dcd1690f5cab4 /share/ipf/example.5 | |
parent | f87ca1bd56b737cb12ae8c0871d3e804aa3c8ea4 (diff) |
Update the examples to those included with ipf 3.3.6. Add several new ones.
Diffstat (limited to 'share/ipf/example.5')
-rw-r--r-- | share/ipf/example.5 | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/share/ipf/example.5 b/share/ipf/example.5 index 6e122e03bc7..a45a4fa5b34 100644 --- a/share/ipf/example.5 +++ b/share/ipf/example.5 @@ -1,25 +1,25 @@ # # test ruleset # -# allow packets coming from foo to bar through. +# allow packets coming from foo (10.1.1.2) to bar (10.2.1.1) through. # -pass from foo to bar +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 proto tcp from fubar/24 to 10.1.1.2/32 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 proto udp from fubar port != 53 to localhost +pass in proto udp from 10.2.2.2 port != 53 to localhost # # block all ICMP unreachables. # -block from any to any icmp unreach +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 from any to any with ipopts +pass in from any to any with ipopts |