21, FTP, not HIPAA compliant!
22, SSH and SFTP
23, telnet used for checking ports
25, SMTP
53, domain name services (such as BIND); TCP and UDP are the same
80, HTTP
110, Post Office Protocol 3
443, HTTPS
Generate self-signed SSL and key,
sudo openssl req -x509 -days 365 -newkey rsa:2048 -keyout /etc/apache2/ssl/apache.key -out /etc/apache2/ssl/apache.cert
/etc/apache2 (deb)
/etc/httpd/conf.d (rpm)
Generate CSR:
openssl req -nodes -newkey rsa:4096 -keyout privkey.pem -out csr.pem
Check disk use (Windows), run in PowerShell as admin:
Get-ChildItem c:\ -r -ErrorAction SilentlyContinue –Force |sort -descending -property length | select -first 10 name, DirectoryName, @{Name="MB";Expression={[Math]::round($_.length / 1MB, 2)}}
gci C:\inetpub -r| sort -descending -property length | select -first 10 name, @{Name="GB";Expression={[Math]::round($_.length / 1GB, 2)}}
Get subdirectory size in PowerShell:
$colItems = Get-ChildItem C:\ -ErrorAction SilentlyContinue -Force | Where-Object {$_.PSIsContainer -eq $true} | Sort-Object
foreach ($i in $colItems)
{
If not done already, configure Google Cloud CLI.
Instructions below assume DEB based distro like Debian or Ubuntu.
Instructions from Google Cloud SDK Docs
Pre-requisities to install Google CLI (skip if already done)
Add GPG key,
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo gpg --dearmor -o /usr/share/keyrings/cloud.google.gpg