Page 1 of 1

Hostapd and possible systemd problem

PostPosted: Jul 8th, '13, 08:16
by mackowiakp
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:

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 ?

Re: Hostapd and possible systemd problem

PostPosted: Jul 8th, '13, 11:01
by linuxero

Re: Hostapd and possible systemd problem

PostPosted: Jul 8th, '13, 22:37
by mackowiakp
My configuration is identical as describe in link in Spanish language (Fortunately I know the language of Cervantes :D ).
The only difference is that I use wlan0 instead ppp0 because of hardware. But still the same problems. Only one node can log-in to network (I use static IP addressing for testing, to eliminate possibility of DHCP misconfiguration) and after 2 hours can no log-in at all...

Re: Hostapd and possible systemd problem

PostPosted: Jul 12th, '13, 23:22
by mackowiakp
Finally I got it working. But after 5 min or when second device want to login to hostapd - hostapd stop working. Is it bug or anybody know how to solve the problem?