Roel
11 years ago
6 changed files with 113 additions and 2 deletions
@ -0,0 +1,38 @@ |
|||
config dnsmasq |
|||
option domainneeded 1 |
|||
option boguspriv 1 |
|||
option filterwin2k 0 # enable for dial on demand |
|||
option localise_queries 1 |
|||
option rebind_protection 1 # disable if upstream must serve RFC1918 addresses |
|||
option rebind_localhost 1 # enable for RBL checking and similar services |
|||
#list rebind_domain example.lan # whitelist RFC1918 responses for domains |
|||
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' |
|||
#list server '/mycompany.local/1.2.3.4' |
|||
#option nonwildcard 1 |
|||
#list interface br-lan |
|||
#list notinterface lo |
|||
#list bogusnxdomain '64.94.110.11' |
|||
list server '//192.168.2.1' |
|||
|
|||
config dhcp lan |
|||
option interface lan |
|||
option start 100 |
|||
option limit 150 |
|||
option leasetime 12h |
|||
|
|||
config dhcp wan |
|||
option interface wan |
|||
option ignore 1 |
|||
|
|||
config dhcp hotspot |
|||
option 'interface' 'hotspot' |
|||
option 'start' '100' |
|||
option 'limit' '150' |
|||
option 'dynamicdhcp' '1' |
@ -0,0 +1,34 @@ |
|||
config 'zone' |
|||
option 'name' 'hotspot' |
|||
option 'input' 'ACCEPT' |
|||
option 'forward' 'ACCEPT' #was REJECT |
|||
option 'output' 'ACCEPT' |
|||
|
|||
config 'rule' |
|||
|
|||
option 'src' 'hotspot' |
|||
option 'dest_port' '53' |
|||
option 'proto' 'tcpudp' |
|||
option 'target' 'ACCEPT' |
|||
|
|||
config 'rule' |
|||
option 'src' 'hotspot' |
|||
option 'src_port' '67-68' |
|||
option 'dest_port' '67-68' |
|||
option 'proto' 'udp' |
|||
option 'target' 'ACCEPT' |
|||
|
|||
config 'rule' |
|||
option 'target' 'ACCEPT' |
|||
option 'src' 'hotspot' # guest wifi interface |
|||
option 'proto' 'tcp' |
|||
option '_name' 'Website' # this can maybe go? |
|||
option 'dest_port' '80' |
|||
|
|||
config 'redirect' |
|||
option 'proto' 'tcp' |
|||
option '_name' 'Website' # this can maybe go? |
|||
option 'src' 'hotspot' # guest wifi interface |
|||
option 'src_dport' '80' |
|||
option 'dest_port' '80' |
|||
option 'dest_ip' '192.168.2.1' # ip of webserver |
@ -0,0 +1,16 @@ |
|||
#!/bin/sh /etc/rc.common |
|||
#meshenger startup script |
|||
|
|||
START=10 |
|||
STOP=15 |
|||
|
|||
start() { |
|||
echo 'starting Meshenger' |
|||
python ~/meshenger/main.py & |
|||
} |
|||
|
|||
stop() { |
|||
echo 'Killing Meshenger' |
|||
killall python |
|||
} |
|||
|
@ -1,8 +1,15 @@ |
|||
|
|||
config wifi-iface 'wmesh' |
|||
option device 'radio0' |
|||
option ifname 'adhoc0' |
|||
option network 'mesh' |
|||
option mode 'adhoc' |
|||
option ssid 'mesh' |
|||
option bssid '66:66:66:66:66:66' |
|||
option bssid '66:66:66:66:66:66' |
|||
|
|||
config wifi-iface |
|||
option 'device' 'radio0' #use your excisting wifi device, look in the list above. |
|||
option 'ssid' 'meshenger_node' #use a unique name for your network? |
|||
option 'network' 'hotspot' |
|||
option 'mode' 'ap' |
|||
option 'encryption' 'none' |
|||
option 'isolate' '1' |
Loading…
Reference in new issue