From 5a24555c5c2e47eebe6c9394c3e7a3cfe3054aa3 Mon Sep 17 00:00:00 2001 From: Paul Trowbridge Date: Sun, 13 Sep 2020 12:43:12 -0400 Subject: [PATCH] better grep and get rid of empty file --- ubuntu/network.md | 0 ubuntu/networking.md | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) delete mode 100644 ubuntu/network.md diff --git a/ubuntu/network.md b/ubuntu/network.md deleted file mode 100644 index e69de29..0000000 diff --git a/ubuntu/networking.md b/ubuntu/networking.md index 8dab8e1..f28ccd9 100644 --- a/ubuntu/networking.md +++ b/ubuntu/networking.md @@ -9,7 +9,7 @@ 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" +sudo sockstat | grep "ESTAB" | grep -v ".*192\.168\.1\.110.*192\.168\.1\.110.*" | grep -v ".*127\.0\.0\.1.*127\.0\.0\.1.*" let's encrypt certbot instructions for apache: https://certbot.eff.org/lets-encrypt/ubuntubionic-apache