openwrt 安装nodogsplash 并配置conf
Splash page: nodogsplash
Install the package:
root@OpenWrt:~# opkg install nodogsplash
The configuration file is in /etc/nodogsplash/nodogsplash.conf
GatewayInterface wlan0
FirewallRuleSet authenticated-users {
FirewallRule block to 192.168.0.0/16
FirewallRule block to 10.0.0.0/8
# Serveur de fichiers
FirewallRule allow tcp port 80 to 172.16.42.2
# respectivement: DNS, http, https, ssh
FirewallRule allow tcp port 53
FirewallRule allow udp port 53
FirewallRule allow tcp port 80
FirewallRule allow tcp port 443
FirewallRule allow tcp port 22
}
FirewallRuleSet preauthenticated-users
{
# DNS
FirewallRule allow tcp port 53
FirewallRule allow udp port 53
# Splash page
FirewallRule allow tcp port 80 to 172.16.42.1
}
GatewayName librenet-m2-sud
RedirectURL http://partage.m2.bidon.ca/
TrafficControl yes
UploadLimit 128
On peut modifier le html de la splash page dans /etc/nodogsplash/htdocs/
本文章由 http://www.wifidog.pro/2015/04/23/openwrt-nodogsplash.html 整理编辑,转载请注明出处