Created
February 19, 2025 18:16
-
-
Save diegorribeiro/fb8eb9c417ba818aa89ee894364a246c to your computer and use it in GitHub Desktop.
Iptables example
This file contains hidden or 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
# iptables command for port 80 (Web ports) | |
sudo iptables -I INPUT -p tcp -m tcp --dport 80 -j ACCEPT | |
# iptables command for port 3000 (Node or other) | |
sudo iptables -D INPUT -p tcp -m tcp --dport 3000 -j ACCEPT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment