Guest Posted September 1, 2017 Posted September 1, 2017 Hi All, I try to get a web page accessible from a hotspot with a notification sent to customer when it connects to the AP (using lighttpd, hostapd, dnsmasq, squid and squidguard) I can connect to the AP but I have no response to the ping On the Nano Pi Air in AP mode : iwconfig => wlan0 IEEE 802.11 ESSID:"Armbian" ifconfig => inet addr:192.168.101.1 I must be able to switch between modes with my software so I use scripts : To switch in AP mode => pkill -f 'ifup .*wlan0'; ifdown wlan0 ifdown wlan0 /bin/systemctl stop NetworkManager && /bin/systemctl disable NetworkManager && kill $(cat /var/run/dnsmasq/dnsmasq.pid) && kill $(cat /run/dnsmasq/dnsmasq.pid) rmmod dhd && modprobe dhd op_mode=2 pkill -f 'ifup .*wlan0'; ifdown wlan0 cp /home/user/interfaces_hostapd /etc/network/interfaces ifup wlan0 service dnsmasq restart & service isc-dhcp-server restart & service hostapd restart To switch in Normal mode => pkill -f 'ifup .*wlan0'; ifdown wlan0 /bin/systemctl stop hostapd & kill $(cat /var/run/dnsmasq.pid) rmmod dhd && modprobe dhd cp /home/user/interfaces_default /etc/network/interfaces && service dnsmasq stop & service hostapd stop & service isc-dhcp-server stop /bin/systemctl start networking.service && /bin/systemctl enable NetworkManager && /bin/systemctl start NetworkManager && /usr/bin/nmcli d set wlan0 managed yes When I switch in normal mode, I can ping and access to the webpage. In AP mode I can connect, get an IP, and then I have no response to ping, I don't know why.....
Guest Posted September 3, 2017 Posted September 3, 2017 A squid config was stopping the ping... All is ok now
Recommended Posts