Skip to content

Instantly share code, notes, and snippets.

@antonlukin
Last active June 1, 2020 10:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save antonlukin/4212125a66b0d9317e60c7e04a816d7d to your computer and use it in GitHub Desktop.
Save antonlukin/4212125a66b0d9317e60c7e04a816d7d to your computer and use it in GitHub Desktop.
iptables common rules
# Drop for eth0 all incoming connections
sudo iptables -A INPUT -i eth0 -p tcp --dport 3000 -j DROP
# Save rules
sudo service netfilter-persistent save
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment