Hostapd and possible systemd problem

This forum is dedicated to advanced help and support :

Ask here your questions about advanced usage of Mageia. For example you may post here all your questions about network and automated installs, complex server configurations, kernel tuning, creating your own Mageia mirrors, and all tasks likely to be touchy even for skilled users.

Hostapd and possible systemd problem

Postby mackowiakp » Jul 8th, '13, 08:16

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 ?
Linux is like wigwam. No Windows, no Gates but Apache inside

WARNING ! The administrator has the right to refuse to install WINDOWS, invoking the conscience clause
mackowiakp
 
Posts: 660
Joined: May 23rd, '13, 07:32
Location: Gdynia, Poland


Re: Hostapd and possible systemd problem

Postby mackowiakp » Jul 8th, '13, 22:37

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...
Linux is like wigwam. No Windows, no Gates but Apache inside

WARNING ! The administrator has the right to refuse to install WINDOWS, invoking the conscience clause
mackowiakp
 
Posts: 660
Joined: May 23rd, '13, 07:32
Location: Gdynia, Poland

Re: Hostapd and possible systemd problem

Postby mackowiakp » Jul 12th, '13, 23:22

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?
Linux is like wigwam. No Windows, no Gates but Apache inside

WARNING ! The administrator has the right to refuse to install WINDOWS, invoking the conscience clause
mackowiakp
 
Posts: 660
Joined: May 23rd, '13, 07:32
Location: Gdynia, Poland


Return to Advanced support

Who is online

Users browsing this forum: No registered users and 1 guest

cron