Wednesday, January 21, 2004

Checking connecttions

I always wondered how to check to see if anyone is currently using either ftp or http. Sometimes, if my DSL modem light is blinking furiously, I like to see what's going on. Early on in my server days, I noticed a problem once and it turned out some hackerz had slipped into my ftp site and were using it to trade malware! So I keep a close watch these days.



Anyway, I recently came across two methods that I think do this:




$ netstat -anf inet


and


$ sockstat


They both show current connections, and who is using them.




No comments:

Post a Comment