iptables tricks

This commit is contained in:
lhark 2019-02-13 00:25:14 -05:00
parent f4beaa79bd
commit a254125abe

7
how_to
View file

@ -232,10 +232,17 @@ Sync from phone:
adb-sync -R /sdcard/<folder>/ <dest>
fail2ban unban:
Check if/where IP is banned
iptables -L -n | less
/<ip>
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 <ip>
# Remove leading "-A "
iptables -D <rule>
Pretty log pager:
lnav