This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Captive portal setup | |
######################################################## | |
sudo apt-get update -qq | |
sudo apt-get install -qq dnsmasq vim hostapd ufw dnsutils netstat-nat conntrack nginx php5 php5-common php5-fpm | |
sudo mkdir /usr/share/nginx/html/portal | |
sudo useradd nginx | |
sudo chown nginx:www-data /usr/share/nginx/html/portal | |
sudo chmod 755 /usr/share/nginx/html/portal | |
######################################################## |