Skip to content

Instantly share code, notes, and snippets.

Created September 3, 2015 00:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save anonymous/7da9265d32dbecea18f8 to your computer and use it in GitHub Desktop.
Save anonymous/7da9265d32dbecea18f8 to your computer and use it in GitHub Desktop.
# dnsmasq.conf

domain-needed
bogus-priv

no-resolv
no-poll

listen-address=127.0.0.1
listen-address=192.168.1.1
interface=br0
bind-interfaces

min-port=4096
server=8.8.8.8
server=8.8.4.4

dhcp-range=lan,192.168.1.5,192.168.1.50,255.255.255.0,5m

# broadcast address (28)
dhcp-option=lan,28,192.168.1.255

# gateway address (3)
dhcp-option=lan,3,192.168.1.1

# DNS server (6)
dhcp-option=lan,6,192.168.1.1

dhcp-authoritative
# /etc/network/interfaces

auto lo
iface lo inet loopback

auto eth0
allow-hotplug eth0
iface eth0 inet manual

iface eth1 inet manual

auto br0
iface br0 inet static
bridge_ports eth0 eth1
address 192.168.1.1
netmask 255.255.255.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment