From 4ca85015ae075aa1399ff272fc0ea502da72d5c4 Mon Sep 17 00:00:00 2001 From: Morgan Date: Sat, 12 Oct 2019 14:19:55 +0200 Subject: [PATCH] blocking ip and undoing it --- cheat/network.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cheat/network.md b/cheat/network.md index ac73d34..b93eb6b 100644 --- a/cheat/network.md +++ b/cheat/network.md @@ -2,3 +2,9 @@ * `curl ifconfig.co` * `curl ident.me` + +### Block an IP with `iptables` +* `iptables -A INPUT -s 35.196.128.87 -j DROP` + +### Undo the previous rule +* `iptables -D INPUT -s 35.196.128.87 -j DROP`