The managed switches finally arrived today and, surprisingly, multiple
chrooted servers at least *appear* to be doing their own thing on their
own vlans.
Proper addresses are being handed out on each vlan, I see no weird packets
or delays indicated by wireshark, no unexpected responses on a no-dhcp
vlan, no obvious errors being logged.
While waiting for the switches I tried looking at the code (mostly lpf.c)
to understand it. I have a long ways to go. There *are* recent vlan
related code changes.
There's going to be a lot more prodding and poking at this setup to see
if I'm missing anything bad, but it's working better than expected.
-----Original Message-----
From:
[hidden email]
[mailto:
[hidden email]] On Behalf Of Chuck Anderson
Sent: Friday, February 26, 2016 12:22 PM
To:
[hidden email]
Subject: Re: Multiple chrooted dhcp servers for vlans on Linux?
This won't work unless you use separate full virtual machines...
You could make it work on a single machine maybe, but you'd need to
recompile the dhcpd with USE_SOCKETS. Then dhcpd will only work to
serve remote clients via a relay agent, not local clients directly
connected to the same VLAN as the server. This is because local
clients must be served via a raw socket rather than a normal udp
socket. The reason is that responses to local, on-link clients must
contain specific IP headers and MAC address headers that cannot be set
via a regular udp socket, such as the all-ones broadcast address. I
may have the exact details wrong, but that is the gist of it.
On Fri, Feb 26, 2016 at 10:51:41AM -0800,
[hidden email] wrote:
> The goal is to have multiple chrooted dhcpd processes, one for each of
four
> vlans, such that a compromise of a more public one won't affect a more
> private one.
>
>
>
> Server version is isc-dhcpd-4.3.3-P1 and Linux is a recent install of
> Debian.
>
>
>
> I've got them all running but looking at dhcpd processes in netstat I
don't
> think it'll actually work in practice.
>
>
>
> Even though each one is specified to a particular vlan interface they all
> appear to be listening to 0.0.0.0 and I see nothing visible
differentiating
> them.
>
>
>
> Are they really all listing on every vlan, and does that mean incoming
> requests over one vlan will be handled by whatever server happens to grab
> the request (3 out of 4 chance it's the wrong one)?
_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users