Skip to content

Instantly share code, notes, and snippets.

@ndunks ndunks/dnsmasq-tester.sh
Last active Dec 17, 2018

Embed
What would you like to do?
dnsmasq DHCP Example and logging
echo 1 | sudo tee /proc/sys/net/ipv4/ip_forward
sudo iptables -t nat -A POSTROUTING -j MASQUERADE
sudo ifconfig eth0 up 192.168.2.1
sudo dnsmasq --no-daemon --log-queries --log-dhcp \
--bind-interfaces --conf-file= --conf-dir= \
--interface=eth0 --except-interface=lo \
--dhcp-range=192.168.2.100,192.168.2.200,12h \
--listen-address=192.168.2.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.