2020-01-12 21:28:28 -05:00
|
|
|
scanning services that are running:
|
|
|
|
|
|
|
|
sudo nmap -T Aggressive -A -v 127.0.0.1 -p 1-10000
|
|
|
|
|
|
|
|
sudo netstat --tcp --udp --listening --program
|
|
|
|
|
2020-02-18 15:15:06 -05:00
|
|
|
lists programs with port numbers: `sudo netstat -tup`
|
|
|
|
|
2020-01-12 21:28:28 -05:00
|
|
|
sudo lsof +M -i4 -i6
|
|
|
|
|
2020-09-12 00:30:20 -04:00
|
|
|
# list all established connection that are not internal only"
|
2020-09-13 12:43:12 -04:00
|
|
|
sudo sockstat | grep "ESTAB" | grep -v ".*192\.168\.1\.110.*192\.168\.1\.110.*" | grep -v ".*127\.0\.0\.1.*127\.0\.0\.1.*"
|
2020-09-12 00:30:20 -04:00
|
|
|
|
2020-01-12 21:28:28 -05:00
|
|
|
let's encrypt certbot instructions for apache:
|
2020-02-12 09:54:38 -05:00
|
|
|
https://certbot.eff.org/lets-encrypt/ubuntubionic-apache
|
|
|
|
|
|
|
|
|
|
|
|
ip setup:
|
2020-02-19 23:15:51 -05:00
|
|
|
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.
|
2020-09-12 00:30:20 -04:00
|
|
|
to delete did `ip link delete mpqemubr0-dummy`
|