determinate determinate

Author Topic: banning by macaddress!  (Read 944 times)

0 Members and 1 Guest are viewing this topic.

Offline Azurious

  • Double Ace
  • *
  • Posts: 117
  • Karma: +5/-17
    • DesiDeshat - The World Of Desi Stuff!!!
banning by macaddress!
« on: June 13, 2009, 01:35:16 pm »
I have a pppoe network & whenever a user login he gets a new ip randomly assign by the server. so we can't ban them by ip address, so i need a script from which we can ban mac address of thier lancard, they cannot change mac address because it is bind to their usernames in pppoe server.

please someone put light on this issue..
« Last Edit: June 13, 2009, 01:48:23 pm by Azurious »
http://www.desideshat.com - The World Of Desi Stuff!!!

Offline PPK

  • Administrator
  • Emperor
  • *****
  • Posts: 1 245
  • Karma: +206/-17
  • PtokaX "developer"
Re: banning by macaddress!
« Reply #1 on: June 13, 2009, 02:09:57 pm »
It is not possible.

Offline Azurious

  • Double Ace
  • *
  • Posts: 117
  • Karma: +5/-17
    • DesiDeshat - The World Of Desi Stuff!!!
Re: banning by macaddress!
« Reply #2 on: June 13, 2009, 05:29:28 pm »
 :-[ :-[ :-[ :-[ No More Hopes :-[ :-[ :-[ :-[

Any other idea how we can stop them?
else no use of admins & ops

and everything is feasible in this world  ;)
« Last Edit: June 13, 2009, 05:36:57 pm by Azurious »
http://www.desideshat.com - The World Of Desi Stuff!!!

Offline Scanning

  • Member
  • ***
  • Posts: 41
  • Karma: +14/-0
Re: banning by macaddress!
« Reply #3 on: June 13, 2009, 08:17:56 pm »
Can you see the hostname ? like username.100.254.host.domainsuffix if you ping the ip ? if so it can prolly be fixed with script if the "username" is a fixed/permanent username

or you can use softwarefirewall and ban that mac in it ( if you can extract mac from ip ) if you are on same subnet/lan

Offline CrazyGuy

  • Global Moderator
  • Viking
  • *****
  • Posts: 533
  • Karma: +82/-20
    • ˜”°º•=-_The NightHawk_-=•º°”˜
Re: banning by macaddress!
« Reply #4 on: June 15, 2009, 02:37:53 pm »
MAC-addresses are not unique. Do not use them to ban people on.

Offline PPK

  • Administrator
  • Emperor
  • *****
  • Posts: 1 245
  • Karma: +206/-17
  • PtokaX "developer"
Re: banning by macaddress!
« Reply #5 on: July 10, 2010, 04:30:26 pm »
Next PtokaX testing will have added get mac address to lua api to prove how bad idea mac address banning is :P It will allow to make script for mac address bans.

Offline Mutor

  • Global Moderator
  • Forum God
  • *****
  • Posts: 3 854
  • Karma: +395/-18
  • To err is human, to arr is pirate...
    • PxDev
Re: banning by macaddress!
« Reply #6 on: July 11, 2010, 04:08:34 am »
:D
Tired of hearing this request, eh?
Can you even get a MAC from a different subnet?
« Last Edit: July 11, 2010, 04:15:07 am by Mutor »
Respectfully,

Mutor

=-=-=-=-=-=-=-==-=-=-=
[ Ptokax Admins Hub ] Ptokax Help Hub
[ Mutor's Ptokax Archive Website ] Scripting Forum
[ Dynamic Downloads ] API 2
[ Microsoft IIS serving PxWeb 1.0d ] API 2
[ WebReg 1.1.2.0 ] Web Based Hub Reg

Offline PPK

  • Administrator
  • Emperor
  • *****
  • Posts: 1 245
  • Karma: +206/-17
  • PtokaX "developer"
Re: banning by macaddress!
« Reply #7 on: July 11, 2010, 04:27:58 am »
I'm accidentally found in msdn how to get mac address with few lines of code, so why not give it try ;)
Of course i can't get MAC from different subnets, for most ips it is returning nil. ARP table in my running windoze have only 14 items and some of them are duplicate. It is not returning mac for localhost adapters, it is not returning mac for anything behind router (sad, i'm expected mac of router in that case and users complaining that they with one mac ban have all users banned ;D) ::)

Result of my getmac script:
Quote
[2010-07-09 01:41:04] <_@o'> No MAC addres found for user PPK (192.168.0.1).
[2010-07-09 01:41:08] <_@o'> No MAC addres found for user [CZ]Titanium (213.xxx.179.xxx).
[2010-07-09 01:41:10] <_@o'> User PePeK (192.168.0.14) have MAC address: 08-00-27-7C-F4-95
« Last Edit: July 11, 2010, 04:33:09 am by PPK »

Offline Dessamator

  • Scripter
  • Emperor
  • ******
  • Posts: 1 263
  • Karma: +13/-6
Re: banning by macaddress!
« Reply #8 on: July 14, 2010, 09:05:55 pm »
Given the nature of network protocols, a ban on local network may be possible, but a client on the internet will never return its mac address. The only way this could work perfectly(in theory) would be for the clients to broadcast this information, something that is unlikely, besides the fact that the user could change his client and still remain on the hub.

 

determinate determinate
guestbook