From f5911072c4c212313154d6de89dfcb8b056ba8b2 Mon Sep 17 00:00:00 2001 From: Anatoly Date: Sat, 10 Apr 2021 02:24:55 +0300 Subject: [PATCH] Added automatic config script --- dnsmasq.conf | 7 +++++++ honey.sh | 10 ++++++++++ hostapd.conf | 7 +++++++ 3 files changed, 24 insertions(+) create mode 100644 dnsmasq.conf create mode 100644 honey.sh create mode 100644 hostapd.conf diff --git a/dnsmasq.conf b/dnsmasq.conf new file mode 100644 index 0000000..0a3b2a6 --- /dev/null +++ b/dnsmasq.conf @@ -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 \ No newline at end of file diff --git a/honey.sh b/honey.sh new file mode 100644 index 0000000..1efdd94 --- /dev/null +++ b/honey.sh @@ -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 diff --git a/hostapd.conf b/hostapd.conf new file mode 100644 index 0000000..503efdb --- /dev/null +++ b/hostapd.conf @@ -0,0 +1,7 @@ +interface=wlan0 +driver=nl80211 +#country_code= +ssid=access_point +channel=1 +hw_mode=g +macaddr_acl=0 \ No newline at end of file