From 21a13652df728c9571f899caf4949d5d46f49db7 Mon Sep 17 00:00:00 2001 From: johannst Date: Wed, 1 May 2024 17:39:45 +0000 Subject: deploy: 7ca41565c4e70b212cb88a4d18c18fa35768df6d --- network/ss.html | 257 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 257 insertions(+) create mode 100644 network/ss.html (limited to 'network/ss.html') diff --git a/network/ss.html b/network/ss.html new file mode 100644 index 0000000..0b371cf --- /dev/null +++ b/network/ss.html @@ -0,0 +1,257 @@ + + + + + + ss - Notes + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + +
+
+

ss(8)

+
ss [option] [filter]
+
+
[option]
+  -p ..... Show process using socket
+  -l ..... Show sockets in listening state
+  -4/-6 .. Show IPv4/6 sockets
+  -x ..... Show unix sockets
+  -n ..... Show numeric ports (no resolve)
+  -O ..... Oneline output per socket
+
+
[filter]
+  dport/sport PORT .... Filter for destination/source port
+  dst/src ADDR ........ Filter for destination/source address
+
+  and/or .............. Logic operator
+  ==/!= ............... Comparison operator
+
+  (EXPR) .............. Group exprs
+
+

Examples

+

Show all tcp IPv4 sockets connecting to port 443:

+
ss -4 'dport 443'
+
+

Show all tcp IPv4 sockets that don't connect to port 443 or connect to address 1.2.3.4.

+
ss -4 'dport != 443 or dst 1.2.3.4'
+
+ +
+ + +
+
+ + + +
+ + + + + + + + + + + + + + + + + + +
+ + -- cgit v1.2.3