securing dhcpcd

Is there any way to secure dhcpcd, such as with iptables? If so, what would that rule look like?

3 Replies

Exactly what do you mean by 'securing' dhcpcd? Dhcpcd doesn't open any ports, so all you can do with iptables is block dhcp requests made by dhcpcd, which will make it useless.

OK, so you are saying that it's safe how it is? netstat says it is on 0.0.0.0:68, but it's not in the LISTEN state.

I had read this: http://www.gentoo.org/security/en/glsa/ … 507-16.xml">http://www.gentoo.org/security/en/glsa/glsa-200507-16.xml

but I guess that means that the dhcp server would have to be comprimised, and like you said, if you blocked access to that then dhcpcd would be useless.

This is a bit new to me. I'm just trying to make sure that I've closed any holes.

Thanks.

-austin

well, if you distrust dhcpcd, you can aways configure your ip adress manually. I don't know what distro you use, but in gentoo, you edit /etc/conf.d/net.example apropriately and save it to /etc/conf.d/net

The example file explains how it works. No more dhcpcd, one worry less :).

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct