Hostapd and possible systemd problem

I use wifi port on PC (PC has wired ethernet port too) as wireless access point via hostapd facility. All necessary services starts accoding to default sequence according to systemd order.
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:
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 ?
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 ?