Community discussions

MikroTik App
 
PaRaN0iD
newbie
Topic Author
Posts: 28
Joined: Sun Jan 08, 2012 7:46 pm

Check connected client HWID!

Wed May 30, 2012 8:43 pm

Hii Guys

Is that possible ?

I want a script to check the wireless client (Hardware Identification Number) when the client connect to Mikrotik
Compare the ID against Stored ID's if not kick him

off course a third party software on trusted clients installed to communicate with! if that software exist !!!

:?

Just give me your ideas
 
User avatar
janisk
MikroTik Support
MikroTik Support
Posts: 6263
Joined: Tue Feb 14, 2006 9:46 am
Location: Riga, Latvia

Re: Check connected client HWID!

Mon Jun 04, 2012 4:11 pm

just a thought what about using access-list to limit connections only from known mac addresses together with WPA-PSK and AES and then create PPPoE tunnel over wireless link. That might sound a bit of a overkill, but PPPoE client is widely available, WPA/WPA2 wireless link encryption is reasonably safe.
 
PaRaN0iD
newbie
Topic Author
Posts: 28
Joined: Sun Jan 08, 2012 7:46 pm

Re: Check connected client HWID!

Tue Jun 05, 2012 12:23 pm

Hii

Thank you for advise

but my situation is more complicated
it's easy here to spoof mac address so access list is useless
my bandwidth is limited so I don't want to use WPA

WPA fishing attack is easy

any ideas please
 
User avatar
janisk
MikroTik Support
MikroTik Support
Posts: 6263
Joined: Tue Feb 14, 2006 9:46 am
Location: Riga, Latvia

Re: Check connected client HWID!

Tue Jun 05, 2012 12:30 pm

WPA has no impact on data transmission speeds over wireless link, especially if you use MikroTik wireless cards that do WPA/WPA2 encryption on the card.

Using current methods WPA/WPA with AES can be broken in no less time than in a month. Thus bringing you security and same speeds as unencrypted wifi link. However PPPoE will add some overhead but that is overkill if you are using secure wireless link already.
 
PaRaN0iD
newbie
Topic Author
Posts: 28
Joined: Sun Jan 08, 2012 7:46 pm

Re: Check connected client HWID!

Wed Jun 06, 2012 9:08 pm

Would you check this video
WPA Trap

http://www.mediafire.com/?qznnynneyun
 
User avatar
boen_robot
Forum Guru
Forum Guru
Posts: 2400
Joined: Thu Aug 31, 2006 4:43 pm
Location: europe://Bulgaria/Plovdiv

Re: Check connected client HWID!

Wed Jun 06, 2012 9:25 pm

Could you please make subtitles or an English version of this? I understood nothing of what happened. I don't even know if you illustrated a vulnerability or what.

Also, if the problem is WPA... does WPA2 raise the same concerns?
 
User avatar
c0d3rSh3ll
Long time Member
Long time Member
Posts: 557
Joined: Mon Jul 25, 2011 9:42 pm
Location: [admin@Chile] >

Re: Check connected client HWID!

Wed Jun 06, 2012 9:32 pm

similar to this...

foreach i in=[interface wireless registration-table find  ] do={
local name [interface wireless registration-table get value-name=radio-name $i ]
if ($name!=$name_of_radio) do={/kick him}
}
you set name_of_radio from file or variable.
 
User avatar
janisk
MikroTik Support
MikroTik Support
Posts: 6263
Joined: Tue Feb 14, 2006 9:46 am
Location: Riga, Latvia

Re: Check connected client HWID!

Thu Jun 07, 2012 9:03 am

you can do that with access-list of the AP. Then you can turn default forwarding off.

I look at security this way - how long will it take for an attacker to get to me. If that time is of reasonable length it is good enough as there are no super safe mechanisms that cannot be broken eventually.

So if you use wireless on RouterOS router, then enable WPA2, AES chipers, turn off default forwarding, create access-list. If all of that is not enough you can always go for encrypted tunnels and/or hotspot.
 
