Hi Mates,
For a long time I have s strange problem with my access point. It's based on freebsd of course and at the moment 8.1-release.
The AP works fine with WEP but when I try to switch to WPA and hostapd it works stable for a small period of time, for example 1 day. I can connect disconnect and I have a traffic but on the next day I can connect but cannot obtain dhcp addresses. My only solution is to restart hostapd and isc-dhcp31-server-3.1.3_1.
I am thinking I am wrong somewhere in my configs....
Please help. I do not want to switch back to WEP.....
So my information about the system:
my wireless card is Ralink:
And at least i do not think it is a hardware problem. The adapter works fine with WEP and now with WPA I can connect but could not obtain dhcp adresses.
Thanks in advance.
For a long time I have s strange problem with my access point. It's based on freebsd of course and at the moment 8.1-release.
The AP works fine with WEP but when I try to switch to WPA and hostapd it works stable for a small period of time, for example 1 day. I can connect disconnect and I have a traffic but on the next day I can connect but cannot obtain dhcp addresses. My only solution is to restart hostapd and isc-dhcp31-server-3.1.3_1.
I am thinking I am wrong somewhere in my configs....
Please help. I do not want to switch back to WEP.....
So my information about the system:
Code:
[toli@office.***.com]:/home/toli>uname -a
FreeBSD office.***.com 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Mon Jul 19 02:55:53 UTC 2010 [email]root@almeida.cse.buffalo.edu[/email]:/usr/obj/usr/src/sys/GENERIC i386
my wireless card is Ralink:
Code:
[toli@office.***.com]:/home/toli>ifconfig (partial)
ral0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 2290
ether 00:1f:1f:51:1f:46
media: IEEE 802.11 Wireless Ethernet autoselect mode 11g <hostap>
status: running
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether 00:1f:1f:51:1f:46
inet 172.16.11.1 netmask 0xffffff00 broadcast 172.16.11.255
media: IEEE 802.11 Wireless Ethernet autoselect mode 11g <hostap>
status: running
ssid wfap channel 11 (2462 MHz 11g) bssid 00:1f:1f:51:1f:46
country US authmode WPA privacy MIXED deftxkey 3 TKIP 2:128-bit
TKIP 3:128-bit txpower 0 scanvalid 60 protmode CTS dtimperiod 1 -dfs
Code:
[toli@office.***.com]:/home/toli>kldstat
Id Refs Address Size Name
1 8 0xc0400000 bb5504 kernel
2 1 0xc39c1000 3000 pflog.ko
3 1 0xc39c5000 35000 pf.ko
4 1 0xc3b7d000 2000 wlan_xauth.ko
Code:
[toli@office.***.com]:/home/toli>cat /etc/hostapd.conf
interface=wlan0
hw_mode=g
macaddr_acl=0
auth_algs=1
ctrl_interface=/var/run/hostapd
ctrl_interface_group=wheel
ssid=wfap
wpa=1
wpa_passphrase=my_super_secret_pass
wpa_key_mgmt=WPA-PSK
wpa_pairwise=CCMP TKIP
Code:
[toli@office.***.com]:/home/toli>cat /usr/local/etc/dhcpd.conf
option domain-name "office.***.com";
option domain-name-servers 172.16.11.1;
default-lease-time 63072000;
max-lease-time 63072000;
authoritative;
ddns-update-style none;
log-facility local7;
subnet 172.16.11.0 netmask 255.255.255.0 {
range 172.16.11.2 172.16.11.254;
option routers 172.16.11.1;
}
Code:
[toli@office.***.com]:/home/toli>cat /etc/rc.conf
gateway_enable="YES"
hostname="office.***.com"
ifconfig_fxp0="inet 95.XXX.XXX.151 netmask 255.255.255.192"
wlans_ral0="wlan0"
create_args_wlan0="wlanmode hostap mode 11g"
ifconfig_wlan0="inet 172.16.11.1 netmask 0xffffff00"
defaultrouter="95.XXX.XXX.129"
pf_enable="YES"
pf_rules="/etc/pf.squid"
pflog_enable="YES"
sshd_enable="YES"
named_enable="YES"
named_wait="NO"
named_auto_forward="NO"
named_auto_forward_only="NO"
dhcpd_enable="YES"
dhcpd_ifaces="wlan0"
hostapd_enable="YES"
inetd_enable=YES
squid_enable=YES
And at least i do not think it is a hardware problem. The adapter works fine with WEP and now with WPA I can connect but could not obtain dhcp adresses.
Thanks in advance.