From a254125abef12c9e63081c298224dd9528f990e1 Mon Sep 17 00:00:00 2001 From: lhark Date: Wed, 13 Feb 2019 00:25:14 -0500 Subject: [PATCH] iptables tricks --- how_to | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/how_to b/how_to index 479ffa9..e9d150d 100644 --- a/how_to +++ b/how_to @@ -232,10 +232,17 @@ Sync from phone: adb-sync -R /sdcard// fail2ban unban: + Check if/where IP is banned + iptables -L -n | less + / With Fail2Ban before v0.8.8: fail2ban-client get YOURJAILNAMEHERE actionunban IPADDRESSHERE With Fail2Ban v0.8.8 and later: fail2ban-client set YOURJAILNAMEHERE unbanip IPADDRESSHERE + When all else fail (/!\ Careful with this one /!\): + iptables -S | grep + # Remove leading "-A " + iptables -D Pretty log pager: lnav