utf9k

Something to think about: An internet connected sandwich maker wouldn't be so bad, would it?

How can I inspect socket connection states

In which I kill some stubborn connections

Published
Tags

Often times, it can be useful to inspect the state of socket connections made by applications.

You can use the tool ss to inspect and even kill connections.

$ ss # See a list of all sockets
$ ss -t -p # See all TCP sockets with process information
$ ss -K -t '( dport = :6514 )' # Kill all TCP connections open to destination port 6514