Пытаюсь сделать точку доступа из D-Link DWA-510. Вроде всё удалось, но соединение падает минут через 20 - 60 минут. Подскажите где я делаю ошибку.
Привожу далее свои настройки:
rc.conf :
Код: Выделить всё
gateway_enable="YES"
defaultrouter='*.*.*.*'
synchronous_dhclient="YES"
keymap="ru.koi8-r"
moused_enable="YES"
nfs_client_enable="YES"
nfs_server_enable="YES"
rpcbind_enable="YES"
saver="daemon"
scrnmap="koi8-r2cp866"
sshd_enable="YES"
ifconfig_nfe0="DHCP"
ifconfig_rl1="inet 192.168.0.1 netmask 255.255.255.0"
mpd_enable="YES"
hostname="test.net"
pf_enable="YES"
pf_program="/sbin/pfctl"
pf_flags=""
pf_rules="/etc/pf.conf"
pflog_enable="YES"
pflog_logfile="/var/log/pf.log"
pflog_program="/sbin/pflogd"
pflog_flags=""
dhcpd_enable="YES"
dhcpd_flags="-q"
dhcpd_ifaces="bridge0"
hald_enable="yes"
inetd_enable="YES"
ftpd_enable="YES"
ftpd_flags="-d"
apache22_enable="YES"
wlans_ral0="wlan0"
create_args_wlan0="wlanmode hostap ssid hellnet mode 11g"
cloned_interfaces="bridge0"
#TEST
ifconfig_bridge0="inet 192.168.0.1 netmask 255.255.255.0 addm wlan0 addm rl1 up"
hostapd_enable="YES"
Код: Выделить всё
option domain-name "test.ru";
default-lease-time 72000;
max-lease-time 72000;
ddns-update-style ad-hoc;
subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.2 192.168.0.100;
option routers 192.168.0.1;
option broadcast-address 192.168.0.255;
option domain-name-servers 213.234.192.8, 85.21.192.3;
}
Код: Выделить всё
interface=wlan0
bridge=bridge0
#driver=bsd
logger_syslog=-1
logger_syslog_level=0
logger_stdout=-1
logger_stdout_level=0
debug=3
dump_file=/tmp/hostapd.dump
ctrl_interface=/var/run/hostapd
ctrl_interface_group=wheel
#### IEEE 802.11 related config ####
ssid=hellnet
macaddr_acl=0
auth_algs=1
#### IEEE 802.1X related config ####
ieee8021x=0
#### WPA/IEEE 802.11i config #####
wpa=1
wpa_passphrase=qwerty12345
wpa_key_mgmt=WPA-PSK
wpa_pairwise=CCMP TKIP
Код: Выделить всё
ifconfig -a
nfe0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=10b<RXCSUM,TXCSUM,VLAN_MTU,TSO4>
ether 00:04:61:69:e9:4c
inet 10.97.55.99 netmask 0xfffff800 broadcast 10.97.55.255
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
ral0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 2290
ether 00:26:5a:71:cf:0e
media: IEEE 802.11 Wireless Ethernet autoselect mode 11g <hostap>
status: running
rl0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=8<VLAN_MTU>
ether 00:11:95:5c:a6:98
media: Ethernet autoselect
status: no carrier
rl1: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 150 0
options=8<VLAN_MTU>
ether 00:40:f4:b3:f3:2a
inet 192.168.0.1 netmask 0xffffff00 broadcast 192.168.0.255
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
fwe0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=8<VLAN_MTU>
ether 02:04:61:0a:6b:24
ch 1 dma -1
fwip0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
lladdr 0.4.61.0.0.a.6b.24.a.2.ff.fe.0.0.0.0
plip0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> metric 0 mtu 1500
pfsync0: flags=0<> metric 0 mtu 1460
syncpeer: 224.0.0.240 maxupd: 128
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=3<RXCSUM,TXCSUM>
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x9
inet6 ::1 prefixlen 128
inet 127.0.0.1 netmask 0xff000000
pflog0: flags=141<UP,RUNNING,PROMISC> metric 0 mtu 33200
bridge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether 72:f2:b9:24:29:39
inet 192.168.0.1 netmask 0xffffff00 broadcast 192.168.0.255
id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15
maxage 20 holdcnt 6 proto rstp maxaddr 100 timeout 1200
root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0
member: rl1 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
ifmaxaddr 0 port 4 priority 128 path cost 55
member: wlan0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
ifmaxaddr 0 port 12 priority 128 path cost 370370
wlan0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1 500
ether 00:26:5a:71:cf:0e
media: IEEE 802.11 Wireless Ethernet autoselect mode 11g <hostap>
status: running
ssid hellnet channel 1 (2412 Mhz 11g) bssid 00:26:5a:71:cf:0e
country US authmode WPA privacy MIXED deftxkey 2 TKIP 2:128-bit
TKIP 3:128-bit txpower 0 scanvalid 60 protmode CTS dtimperiod 1 -dfs
ng0: flags=88d1<UP,POINTOPOINT,RUNNING,NOARP,SIMPLEX,MULTICAST> metric 0 mtu 146 0
inet *.*.*.* --> *.*.*.* netmask 0xffffffff