AP up and running

This commit is contained in:
Axel Rafn
2020-12-16 17:08:04 +00:00
parent 6ff3eebcb3
commit be1850b0b5
3 changed files with 52 additions and 15 deletions

View File

@ -1,7 +1,6 @@
interface=wlan0 interface=wlan0
bridge=br0
hw_mode=g hw_mode=g
channel=7 channel=6
wmm_enabled=0 wmm_enabled=0
macaddr_acl=0 macaddr_acl=0
auth_algs=1 auth_algs=1
@ -11,4 +10,4 @@ wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP wpa_pairwise=TKIP
rsn_pairwise=CCMP rsn_pairwise=CCMP
ssid=v0xb0x ssid=v0xb0x
wpa_passphrase=PASSWORD wpa_passphrase=x0bx0v

View File

@ -10,29 +10,51 @@ Not here in any special order, just ideas and thoughts on the system.
* 512MB RAM * 512MB RAM
* 16GB "disk" (microSD card) * 16GB "disk" (microSD card)
* Powered by a USB battery bank (10-20k mah)
# The list # The list
* MESH mode # TODO
* Offer to put device in MESH mode for 1st responder type scenarios * DNS
* Link for info on MESH: https://github.com/binnes/WiFiMeshRaspberryPi * Change * to 10.1.1.1 so the webserver can handle all requests.
* dnsmasq should do the trick
* WiFi AP mode
* Software: hostapd & dnsmasq
* Enable AP mode with WPA2-PSK for encrypted communication
* Enable AP mode without encryption for open connections ?
* HTTP Server * HTTP Server
* PHP must be running * PHP must be running
* run server in HTTPS mode * run server in HTTPS mode
* Offer blind drop-uploads (what max size?) * Small dropoff script for files less than 128/256MB ?
* Create script that creates a user for you for BB and FTP
* FTP Server
* pure-ftpd?
* Virtual users created via webscript, unique dirs only accessable by them.
* Bulletin board (Message Board)
* PHPBB?
* Will we need to clean it between boots?
* Keep data between boots?
* Offer "wiper" to wipe installation and clean install it again?
* Dropoff data
* Custom made.
* No name, just file upload.
* MESH mode ?
* Offer to put device in MESH mode for 1st responder type scenarios
* Link for info on MESH: https://github.com/binnes/WiFiMeshRaspberryPi
# DONE
* WiFi AP mode
* Software: hostapd & dnsmasq
* Enable AP mode with WPA2-PSK for encrypted communication
# Plans # Plans
* What do we need at first? * What do we need at first?
* OS side * OS side
* Start machine, put WiFi into AP mode * Start machine, put WiFi into AP mode X
* Have a DHCPD to supply IPs to clients * Have a DHCPD to supply IPs to clients X
* Have a DNS to route everything to the local website? * Have a DNS to route everything to the local website?
* Web side * Web side

View File

@ -4,9 +4,22 @@
apt-get update apt-get update
apt-get dist-upgrade -y apt-get dist-upgrade -y
apt-get install -y hostapd dnsmasq apt-get install -y hostapd dnsmasq
apt-get install -y apache2 php libapache2-mod-php
apt-get install -y mariadb-server-10.0
# lock down MySQL
mysql_secure_installation
# Enable mod-rewrite for Apach2
a2enmod rewrite
systemctl restart apache2
systemctl stop hostapd systemctl stop hostapd
systemctl stop dnsmasq systemctl stop dnsmasq
systemctl unmask hostapd
systemctl enable hostapd
# Modify /etc/dhcpcd.conf # Modify /etc/dhcpcd.conf
cat ./configs/dhcpcd.conf >> /etc/dhcpcd.conf cat ./configs/dhcpcd.conf >> /etc/dhcpcd.conf
@ -18,4 +31,7 @@ cat ./configs/dnsmasq.conf >> /etc/dnsmasq.conf
cat ./configs/hostapd.conf > /etc/hostapd/hostapd.conf cat ./configs/hostapd.conf > /etc/hostapd/hostapd.conf
# Add our config to the default hostapd.conf # Add our config to the default hostapd.conf
cat ./configs/hostapd.default.conf >> /etc/default/hostapd.conf cat ./configs/hostapd.default.conf >> /etc/default/hostapd.conf
systemctl start hostapd
systemctl start dnsmasq