CIS Hardened Image Level 1 on Ubuntu Linux Server 22.04 LTS
Center for Internet Security | 2.0.0.12Linux/Unix, Ubuntu 22.04 - 64-bit HAQM Machine Image (AMI)
If you want open port on this CIS image
http://medium.com/@venkateshprasaddasari/install-postgres-16-on-cis-ubuntu-22-04-056da68aee18
sudo apt-get update
apt install ufw
sudo apt-get install iptables-persistent
sudo nft insert rule inet filter input tcp dport {db_port} accept
sudo iptables -A INPUT -p tcp --dport {db_port} -m state --state NEW -j ACCEPT
sudo netfilter-persistent save
- Leave a Comment |
- Mark review as helpful
showing 1 - 1