Поднял связку hostapd + dhcpd. Все работает, но есть одна проблема: никак не могу заставить hostapd писАть логи. Делал по англоязычному хендбуку, потом долго гуглил, но так ничего и не нашел.
Код: Выделить всё
athserver# uname -a
FreeBSD athserver.athnet 8.1-RELEASE-p2 FreeBSD 8.1-RELEASE-p2 #6: Sat Jan 29 16:26:43 MSK 2011 zmike@athserver.athnet:/usr/obj/usr/src/sys/ATHSERVER i386
Код: Выделить всё
ath0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 2290
ether 00:21:91:f3:c0:26
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:21:91:f3:c0:26
inet 10.0.0.1 netmask 0xffffff00 broadcast 10.0.0.255
media: IEEE 802.11 Wireless Ethernet autoselect mode 11g <hostap>
status: running
ssid AthnetAP channel 6 (2437 MHz 11g) bssid 00:21:91:f3:c0:26
regdomain NONE country RU indoor ecm authmode WPA2/802.11i
privacy MIXED deftxkey 3 AES-CCM 2:128-bit AES-CCM 3:128-bit
txpower 30 scanvalid 60 protmode CTS wme burst dtimperiod 1 -dfs
Код: Выделить всё
в rc.conf
syslogd_enable="YES"
syslogd_flags=""
hostapd_enable="YES"
Код: Выделить всё
athserver# cat /etc/hostapd.conf
interface=wlan0
logger_syslog=-1
logger_syslog_level=2
logger_stdout=-1
logger_stdout_level=2
ctrl_interface=/var/run/hostapd
ctrl_interface_group=wheel
ssid=AthnetAP
wpa=2
wpa_passphrase=<тут пароль>
wpa_key_mgmt=WPA-PSK
wpa_pairwise=CCMP
Код: Выделить всё
athserver# cat /etc/syslog.conf
# $FreeBSD: src/etc/syslog.conf,v 1.30.2.1.4.1 2010/06/14 02:09:06 kensmith Exp $
#
# Spaces ARE valid field separators in this file. However,
# other *nix-like systems still insist on using tabs as field
# separators. If you are sharing this file between systems, you
# may want to use only tabs as field separators here.
# Consult the syslog.conf(5) manpage.
*.err;kern.warning;auth.notice;mail.crit /dev/console
*.notice;authpriv.none;kern.debug;lpr.info;mail.crit;news.err /var/log/messages
security.* /var/log/security
auth.info;authpriv.info /var/log/auth.log
mail.info /var/log/maillog
lpr.info /var/log/lpd-errs
ftp.info /var/log/xferlog
cron.* /var/log/cron
*.=debug /var/log/debug.log
*.emerg *
console.info /var/log/console.log
local7.* /var/log/dhcpd.log
# uncomment this to log all writes to /dev/console to /var/log/console.log
#console.info /var/log/console.log
# uncomment this to enable logging of all log messages to /var/log/all.log
# touch /var/log/all.log and chmod it to mode 600 before it will work
#*.* /var/log/all.log
# uncomment this to enable logging to a remote loghost named loghost
#*.* @loghost
# uncomment these if you're running inn
# news.crit /var/log/news/news.crit
# news.err /var/log/news/news.err
# news.notice /var/log/news/news.notice
!ppp
*.* /var/log/ppp.log
!smartd
*.* /var/log/smartd.log
!*
+dmz
*.* /var/log/dmz/dmz.log
!hostapd
*.* /var/log/hostapd.log
Код: Выделить всё
athserver# ls -lL /var/log | grep hostapd
-rw-r--r-- 1 root wheel 0 27 янв 00:31 hostapd.log
Код: Выделить всё
Feb 15 22:18:58 athserver syslogd: restart
Feb 15 22:19:13 athserver ppp[634]: tun0: LCP: deflink: RecvEchoRequest(51) state = Opened
Feb 15 22:19:13 athserver ppp[634]: tun0: LCP: deflink: SendEchoReply(51) state = Opened
Feb 15 22:19:20 athserver kernel: ipfw: 3000 Deny UDP 172.16.0.1:631 172.16.0.255:631 out via re0
Feb 15 22:19:22 athserver dhcpd: DHCPRELEASE of 10.0.0.2 from 00:24:d2:b6:44:5a (ATHNETBOOK) via wlan0 (found)
Feb 15 22:19:22 athserver hostapd: wlan0: STA 00:24:d2:b6:44:5a IEEE 802.11: deassociated
Feb 15 22:19:22 athserver hostapd: wlan0: STA 00:24:d2:b6:44:5a WPA: event 2 notification
Feb 15 22:19:22 athserver hostapd: wlan0: STA 00:24:d2:b6:44:5a IEEE 802.1X: unauthorizing port
Буду благодарен за любую помощь.
Михаил