Create a shell script which does the following:
Create the set-iptables-rules.sh
# nano set-iptables-rules.sh
and copy-paste the following:
- Delete all existing rules
- Set default chain policies
- Allow inbound SSH
- Allow inbound HTTP
- Allow outbound SSH
Create the set-iptables-rules.sh
# nano set-iptables-rules.sh
and copy-paste the following: