Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save faisalthaheem/2a366368ddeca9a11cedb3486ee49f50 to your computer and use it in GitHub Desktop.
Save faisalthaheem/2a366368ddeca9a11cedb3486ee49f50 to your computer and use it in GitHub Desktop.
iptables rules for oracle cloud to open web and nfs
sudo iptables -I INPUT 6 -m state --state NEW -p tcp --dport 80 -j ACCEPT && \
sudo iptables -I INPUT 6 -m state --state NEW -p tcp --dport 443 -j ACCEPT && \
sudo iptables -I INPUT 6 -m state --state NEW -p tcp --dport 111 -j ACCEPT && \
sudo iptables -I INPUT 6 -m state --state NEW -p tcp --dport 2049 -j ACCEPT && \
sudo iptables -I INPUT 6 -m state --state NEW -p udp --dport 111 -j ACCEPT && \
sudo iptables -I INPUT 6 -m state --state NEW -p udp --dport 2049 -j ACCEPT && \
sudo netfilter-persistent save
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment