From 4ebfabeb0a29e58e6ac06435601b81ad11c564d9 Mon Sep 17 00:00:00 2001 From: johannst Date: Thu, 14 Jan 2021 21:30:05 +0000 Subject: deploy: 4de58de1947bf4fcfe16db8e9d2c9c920b1441d1 --- monitor/ss.html | 246 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 246 insertions(+) create mode 100644 monitor/ss.html (limited to 'monitor/ss.html') diff --git a/monitor/ss.html b/monitor/ss.html new file mode 100644 index 0000000..4497805 --- /dev/null +++ b/monitor/ss.html @@ -0,0 +1,246 @@ + + + + + + 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