diff options
| author | Cy Schubert <cy@FreeBSD.org> | 2013-07-19 05:41:57 +0000 |
|---|---|---|
| committer | Cy Schubert <cy@FreeBSD.org> | 2013-07-19 05:41:57 +0000 |
| commit | f27f47054d2675045dce8688b408aa9340a118f7 (patch) | |
| tree | 225b5acf68c01bc6a260b386c2b2dbf4fa2839e3 /rules/example.5 | |
| parent | 39ff65a633dd44a40233913b84b347003c732868 (diff) | |
Notes
Diffstat (limited to 'rules/example.5')
| -rw-r--r-- | rules/example.5 | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/rules/example.5 b/rules/example.5 new file mode 100644 index 000000000000..6d688b5eab80 --- /dev/null +++ b/rules/example.5 @@ -0,0 +1,25 @@ +# +# test ruleset +# +# allow packets coming from foo to bar 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 |