PaRaN0iD
newbie
Topic Author
Posts: 28
Joined: Sun Jan 08, 2012 7:46 pm

Re: Check connected client HWID!

Thu Jun 07, 2012 10:58 am

Thank you Guys

"boen_robot" forgive me it's in Arabic the attack idea depend on how windows system at client side
drop secure WiFi network "WPA" and trying to connect to unsecured one with signal strength strong than
the secure one

"c0d3rSh3ll" Thank you it's interesting script would you explain if the Radio name is a unique value for each wireless
client or it just the MAC address of the client adapter ?

"janisk"

all the procedures you talking about is secure enough but my situation is special we working as secondary providers
the main provider use PPPOE system with no encryption at our mikrotik router's and they won't change their policy
for no reason so I'm trying to secure my Wlan with this type of script I'm just looking for unique value to depend on
that hackers can't get it like HWID or radio name as c0d3rSh3ll says if it's unique for every client
 
User avatar
c0d3rSh3ll
Long time Member
Long time Member
Posts: 557
Joined: Mon Jul 25, 2011 9:42 pm
Location: [admin@Chile] >

Re: Check connected client HWID!

Fri Jun 08, 2012 3:32 am

radio_name is a name of radio, you can set the name in interface wireless in routerOS.
 
PaRaN0iD
newbie
Topic Author
Posts: 28
Joined: Sun Jan 08, 2012 7:46 pm

Re: Check connected client HWID!

Fri Jun 08, 2012 12:14 pm

radio_name is a name of radio, you can set the name in interface wireless in routerOS.
So if I give a client with MAC (00:11:22:33:44:55) radio name (my client) MT router link the MAC with this radio name
in data base

but the hacker can easily spoof any MAC address in my Wlan so the script is useless

am I wrong?
 
User avatar
c0d3rSh3ll
Long time Member
Long time Member
Posts: 557
Joined: Mon Jul 25, 2011 9:42 pm
Location: [admin@Chile] >

Re: Check connected client HWID!

Fri Jun 08, 2012 3:29 pm

yes, you are wrong.

mac address is not a name radio.

routerOS support this feature, I dont kwon if other vendor support it.
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 26950
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia
Contact:

Re: Check connected client HWID!

Fri Jun 08, 2012 3:55 pm

radio-name is a proprietary field where you can describe the device. by default it has the MAC address, but it has no meaning, it's a simple text field.
 
PaRaN0iD
newbie
Topic Author
Posts: 28
Joined: Sun Jan 08, 2012 7:46 pm

Re: Check connected client HWID!

Fri Jun 08, 2012 5:47 pm

The question is : if My client MAC is (00:11:22:33:44:55) & I give him (john) as radio name in Registration table
then every time this client connected to my AP his radio name appear corresponding to his MAC?
Right?

what if a hacker spoof this MAC (00:11:22:33:44:55) and try to connect to my AP
he will appear as (john) radio name too ?
 
samsung172
Forum Guru
Forum Guru
Posts: 1193
Joined: Sat Apr 04, 2009 3:45 am
Location: Østfold - Norway
Contact:

Re: Check connected client HWID!

Fri Jun 08, 2012 6:27 pm

The question is : if My client MAC is (00:11:22:33:44:55) & I give him (john) as radio name in Registration table
then every time this client connected to my AP his radio name appear corresponding to his MAC?
Right?

what if a hacker spoof this MAC (00:11:22:33:44:55) and try to connect to my AP
he will appear as (john) radio name too ?

no
 
samsung172
Forum Guru
Forum Guru
Posts: 1193
Joined: Sat Apr 04, 2009 3:45 am
Location: Østfold - Norway
Contact:

Re: Check connected client HWID!

Fri Jun 08, 2012 6:32 pm

radio-name is a proprietary field where you can describe the device. by default it has the MAC address, but it has no meaning, it's a simple text field.
its a nice feature, to hide ssid to all normal ppl in a mikrotik net. Use hide ssid, and use the ssid as radioname. Then you will always know the ssid, from mikrotik scan, and a regular guy on street dont see your net at all.