You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2012/03/23 14:28:16 UTC

DO NOT REPLY [Bug 52978] Binding to an interface instead of an address

https://issues.apache.org/bugzilla/show_bug.cgi?id=52978

--- Comment #1 from Alexandre Ferrieux <al...@orange-ftgroup.com> 2012-03-23 13:28:16 UTC ---
Are there any plans to make use of SO_BINDTODEVICE, as has been proposed by
various patchers over the years, to allow Apache to bind to a specific device
rather than address ?

The typical use case is a VRRP-managed address that  is *not* owned by the host
at the time httpd starts. It then fails with the regular bind() syscall.

With     setsockopt(..., SO_BINDTODEVICE, "ethX", ...); on could simply bind to
the device, and any floating IP subsequently attached to it (with VRRP or
manual "ip addr add" commands) could receive requests.

Of course, people usually don't care because INADDR_ANY satisfies most simple
uses. However, there are real life setups where one wants to restrict to one
interface for security reasons, or for modularity (because another service or
Apache instance runs on the same port on another interface).

The SO_BINDTODEVICE method could easily be triggered by a syntax extension to
Listen, as has also been proposed by those who do it by hand.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org