Created
March 3, 2022 01:00
-
-
Save faisalthaheem/2a366368ddeca9a11cedb3486ee49f50 to your computer and use it in GitHub Desktop.
iptables rules for oracle cloud to open web and nfs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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