Gentoo/Stealth DHCP

Page last edited 3,796 days ago
From Alon Bar-Lev's Site
Jump to navigation Jump to search

When using DHCP as client your computer leaves traces of its mac address, hostname and even some uuid at hosting network.

It is possible to leave lower mark.

Configuration

emerge net-analyzer/macchanger app-arch/sharutils

Add:

File: /etc/conf.d/net
my_name=`cat /dev/urandom | head --bytes 9 | uuencode -m - | head -n 2 | tail -n 1`

preup() {
        [ -f /var/lib/dhcpcd/dhcpcd.duid ] && rm /var/lib/dhcpcd/dhcpcd.duid
        return 0
}

rc_net_eth0_need="firewall"     # optional, if you have firewall
dhcp_eth0="release nontp nonis nosendhost"
dhcpcd_eth0="-h ${my_name} -I ${my_name}"
mac_eth0="random-samekind"

Maintainer

Alon Bar-Lev

Authors

Originally written by: Alon Bar-Lev - 2011-11-17


Authors are people who have worked on this document and have made significant changes to its content. If you have edited this article and wish to add yourself to the authors list please read "Who are Authors".