Skip to content

Instantly share code, notes, and snippets.

@pamolloy
Last active August 29, 2015 14:04
Show Gist options
  • Select an option

  • Save pamolloy/377eb98da7f5a10ab80f to your computer and use it in GitHub Desktop.

Select an option

Save pamolloy/377eb98da7f5a10ab80f to your computer and use it in GitHub Desktop.
Router #2
config 'dnsmasq'
option 'domainneeded' '1'
option 'boguspriv' '1'
option 'filterwin2k' '0'
option 'localise_queries' '1'
option 'rebind_protection' '1'
option 'rebind_localhost' '1'
option 'local' '/lan/'
option 'domain' 'lan'
option 'expandhosts' '1'
option 'nonegcache' '0'
option 'authoritative' '1'
option 'readethers' '1'
option 'leasefile' '/tmp/dhcp.leases'
option 'resolvfile' '/tmp/resolv.conf.auto'
config 'dhcp' 'lan'
option 'ignore' '1'
option 'interface' 'lan'
config 'dhcp' 'wan'
option 'interface' 'wan'
option 'ignore' '1'
config 'switch' 'eth0'
option 'enable' '1'
config 'switch_vlan' 'eth0_0'
option 'device' 'eth0'
option 'vlan' '0'
option 'ports' '0 1 2 3 5'
config 'switch_vlan' 'eth0_1'
option 'device' 'eth0'
option 'vlan' '1'
option 'ports' '4 5'
config 'interface' 'loopback'
option 'ifname' 'lo'
option 'proto' 'static'
option 'ipaddr' '127.0.0.1'
option 'netmask' '255.0.0.0'
config 'interface' 'lan'
option 'type' 'bridge'
option 'stp' '1'
option 'proto' 'static'
option 'netmask' '255.255.255.0'
option '_orig_ifname' 'eth0.0'
option '_orig_bridge' 'true'
option 'ipaddr' '192.168.1.2'
option 'ifname' 'eth0.0'
config 'interface' 'wan'
option 'proto' 'dhcp'
option '_orig_ifname' 'eth0.1'
option '_orig_bridge' 'false'
config 'wifi-device' 'wl0'
option 'type' 'broadcom'
option 'channel' '11'
option 'txpower' '18'
option 'hwmode' '11bg'
config 'wifi-iface'
option 'device' 'wl0'
option 'mode' 'sta'
option 'ssid' 'Network'
option 'encryption' 'psk2'
option 'key' 'Password'
option 'network' 'lan'
config 'wifi-iface'
option 'device' 'wl0'
option 'network' 'lan'
option 'mode' 'wds'
option 'bssid' '00:00:00:00:00:00'
option 'encryption' 'psk2'
option 'key' 'Password'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment