summaryrefslogtreecommitdiff
path: root/share/man/man5
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2002-09-12 13:47:21 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2002-09-12 13:47:21 +0000
commit56720189fa6f061ee276a07160cbbe1959edb3b1 (patch)
treeb1ad131fe6d276180abaa37f3085ac2466a1e5a3 /share/man/man5
parentd14c02b2cefc9474d9aee145bc0c9e9096ee244f (diff)
explain antispoof
most work by nick@
Diffstat (limited to 'share/man/man5')
-rw-r--r--share/man/man5/pf.conf.522
1 files changed, 21 insertions, 1 deletions
diff --git a/share/man/man5/pf.conf.5 b/share/man/man5/pf.conf.5
index d2cbe73e105..3770f33c9a1 100644
--- a/share/man/man5/pf.conf.5
+++ b/share/man/man5/pf.conf.5
@@ -1,4 +1,4 @@
-.\" $OpenBSD: pf.conf.5,v 1.81 2002/09/12 12:17:05 henning Exp $
+.\" $OpenBSD: pf.conf.5,v 1.82 2002/09/12 13:47:20 henning Exp $
.\"
.\" Copyright (c) 2002, Daniel Hartmeier
.\" All rights reserved.
@@ -708,6 +708,26 @@ Normalization occurs before filtering, scrub rules and pass/block
rules are evaluated independently.
Hence, their relative position in the rule set is not relevant,
and packets can't be blocked before normalization.
+.Sh BLOCKING SPOOFED TRAFFIC
+"Spoofing" is the faking of IP addresses, typically for malicious
+purposes.
+The
+.Pa antispoof
+directive expands to a set of filter rules which will block all
+traffic with a source IP from the network(s) directly connected
+to the specified interface(s) from entering the system through
+any other interface.
+.Pp
+For example, the line
+.Bd -literal
+ antispoof for lo0
+.Ed
+.Pp
+expands to
+.Bd -literal
+ block in on ! lo0 inet from 127.0.0.1/8 to any
+ block in on ! lo0 inet6 from ::1 to any
+.Ed
.Sh FRAGMENT HANDLING
IP datagrams (packets) can have a size of up to 65535 bytes.
Most network links, however, have a maximum transmission unit (MTU)