summaryrefslogtreecommitdiffstats
path: root/share/man/man4/divert.4
diff options
context:
space:
mode:
authordanger <danger@FreeBSD.org>2006-09-24 13:58:44 +0000
committerdanger <danger@FreeBSD.org>2006-09-24 13:58:44 +0000
commit3c7bafa636755b3cbf8190124a1dddcbf0954d80 (patch)
treefbc9d6e90650e4a37917d1168c0a30b2f79d6246 /share/man/man4/divert.4
parentd277f6ba71c63d8ad297e5c8f7229a7055302733 (diff)
downloadFreeBSD-src-3c7bafa636755b3cbf8190124a1dddcbf0954d80.zip
FreeBSD-src-3c7bafa636755b3cbf8190124a1dddcbf0954d80.tar.gz
- move steps describing how to gain ipdivert support to SYNOPSIS and
follow the style of other section 4 manual pages - add ipfw(4) to SEE ALSO section Reviewed by: ru Approved by: trhodes (mentor), keramida (mentor)
Diffstat (limited to 'share/man/man4/divert.4')
-rw-r--r--share/man/man4/divert.426
1 files changed, 18 insertions, 8 deletions
diff --git a/share/man/man4/divert.4 b/share/man/man4/divert.4
index e1586f2..d0e6785 100644
--- a/share/man/man4/divert.4
+++ b/share/man/man4/divert.4
@@ -12,6 +12,23 @@
.In netinet/in.h
.Ft int
.Fn socket PF_INET SOCK_RAW IPPROTO_DIVERT
+.Pp
+To enable support for divert sockets, place the following lines in the
+kernel configuration file:
+.Bd -ragged -offset indent
+.Cd "options IPFIREWALL"
+.Cd "options IPDIVERT"
+.Ed
+.Pp
+Alternatively, to load
+.Ns Nm
+as a module at boot time, add the following lines into the
+.Xr loader.conf 5
+file:
+.Bd -literal -offset indent
+ipfw_load="YES"
+ipdivert_load="YES"
+.Ed
.Sh DESCRIPTION
Divert sockets are similar to raw IP sockets, except that they
can be bound to a specific
@@ -112,14 +129,6 @@ is altered to indicate an alternative re-entry point, care should be taken
to avoid loops, where the same packet is diverted more than once at the
same rule.
.Sh DETAILS
-To enable divert sockets, a kernel must be compiled with
-.Cd "options IPDIVERT"
-or the
-.Pa ipdivert.ko
-module can be loaded at run-time:
-.Pp
-.Dl "kldload ipdivert"
-.Pp
If a packet is diverted but no socket is bound to the
port, or if
.Dv IPDIVERT
@@ -163,6 +172,7 @@ that was not associated with any interface.
.Xr recvfrom 2 ,
.Xr sendto 2 ,
.Xr socket 2 ,
+.Xr ipfw 4 ,
.Xr ipfw 8
.Sh AUTHORS
.An Archie Cobbs Aq archie@FreeBSD.org ,
OpenPOWER on IntegriCloud