Страница 1 из 1

ifconfig wlan0 mac:add

Добавлено: 2010-06-28 2:35:36
d15b200
Хотел на 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
не пойму где грабли...
у вас эта команда работает?

Re: ifconfig wlan0 mac:add

Добавлено: 2010-06-28 6:42:16
d15b200
короче модуля не было

Код: Выделить всё

# kldstat
Id Refs Address    Size     Name
 1   15 0xc0400000 997808   kernel
 2    1 0xc3086000 123000   zfs.ko
 3    1 0xc31a9000 3000     opensolaris.ko
 4    1 0xc4244000 2000     green_saver.ko
 5    1 0xc4582000 2000     wlan_xauth.ko
# kldload wlan_acl
# kldstat
Id Refs Address    Size     Name
 1   18 0xc0400000 997808   kernel
 2    1 0xc3086000 123000   zfs.ko
 3    1 0xc31a9000 3000     opensolaris.ko
 4    1 0xc4244000 2000     green_saver.ko
 5    1 0xc4582000 2000     wlan_xauth.ko
 6    1 0xc4813000 3000     wlan_acl.ko
# ifconfig wlan0 mac:add 00:12:34:56:78:90
# ifconfig wlan0 list mac
*00:12:34:56:78:90
# ifconfig wlan0 list mac
*00:12:34:56:78:90

Re: ifconfig wlan0 mac:add

Добавлено: 2010-06-28 8:08:58
manefesto
хм, весьма забавно,надо попробовать