diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2002-09-26 08:30:37 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2002-09-26 08:30:37 +0000 |
commit | 893e0dcf5fea92d88df453e8dea0bd492558c774 (patch) | |
tree | 7e39a51627cb902a8a07aee494b9cce9ceb04e0c /share/man/man5 | |
parent | 7eb9bb1f0f9b4f7d3cac79d69e90cf49e5c325ee (diff) |
document extended antispoof
some help nick@ and frantzen@
ok theo
Diffstat (limited to 'share/man/man5')
-rw-r--r-- | share/man/man5/pf.conf.5 | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/share/man/man5/pf.conf.5 b/share/man/man5/pf.conf.5 index c5be96e95f3..868cab855fe 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.86 2002/09/18 16:28:47 henning Exp $ +.\" $OpenBSD: pf.conf.5,v 1.87 2002/09/26 08:30:36 henning Exp $ .\" .\" Copyright (c) 2002, Daniel Hartmeier .\" All rights reserved. @@ -728,6 +728,21 @@ expands to block in on ! lo0 inet from 127.0.0.1/8 to any block in on ! lo0 inet6 from ::1 to any .Ed +.Pp +For non-loopback interfaces, there are additional rules to block incoming +packets with a source IP address identical to the interface's IP(s). +For example, assuming the interface wi0 had an IP address of 10.0.0.1 and a +netmask of 255.255.255.0, +the line +.Bd -literal + antispoof for wi0 inet +.Ed +.Pp +expands to +.Bd -literal + block in on ! wi0 inet from 10.0.0.1/24 to any + block in inet from 10.0.0.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) |