This patch adds "-whitelist", and "-W" to the command line options and "whitelist" to the dhcpcd.conf file. This allows you to use whitelisting for validating dhcp servers. Reproducible: Always Steps to Reproduce: 1. Assuming you have your dhcp server on 192.168.0.1 2. /sbin/dhcpcd -whitelist 192.168.0.1 3. User violates policy and adds a wireless router with dhcp enabled to the network 4. dhcpcd will ignore the dhcp replies from the unknown router
Created attachment 207087 [details] Modified ebuild Ebuild adds whitelist use flag
Created attachment 207089 [details, diff] Patch to add whitelist to dhcpcd-4.0.13 The patch that does all the work
This feature has been added upstream in dhcpcd-5.x.