netstat disconnect ip

  • Follow


Hello All,

Is there a way, or what would be the best way to remove users
from your system. I see them connected when i do a netstat -an | grep
ip.
Also, is there a way to use iptables or something similar to not allow
these users to connect.

Thanks,,.

0
Reply lancerset (45) 5/19/2006 6:05:05 PM

Hello,

of course the best way will be to configure iptables to do not allow
specified IP or netwiorks to connect to Your system. I think, that You
can find usefull info e.g. :

http://www.faqs.org/docs/linux_network/x-087-2-firewall.example.html

Or if You r5eally need to write some script - OK. If You know IP's or
user names just use command ps to find specified user names and their
shell process. awk only PID number and just kill it.

Best Regards,
Blazej Antczak

0
Reply bl_antczak 5/19/2006 6:14:18 PM


onlineviewer wrote:
> Hello All,
> 
> Is there a way, or what would be the best way to remove users
> from your system. I see them connected when i do a netstat -an | grep
> ip.
> Also, is there a way to use iptables or something similar to not allow
> these users to connect.
> 
> Thanks,,.
> 

You could remove or disable the account they are using. . . .
0
Reply Richard 5/19/2006 7:07:58 PM

2 Replies
578 Views

(page loaded in 0.051 seconds)

Similiar Articles:













7/22/2012 1:52:40 AM


Reply: