Hi everyone,
I would like to know how can I add MAC-address in the file
/etc/config/wireless
I tried to do this throught the command line with "putty", but it not worked well.
Any tips? I don't want to use the Luci enviroment for this...
Hi everyone,
I would like to know how can I add MAC-address in the file
/etc/config/wireless
I tried to do this throught the command line with "putty", but it not worked well.
Any tips? I don't want to use the Luci enviroment for this...
If you'd like to block an addy you'd add these lines to the iface of the radio -
option macfilter 'deny'
list maclist 'mac addy to block'
To only allow certain addy's just change deny to allow -
option macfilter 'allow'
If you just need to add an addy it would be this line in the iface -
option macaddr 'mac addy to add'
But I only edit the /etc/config/wireless file? Do I need to use mount_root to do this?
Just edit the file, you don't need to use mount_root.
After this I will need to reboot?
Try the wifi
command first, if that doesn't re-associate everything then yes, reboot.
Thanks worked!
It's the same way if I need fixed DHCP clients ( Mac address zIP ) I will use the file /etc/config/dhcp... with this command?
config host
option name 'VM_openwrt'
option dns '1'
option mac '00: : : : :87'
option ip '192.X.X.'
Yes, that's it.
So if you have a lot Mac-address and you would to config the allowed list in mass... The easy way ( like @mike showed ) is edit the file /etc/config/wireless adding this line after the Wifi config intended:
Exemplo of 5 of MAC-Address
option macfilter 'allow'
list maclist '60: : : : :CF'
list maclist 'B0: : : : :BE'
list maclist 'C4: : : : :E8'
list maclist '24: : : : :05'
list maclist '00: : : : :B3'
In the final the file will be like something this:
config wifi-iface 'wifinet0'
option device 'radio0'
option mode 'ap'
option ssid 'Openwrt'
option network 'lan'
option encryption 'psk2'
option key 'XXXXXXXXXXXXXXXXXXXX'
option wpa_disable_eapol_key_retries '1'
option macfilter 'allow'
list maclist '60: : : : :CF'
list maclist 'B0: : : : :BE'
list maclist 'C4: : : : :E8'
list maclist '24: : : : :05'
list maclist '00: : : : :B3'
After this write the file and type:
wifi
or
reboot -f
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.