But after boot dhcp does not work in hostapd segment and iptables masquerade rule (necessery for forwarding traffic to internet) too.
So it is necessary to manually run 1 min after boot script like this:
- Code: Select all
systemctl restart dhcpd.service
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
After that it works for 2-3 hours. After 2-3 hours, it is impossible to log-in to such created access point, reloading services does not help - only reboot.
Any idea how to make hostapd work reliable ?