Community discussions

MikroTik App
 
binhorp
newbie
Topic Author
Posts: 39
Joined: Wed Mar 05, 2008 4:40 pm

Add mac-address access-list nan by API

Wed Aug 18, 2010 11:17 pm

Hello everyone!
I wonder if anyone has an example of how to later add mac-address access-list using the API + PHP
Thank you for your attention!
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: Add mac-address access-list nan by API

Wed Aug 18, 2010 11:29 pm

There's no such thing as a MAC address equivalent to IP firewall address lists in RouterOS, so you can't add to them via the API. Or are you asking about something else?
 
binhorp
newbie
Topic Author
Posts: 39
Joined: Wed Mar 05, 2008 4:40 pm

Re: Add mac-address access-list nan by API

Thu Aug 19, 2010 12:44 am

Sorry my English friend
I was wondering if it is possible to manipulate "/ interface / wireless / access-list via API
Add, Remove, Disable, etc. ..
Thank you for listening!
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8712
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: Add mac-address access-list nan by API

Thu Aug 19, 2010 1:46 am

sure it's possible. what exact commands in CLI do you need? in API all should be similar
 
binhorp
newbie
Topic Author
Posts: 39
Joined: Wed Mar 05, 2008 4:40 pm

Re: Add mac-address access-list nan by API

Thu Aug 19, 2010 2:35 am

I need to run the following command via PHP API
/interface wireless access-list add forwarding = no authentication=yes interface=wlan1 mac-address=08:10:74:9 F: 7A: DC

Thank you!
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8712
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: Add mac-address access-list nan by API

Thu Aug 19, 2010 2:56 pm

/interface wireless access-list add forwarding = no authentication=yes interface=wlan1 mac-address=08:10:74:9 F: 7A: DC
try this:
/interface/wireless/access-list/add
=forwarding=no
=authentication=yes
=interface=wlan1
=mac-address=08:10:74:9F:7A:DC
 
binhorp
newbie
Topic Author
Posts: 39
Joined: Wed Mar 05, 2008 4:40 pm

Re: Add mac-address access-list nan by API

Thu Aug 19, 2010 3:01 pm

I am very grateful friend problem solved
Thank you all!