Skip to content

Instantly share code, notes, and snippets.

@zero-master
Last active May 21, 2018 16:44
Show Gist options
  • Select an option

  • Save zero-master/e9ddb77d974731ae6baf72dd64bb7c07 to your computer and use it in GitHub Desktop.

Select an option

Save zero-master/e9ddb77d974731ae6baf72dd64bb7c07 to your computer and use it in GitHub Desktop.
Block specific IP
# Block
sudo iptables -A INPUT -s 10.240.0.22 -j DROP
# Remove
sudo iptables -D INPUT -s 10.240.0.22 -j DROP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment