Terminal command to kick selected users off my network [Kali Linux]
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Only the machine that controls the network can kick other machines off of it. You need to be looking at your router's config page, there's nothing you can do on your linux terminal unless your router has ssh access or similar. Unless of course your linux machine IS the router, but in that case we need a LOT more info.
Have a look at your routers config. Mine has a page called 'Wireless MAC filter' to allow/deny access by mac address.
I've tried it already .
Quote:
Originally Posted by Habitual
ACL is the way to go.
Whats that
Quote:
Originally Posted by suicidaleggroll
Only the machine that controls the network can kick other machines off of it. You need to be looking at your router's config page, there's nothing you can do on your linux terminal unless your router has ssh access or similar. Unless of course your linux machine IS the router, but in that case we need a LOT more info.
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Rep:
Quote:
Originally Posted by Knight_Rider
I still can't figure out that how to see the users?
If you're using a wireless router then you can't see "users" at all, only MAC addresses. If you're using a Linux system as a WiFi router you still probably can't see "users" but only MAC addresses.
The only way I know of to do what the OP wants is through the router. It should have a browser interface, and you can see attached devices, configure wireless and wired settings, everything you need, from there, including deny users and kick them off. You can't do it through the terminal, unless you have an interface to the router there. The router is in charge of all that, and you should put both a strong admin password and a strong WPA password on it. If unknown, unauthorized people are on your network, you really need to get a grip on the router.
If you're using a wireless router then you can't see "users" at all, only MAC addresses. If you're using a Linux system as a WiFi router you still probably can't see "users" but only MAC addresses.
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Rep:
Quote:
Originally Posted by Knight_Rider
How to see the MAC Addresses? (Not of router)
If you're attached to the same router then you could use something like an nmap ping-sweep to then discover MAC addresses. However, you can't block them unless you log into the router as mentioned by others.
Failed to resolve "ping-sweep".
WARNING: No targets were specified, so 0 hosts scanned.
Nmap done: 0 IP addresses (0 hosts up) scanned in 18.53 seconds
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Rep:
Quote:
Originally Posted by Knight_Rider
Code:
Failed to resolve "ping-sweep".
WARNING: No targets were specified, so 0 hosts scanned.
Nmap done: 0 IP addresses (0 hosts up) scanned in 18.53 seconds
I don't recall the syntax, sorry, but if you read the man pages it ought to be fairly clear. There's a graphical front end called zenmap which may help also.
Something did occur that I forgot about before and that is you could probably run a WiFi sniffer, provided you can put your card in promiscouos mode, then I've a feeling I did read about a "magic packet" or something which can make a client disconnecyt from an access point -- I think it might involve MAC cloning or similar. However, if you do do any of this please remember to only do so on a network you own or have the full, writen, permision of the owner to do so.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.