Skip to contentSkip to conversation

DHCP-Daemon bypasses Linux iptables

DISCUSSION Joerg Pommnitz 2 participants 2 messages Apr 20, 2006 – Apr 24, 2006

lore
Share & tools
lore
#0 lore raw

Hello all,
I was seriously puzzled why iptables could not stop dhcp requests from reaching ISC dhcpd. Now I found the reason: instead of listening on a UDP socket dhcpd installs a LPF similar to tcpdump or ethereal. This bypasses the protection from the firewall. What can I do to regain that protection?

-- Regards
Joerg

#1 lore raw

Hi Joerg,

you could try to bind your dhcpd on a pseudo bridge interface and filter with ebtables. The syntax is quite the same as the usage of iptables...

kind ragards,
Martin

Quoted 11 lines · Joerg Pommnitz

Hello all,
I was seriously puzzled why iptables could not stop dhcp requests from reaching ISC dhcpd. Now I found the reason: instead of listening on a UDP socket dhcpd installs a LPF similar to tcpdump or ethereal. This bypasses the protection from the firewall. What can I do to regain that protection?

-- Regards
Joerg