list all connections to a specific port
is there a command I can use to list all connections made to a specific port such as port 5060? I want to list the clients not the services binded to the port, can netstat do this?
Thanks, Wayne |
cat /proc/net/ip_conntrack | grep sport=123 (or "dport=345") does the job on a debian system.
interesting to know if there is a more sofisticated way :) |
Hi,
maybe "lsof" will help you: Code:
root@~#>lsof -i :80 |
All times are GMT -5. The time now is 03:41 PM. |