diff options
author | julian <julian@FreeBSD.org> | 1998-07-06 03:20:19 +0000 |
---|---|---|
committer | julian <julian@FreeBSD.org> | 1998-07-06 03:20:19 +0000 |
commit | 22a5d80812f1c709917ff24ff791b1f952f8d6f7 (patch) | |
tree | bcc03ee3bb48fe95754fcda4fea765a7925f1343 /sys/netinet/ip_var.h | |
parent | 04d286f6479d77492b97067c0d09e9c982b707c0 (diff) | |
download | FreeBSD-src-22a5d80812f1c709917ff24ff791b1f952f8d6f7.zip FreeBSD-src-22a5d80812f1c709917ff24ff791b1f952f8d6f7.tar.gz |
Support for IPFW based transparent forwarding.
Any packet that can be matched by a ipfw rule can be redirected
transparently to another port or machine. Redirection to another port
mostly makes sense with tcp, where a session can be set up
between a proxy and an unsuspecting client. Redirection to another machine
requires that the other machine also be expecting to receive the forwarded
packets, as their headers will not have been modified.
/sbin/ipfw must be recompiled!!!
Reviewed by: Peter Wemm <peter@freebsd.org>
Submitted by: Chrisy Luke <chrisy@flix.net>
Diffstat (limited to 'sys/netinet/ip_var.h')
-rw-r--r-- | sys/netinet/ip_var.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/netinet/ip_var.h b/sys/netinet/ip_var.h index 9559a3e..827bd69 100644 --- a/sys/netinet/ip_var.h +++ b/sys/netinet/ip_var.h @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)ip_var.h 8.2 (Berkeley) 1/9/95 - * $Id: ip_var.h,v 1.40 1998/06/06 19:39:10 julian Exp $ + * $Id: ip_var.h,v 1.41 1998/06/08 09:47:42 bde Exp $ */ #ifndef _NETINET_IP_VAR_H_ @@ -211,6 +211,9 @@ extern u_short ip_divert_port; extern u_short ip_divert_cookie; #endif /* IPDIVERT */ +struct sockaddr_in; +extern struct sockaddr_in *ip_fw_fwd_addr; + #endif /* KERNEL */ #endif /* _NETINET_IP_VAR_H_ */ |