LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 02-19-2016, 04:07 AM   #1
Knight_Rider
LQ Newbie
 
Registered: Feb 2016
Posts: 15

Rep: Reputation: Disabled
Smile Terminal command to kick selected users off my network [Kali Linux]


First of all , How to see the users connected to my wifi ?
Something like this ,
Hostname , MAC Address


I would also like to know how to kick them off my wifi using terminal
Thanks in advance for y0ur h3lp

Last edited by Knight_Rider; 02-19-2016 at 04:09 AM.
 
Old 02-19-2016, 12:49 PM   #2
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,215

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
Have a look at your routers config. Mine has a page called 'Wireless MAC filter' to allow/deny access by mac address.
 
Old 02-19-2016, 12:57 PM   #3
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
ACL is the way to go.
 
Old 02-19-2016, 02:54 PM   #4
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
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.
 
Old 02-21-2016, 01:18 AM   #5
Knight_Rider
LQ Newbie
 
Registered: Feb 2016
Posts: 15

Original Poster
Rep: Reputation: Disabled
Question

Quote:
Originally Posted by camorri View Post
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 View Post
ACL is the way to go.
Whats that
Quote:
Originally Posted by suicidaleggroll View Post
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.
Okay thanks for info
 
Old 02-21-2016, 05:37 AM   #6
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,215

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
Quote:
ACL is the way to go.
Whats that
ACL's is a way to fine tune which users and groups can access files and directories on a nix system. Here is just one link that explains ACL's.

-->https://www.centos.org/docs/5/html/D...S/ch-acls.html
 
Old 02-21-2016, 03:39 PM   #7
FAQ
LQ Newbie
 
Registered: Feb 2016
Posts: 6

Rep: Reputation: Disabled
If MAC filtering didn't work for the OP, perhaps changing the wifi password will prevent those users from accessing it in the future.
 
Old 03-15-2016, 01:21 PM   #8
Knight_Rider
LQ Newbie
 
Registered: Feb 2016
Posts: 15

Original Poster
Rep: Reputation: Disabled
I still can't figure out that how to see the users?
 
Old 03-15-2016, 01:26 PM   #9
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Quote:
Originally Posted by Knight_Rider View Post
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.
 
Old 03-15-2016, 07:09 PM   #10
sgosnell
Senior Member
 
Registered: Jan 2008
Location: Baja Oklahoma
Distribution: Debian Stable and Unstable
Posts: 1,943

Rep: Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542
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.
 
Old 03-16-2016, 01:47 AM   #11
Knight_Rider
LQ Newbie
 
Registered: Feb 2016
Posts: 15

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by 273 View Post
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.
How to see the MAC Addresses? (Not of router)
 
Old 03-16-2016, 01:50 AM   #12
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Quote:
Originally Posted by Knight_Rider View Post
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.
 
Old 03-16-2016, 03:53 AM   #13
Knight_Rider
LQ Newbie
 
Registered: Feb 2016
Posts: 15

Original Poster
Rep: Reputation: Disabled
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
 
Old 03-16-2016, 12:32 PM   #14
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Quote:
Originally Posted by Knight_Rider View Post
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.
 
Old 03-20-2016, 04:16 AM   #15
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
I would of thought that you could run

Code:
nmap -sP your.net.work.address.1/24
or run it with grep to filter ip,s

then a ping flood to which ever ip not sure what that will do to rest of network tho
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot access Network in Kali Linux!!!!!!!!! KillahBeez Debian 9 08-20-2015 04:37 AM
LXer: Kali Linux 1.0.3 Brings Accessibility Features for Blind Users LXer Syndicated Linux News 0 04-27-2013 10:50 AM
How to get selected text into a terminal command? frisil Linux - General 2 02-22-2013 07:00 AM
Granting selected user access to selected network interface dexen Linux - Networking 2 10-04-2009 03:51 AM
LXer: Linux Gnome Hack: Open Terminal (shell prompt) in Current / Selected Directory LXer Syndicated Linux News 0 11-06-2008 08:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration