ifconfig wlan0 mac:add
Добавлено: 2010-06-28 2:35:36
Хотел на WiFi интерфейсе сделать фильтрацию по маку как в мане
получаю вот что
не пойму где грабли...
у вас эта команда работает?
Код: Выделить всё
#man ifconfig
The following parameters support an optional access control list feature
available with some adapters when operating in ap mode; see wlan_acl(4).
This facility allows an access point to accept/deny association requests
based on the MAC address of the station. Note that this feature does not
significantly enhance security as MAC address spoofing is easy to do.
mac:add address
Add the specified MAC address to the database. Depending on the
policy setting association requests from the specified station
will be allowed or denied.
Код: Выделить всё
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether 00:12:34:56:78:90
inet 192.168.0.1 netmask 0xffffff00 broadcast 192.168.0.255
media: IEEE 802.11 Wireless Ethernet autoselect mode 11g <hostap>
status: running
ssid WiFi channel 5 (2432 Mhz 11g) bssid 00:12:34:56:78:90
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
# uname -a
FreeBSD 8.0-RELEASE FreeBSD 8.0-RELEASE #1: Tue Jun 1 10:24:26 2010 @svr.gate.com:/usr/obj/usr/src/sys/MyCore i386
# ifconfig wlan0 mac:add 00:12:34:56:78:90
ifconfig: SIOCS80211: Invalid argument
# ifconfig wlan0 mac:add +00:12:34:56:78:90
ifconfig: malformed link-level address
# ifconfig wlan0 mac:add + 00:12:34:56:78:90
ifconfig: malformed link-level address
у вас эта команда работает?