From: Balazs Scheidler <bazsi@balabit.hu>
To: mtk.manpages@gmail.com
Cc: KOVACS Krisztian <hidden@sch.bme.hu>,
David Miller <davem@davemloft.net>,
linux-net@vger.kernel.org, netdev <netdev@vger.kernel.org>
Subject: Re: Documentation for IP_TRANSPARENT?
Date: Tue, 09 Dec 2008 14:17:28 +0100 [thread overview]
Message-ID: <1228828648.7631.75.camel@bzorp.balabit> (raw)
In-Reply-To: <cfd18e0f0811240806w541c85e9gafbcc80e8101f2b2@mail.gmail.com>
Hi,
On Mon, 2008-11-24 at 11:06 -0500, Michael Kerrisk wrote:
> Hello Krisztian,
>
> Your 2.6.27 patch adds the IP_TRANSPARENT socket option. Could you
> please supply some documentation (plain text is fine) suitable for
> inclusion in the ip(7) man page.
Although it was Krisztian who originally submitted the patches, but I
also did some things about them, so here I gave the documentation part a
spin.
There are some other related options, that are undocumented right now,
so I tried to give documentation on those as well.
IP_FREEBIND
Enable binding to IP addresses that do not currently exist. When
enabled on a TCP or UDP socket, the bind(2) call referencing a
non-existing IP address will succeed. This functionality is useful
if the specified IP address is dynamic (e.g. assigned to a PPP device)
and is down at the time when the application is trying to bind to it.
This setsockopt is the per-socket equivalent to ip_nonlocal_bind sysctl.
IP_TRANSPARENT
Enable transparent proxying on this socket. This socket option allows
the calling application to bind to a non-local IP address and operate
both as a client and a server with the foreign address as the local
endpoint. NOTE: this requires that routing be set up in a way that
packets going to the foreign address are routed through the tproxy box.
Enabling this socket option requires superuser privileges
(more specifically the CAP_NET_ADMIN capability).
TProxy redirection with the iptables TPROXY target also requires that
this option be set on the redirected socket.
IP_RECVORIGDSTADDR
Enables the IP_ORIGDSTADDR ancillary message in recvmsg(2) in which
the kernel returns the original destination address of a datagram. The
ancillary message contains a "struct sockaddr_in" instance.
--
Bazsi
next prev parent reply other threads:[~2008-12-09 13:17 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-24 16:06 Documentation for IP_TRANSPARENT? Michael Kerrisk
2008-12-09 13:17 ` Balazs Scheidler [this message]
2010-10-13 5:16 ` Michael Kerrisk
2010-10-15 19:40 ` Balazs Scheidler
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1228828648.7631.75.camel@bzorp.balabit \
--to=bazsi@balabit.hu \
--cc=davem@davemloft.net \
--cc=hidden@sch.bme.hu \
--cc=linux-net@vger.kernel.org \
--cc=mtk.manpages@gmail.com \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox