From 4d8d7a6d669b88f2162172330b523f7b63367577 Mon Sep 17 00:00:00 2001 From: Paul Trowbridge Date: Sat, 12 Sep 2020 00:30:20 -0400 Subject: [PATCH] list established connection --- ubuntu/networking.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ubuntu/networking.md b/ubuntu/networking.md index 7262600..8dab8e1 100644 --- a/ubuntu/networking.md +++ b/ubuntu/networking.md @@ -8,6 +8,9 @@ lists programs with port numbers: `sudo netstat -tup` sudo lsof +M -i4 -i6 +# list all established connection that are not internal only" +sudo sockstat | grep "ESTAB" | grep -v "127.0.0.1.*127.0.0.1" | grep -v "192.168.1.110.*192.168.1.110" + let's encrypt certbot instructions for apache: https://certbot.eff.org/lets-encrypt/ubuntubionic-apache @@ -19,4 +22,4 @@ https://help.ubuntu.com/lts/serverguide/network-configuration.html ## network interfaces `ip link` lists all interfaces multipass setup some dummy interfaces and left them there. -to delete did `ip link delete mpqemubr0-dummy` \ No newline at end of file +to delete did `ip link delete mpqemubr0-dummy`