creating AP, DNS fail

Jhonny Boy jhonnyboy at ymail.com
Tue Jul 7 17:53:56 EDT 2009


Hello 
I am trying to creat a home AP without encryption for the moment but using iptables for forwarding and port safety.
I can connect my device to the AP but I can't surf on the web.
Apparently there is a DNS probleme beceause firefox keep saying that is searching for google.
Does anybody can help me?

*************Here is my iptables lines :***********
EXTERIEUR="eth0"
I="wlan0"
FORWARD_NET="172.16.0.0/255.255.0.0"
...
$IPT -A FORWARD -i $EXTERIEUR -o $I -d $FORWARD_NET -m state --state ESTABLISHED,RELATED -j ACCEPT
for PORT in 80 443 25 110 1863 ;do
  $IPT -A FORWARD -i $I -o $EXTERIEUR -s $FORWARD_NET -p tcp --dport $PORT -m state --state NEW -j ACCEPT
done
$IPT -A INPUT -i $I -p udp --dport 67:68 --sport 67:68 -j ACCEPT
$IPT -A OUTPUT -o $I -p udp --dport 67:68 --sport 67:68 -j ACCEPT
$IPT -A INPUT -i $I -p udp --dport 53 --sport 53 -j ACCEPT
$IPT -A OUTPUT -o $I -p udp --dport 53 --sport 53 -j ACCEPT
$IPT -A FORWARD -i $I -s $FORWARD_NET -j ACCEPT


***********my dnsmasq.conf*******************
domain-needed
bogus-priv
interface=wlan0
dhcp-range=172.16.0.10,172.16.0.250,12h
dhcp-option=3,172.16.0.1
dhcp-authoritative

*************my hostapd.conf***************
interface=wlan0
driver=nl80211
logger_syslog=-1
logger_syslog_level=2
logger_stdout=-1
logger_stdout_level=2
dump_file=/tmp/hostapd.dump
ctrl_interface=/var/run/hostapd
ctrl_interface_group=0
ssid=test
hw_mode=g
channel=6
beacon_int=100
dtim_period=2
max_num_sta=255
rts_threshold=2347
fragm_threshold=2346
macaddr_acl=0
accept_mac_file=/etc/hostapd/hostapd.accept
deny_mac_file=/etc/hostapd/hostapd.deny
auth_algs=1
ignore_broadcast_ssid=0
wme_enabled=1
wme_ac_bk_cwmin=4
wme_ac_bk_cwmax=10
wme_ac_bk_aifs=7
wme_ac_bk_txop_limit=0
wme_ac_bk_acm=0
wme_ac_be_aifs=3
wme_ac_be_cwmin=4
wme_ac_be_cwmax=10
wme_ac_be_txop_limit=0
wme_ac_be_acm=0
wme_ac_vi_aifs=2
wme_ac_vi_cwmin=3
wme_ac_vi_cwmax=4
wme_ac_vi_txop_limit=94
wme_ac_vi_acm=0
wme_ac_vo_aifs=2
wme_ac_vo_cwmin=2
wme_ac_vo_cwmax=3
wme_ac_vo_txop_limit=47
wme_ac_vo_acm=0
ieee80211n=1
ht_capab=[HT40-][SHORT-GI-40]
eapol_key_index_workaround=0
eap_server=0
own_ip_addr=172.16.0.1


      


More information about the HostAP mailing list