Re: BIND running setuid with interface changes



Eugene M. Kim wrote:
Greetings,

I am running a VPN gateway, where interfaces come and go frequently. I
set up BIND so that it listens on all interfaces.
It seems that, instead of listening on a wildcard IPv4 address (*:53,
that is), BIND monitors for address changes on all interfaces and
creates a separate listening socket for each address (note that IPv6
uses the wildcard address, but IPv4 does not):

I suspect that you are using something like "listen-on-v6 { any; };"
in which case this is normal behavior.

Then, when a new address comes up (such as on a dynamically created L2TP
tun(4) interface), BIND tries to listen on it, but fails because it is
running setuid as bind:

That is also normal behavior.

The only workarounds that I can think of is either to run BIND as setuid
root, or to restart (not reload) BIND every time a new VPN connection
comes up, both of which I am not comfortable with.

Any better ideas?

Nope, sorry. That is how it works.


Doug

--

This .signature sanitized for your protection

_______________________________________________
freebsd-net@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • BIND running setuid with interface changes
    ... I am running a VPN gateway, where interfaces come and go frequently. ... set up BIND so that it listens on all interfaces. ... It seems that, instead of listening on a wildcard IPv4 address (*:53, ...
    (freebsd-net)
  • Re: Zugriff auf Container Computers bringt Fehlermeldung
    ... LISTENING ... Bind Name: Ndisuio ... Interfaces of the binding path: ...
    (microsoft.public.de.german.windows.server.active_directory)
  • Re: Maybe useful if you use a laptop for web dev...
    ... >>> I never could make DNS and Apache work if I had it setup to localhost. ... >>> machines on he network DNS queries failed. ... >> interfaces as they get addresses, and stop listening on interfaces as they ...
    (uk.comp.sys.mac)
  • Re[8]: mpd pppoe client problems
    ... If you bind, for example, apache to wildcard address 0.0.0.0, ... it will work with new interfaces and addresses. ... If you use some kind of ip-based virtualhost configuration, ...
    (freebsd-net)
  • RE: Bind Listening on port 32768
    ... Bind Listening on port 32768 ... This is kde-init that is running on port 32768 ... This worked perfectly in solving the listening "kdeinit" at port 32768. ... Get email alerts & NEW webcam video instant messaging with Yahoo! ...
    (Focus-Linux)