Skip to content

Instantly share code, notes, and snippets.

@jhowbhz
Last active August 5, 2022 21:40
Show Gist options
  • Save jhowbhz/00585725fbfa06a322edf39083378184 to your computer and use it in GitHub Desktop.
Save jhowbhz/00585725fbfa06a322edf39083378184 to your computer and use it in GitHub Desktop.
Block IP and Unblock IPtables
iptables -A INPUT -s 200.219.26.252 -j ACCEPT # libera
iptables -D INPUT -s 200.219.26.252 -j DROP # remove
iptables -A INPUT -s 5.154.174.142 -j DROP # block
iptables -L -n --line # list
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment