Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here. |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
03-24-2007, 05:03 PM
|
#1
|
Member
Registered: Sep 2005
Location: Bangladesh
Distribution: RH 7.2, 8, 9, Fedora
Posts: 217
Rep:
|
What to do when i feel suspecious
Hi,
Just today i was used the command iptraf and found an ip that is accessing my server (or trying to access) using ftp. Basically there is no ftp user in my server except myself. thus it was suspecious. I was logged in the server using ssh from remote. Thus there was no way to terminate the connection using ifdown eth0. what should i do when i found an ip is accessing in a port and when i want to stop (kill the session) him? i mean what are the was/commands?also how can i know what he is actually doing?I need to kill say A.A.A.A since he is accessing my server on ftp. or more clearely, when many people are accessing ftp, only that person? And is there any other way to get know except iptraf?
please help me...
|
|
|
03-24-2007, 05:18 PM
|
#2
|
Senior Member
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 6, KDE Neon
Posts: 4,313
|
who -u will display logged in users along with their pid (not sure if that applies to ftp users also). You can then use the kill command to kill the unauthorised user. Ethereal is a good program to monitor incoming & outgoing traffic. Typing as root: netstat -atu will show you a list of udp & tcp sockets that are open.
|
|
|
03-24-2007, 08:08 PM
|
#3
|
Senior Member
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658
Rep:
|
Do you have any ftp-related entries in your ftp or system logs?
|
|
|
03-25-2007, 01:39 AM
|
#4
|
Member
Registered: Sep 2005
Location: Bangladesh
Distribution: RH 7.2, 8, 9, Fedora
Posts: 217
Original Poster
Rep:
|
well, great mistake i did is no ftp log.
but what to terminate a connection (like if an ip is consuming a huge bandwidth in www/ftp and i just want to kill his session but to alive others...)
|
|
|
03-25-2007, 12:26 PM
|
#5
|
Senior Member
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658
Rep:
|
Well you can kill his session by terminating the process ID like {BBI}Nexus{BBI} mentioned. You can also block his IP using iptables.
That being said, it's important to determine if he had access to the system, especially if you don't allow anonymous FTP.
|
|
|
All times are GMT -5. The time now is 06:11 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|