Hi guys. On my system (Librem 15 v4, PureOS amber), rkhunter is complaining about /usr/sbin/dhclient listening on the network.
Now, I already had /sbin/dhclient whitelisted for this check. It appears that dhclient has moved to a different directory, under /usr/ . Is that normal, or should I be concerned?
Did you look what’s actually inside these directories? Maybe there is a soft link between them and the binary is only in one directory. Just guessing.
Also I wonder how long a DHCP client listens to the network. Shouldn’t it only wait for a response after itself send a request?
An IP address assigned by DHCP is only valid for X seconds (where X may be very short or very long or anything in between). So every DHCP client has a repeated need for communication on the network i.e. to renew the lease every X seconds (and in fact nearly all DHCP clients will start attempting to renew the lease substantially before the lease expires, in accordance with the DHCP RFC).
I do believe (someone correct me if I am wrong) that the exact behaviour is a relatively recent change (last few years).
It used to be that there was nothing permanently sitting on the DHCP port (really the bootp port).
Nowadays there is something sitting on that port.
in either case as revealed by netstat
Perhaps there was some reason for the change but I don’t know what it was.