Tracing what program is making a network connnection? (CentOS)
Posted
by
Airjoe
on Super User
See other posts from Super User
or by Airjoe
Published on 2010-09-01T18:35:05Z
Indexed on
2010/12/21
9:56 UTC
Read the original article
Hit count: 226
I was wondering if it is possible to find out which process is trying to make a specific network connection. On a server I support which hosts websites for about 200 users, the iptables firewall keeps blocking, as it should, a connection to 212.117.169.139 on port 80. Firefox reports this as an attack page (and at the least is obvious spam, if not malicious).
It seems something on this server is trying to access this site for some reason, and although it's being blocked successfully, the requests seem to be going through every two to sixty seconds and I'd like to be able to find what process or script is doing this so I can handle it appropriately. Besides doing a grep to try and find if this IP is in some file (which probably won't even work because it may be working by hostname or it may be encoded), is there any way to find out some more information?
Thanks!
© Super User or respective owner