Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Nano Pi Air AP

Featured Replies

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 :o

 

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..... :)

A squid config was stopping the ping...

All is ok now :D

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.