LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-15-2005, 04:15 AM   #1
HoOLi
LQ Newbie
 
Registered: Apr 2004
Location: West Aust
Distribution: SuSE 10.2
Posts: 17

Rep: Reputation: 0
Forcefully disconnect or drop users help


Greetings,

I have many windows clients hooking into a mandrake server.

I would like to forcefully drop one windows client only known by IP address (at least that's all I can see!) from the mandrake server without affecting service to other clients.

A gui would be nice but a command will be OK

Thanks!

HoOLi
 
Old 11-15-2005, 06:23 PM   #2
uopjohnson
Member
 
Registered: Jun 2004
Location: San Francisco
Distribution: Slackware, Ubuntu, RHEL, OS X
Posts: 159

Rep: Reputation: 30
drop in what way? What service are they connected to? You could just block traffic from that machine on your firewall.
iptables -A INPUT -source xx.xxx.xxx.x -j DROP
 
Old 11-15-2005, 07:48 PM   #3
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
One option:
Code:
ps -ef | grep 'service_name_here'
From that determine the PID of the offending user and kill it.
Code:
kill PID_here
or to be really forceful
Code:
kill -9 PID_here
If you need to keep him off, you can add his IP to a deny list (in my case I use tcp wrappers, so that would be /etc/hosts.deny). The method from the previous poster should work too, although I don't think it would kill his current session.

Last edited by anomie; 11-15-2005 at 07:49 PM.
 
Old 11-15-2005, 10:45 PM   #4
uopjohnson
Member
 
Registered: Jun 2004
Location: San Francisco
Distribution: Slackware, Ubuntu, RHEL, OS X
Posts: 159

Rep: Reputation: 30
Quote:
I don't think it would kill his current session.
Oh yea... true depending on how your firewall is configured. If you allow established connections by default then you will have problems with my suggestion.
 
Old 11-16-2005, 02:30 AM   #5
HoOLi
LQ Newbie
 
Registered: Apr 2004
Location: West Aust
Distribution: SuSE 10.2
Posts: 17

Original Poster
Rep: Reputation: 0
Thanks guys,

I think uopjohnson's solution using iptables -A INPUT -source xx.xxx.xxx.x -j DROP will do the trick.

The windows clients are passing through the linux box as a proxy to go to a DMZ box. Users per se aren't able to be seen on the linux box as PID's. I know I didn't include that bit!

I have been exposed to windows too much where I could only think of mcc/computer management and browsing session/threads and killing them off that way.

Again thanks a lot! I had forgotten tcpwrappers anomie - I'll pop that snippet backet in the toolbag.

Cheers
HoOLi
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Drop connections to port 80 at firewall machine also drop at protected network? Niceman2005 Linux - Security 2 10-27-2005 08:21 AM
iptables - drop all -> allow needed OR allow all -> drop specific lucastic Linux - Security 5 12-21-2004 02:07 AM
Logout Forcefully masand Linux - General 2 04-08-2004 05:50 AM
How can I forcefully add usernames? kleptophobiac Linux - General 5 11-11-2003 11:15 AM
How do disconnect Idle users?? noodle123 Linux - Newbie 2 07-29-2002 08:31 PM


All times are GMT -5. The time now is 03:35 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration