BAN by MAC (!IP, !STEAM/WON_ID) possible?
I run a CS server in a small LAN. I really need an ability to BAN players by their MACs. If I ban their IPs - they can easily change it. I can't ban their IDs, coz they all have the same one - VALVE_ID_LAN. I also CAN'T re-configure my LAN for IP->MAC bindings - I just dont have such access. So, is it possible by AMXX or any other server mod (or even metamod) to ban players by MACs?
|
If they don't have "STEAM" in their STEAM ID, you can always kick them upon connecting.
Code:
|
I think you misunderstood me a bit.
ALL clients on LAN (with sv_lan 1 on server) with LAN (CyberCAFE Edition - NO STEAM - No Internet is needed to connect to the server) clients have VALVE_ID_LAN in STEAM/WON ID cvar. I can only ban players by IP. But a banned user can easily change his IP to something else (e.g. 10.2.72.16 to 10.2.79.99) and he will be able to play. The only way to really ban them is to ban via MAC (hardware address of network device). Is there any functions/HL APIs to get a player's MAC? Can this be done? p.s. I need someone 'Network-knowledged' to answer. If you don't know what is MAC adress - don't bother answering - you'll save time for both of us. :wink: |
no sry. i wish this was possible too.
|
Well, hrm, you could make a metamod plugin which does this when players connect:
1) Get their IP address 2) Do some kind of ARP lookup to get their MAC address 3) Check whether the MAC address is banned 4) If yes, kick them |
But how to do ARP requests? With which METAMOD/HL API functions?
|
You'd have to use some system function. It will be different between windows and linux.
Maybe this could work on linux: http://lava.net/~newsham/progs/arp.c |
Can I include system or third-party #incs in plugin or module (AMXX) and use them?
|
Modules, yes.
|
Can anyone provice a 'quick-start' guide for writing a module with MAC Ban support? Never done this...
|
| All times are GMT -4. The time now is 09:50. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.