Added automatic config script
This commit is contained in:
7
dnsmasq.conf
Normal file
7
dnsmasq.conf
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
interface=wlan0
|
||||||
|
dhcp-range=192.168.2.2,192.168.2.30,255.255.255.0,6h
|
||||||
|
address=/#/192.168.2.1
|
||||||
|
server=8.8.8.8
|
||||||
|
log-queries
|
||||||
|
log-dhcp
|
||||||
|
#listen-address=127.0.0.1
|
||||||
10
honey.sh
Normal file
10
honey.sh
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
ip link set wlan0 up
|
||||||
|
ip address add 192.168.2.1/24 broadcast + dev wlan0
|
||||||
|
|
||||||
|
dnsmasq -C /home/alarm/dnsmasq.conf -d -R &
|
||||||
|
hostapd /home/alarm/hostapd.conf &
|
||||||
|
|
||||||
|
#source /home/alarm/vkflask/venv/bin/activate
|
||||||
|
#python /home/alarm/vkflask/app.py
|
||||||
7
hostapd.conf
Normal file
7
hostapd.conf
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
interface=wlan0
|
||||||
|
driver=nl80211
|
||||||
|
#country_code=
|
||||||
|
ssid=access_point
|
||||||
|
channel=1
|
||||||
|
hw_mode=g
|
||||||
|
macaddr_acl=0
|
||||||
Reference in New Issue
Block a user