I enabled ip-forwarding between my interfaces wlan0 and eth0 :
- in /etc/sysctl.conf
sh "echo 1 > proc/etc..."
- 3 iptables rules.
sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE sudo iptables -A FORWARD -i eth0 -o wlan0 -m state --state RELATED,ESTABLISHED -j ACCEPT sudo iptables -A FORWARD -i wlan0 -o eth0 -j ACCEPT
- wlan0 is joinable by clients
- eth0 is connected to the Internet
Tools & config:
- dhcpd (with
option domain-name-servers 188.8.131.52;, 184.108.40.206;
That done, when a client joins wlan0, s/he cannot browse the WWW Error, not connected to Internet. But he can ping sites (
ping 75.XX.XX.XX) with success.
I removed Network Manager (cause of conflicts with hostapd, at boot). Is Network Manager needed to make it work ?