Skip to content

Instantly share code, notes, and snippets.

@diegorribeiro
Created February 19, 2025 18:16
Show Gist options
  • Save diegorribeiro/fb8eb9c417ba818aa89ee894364a246c to your computer and use it in GitHub Desktop.
Save diegorribeiro/fb8eb9c417ba818aa89ee894364a246c to your computer and use it in GitHub Desktop.
Iptables example
# 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