Hassio-Access-Point
Hassio-Access-Point copied to clipboard
Disabling client internet access does not work until a reboot
Reproduce: connect a device, enable internet access for the client, disable it, internet access still functions until a host reboot.
Issue: the iptables rules are persistent, forwarding is never removed.
Solution: change the code such that forwarding is disabled (at least for the specific interface) if disabled.
I may end up solving this myself and submitting a PR, just leaving it here for future reference. :)
Even after rebooting my hassio, the internet access is still granted:
ssid: MySSID
wpa_passphrase: MyPassword
channel: '6'
address: 192.168.42.1
netmask: 255.255.255.0
broadcast: 192.168.42.255
interface: wlan0
hide_ssid: '1'
dhcp: '1'
dhcp_start_addr: 192.168.42.100
dhcp_end_addr: 192.168.42.200
allow_mac_addresses: []
deny_mac_addresses: []
debug: 1
hostapd_config_override: []
client_internet_access: '0' <--- Is set to Zero
client_dns_override: []
At the moment I use client_dns_override: [127.0.0.1]
as a workaround
Doing some testing on PR 20 which will also include this.