iptables tricks
This commit is contained in:
parent
f4beaa79bd
commit
a254125abe
1 changed files with 7 additions and 0 deletions
7
how_to
7
how_to
|
@ -232,10 +232,17 @@ Sync from phone:
|
||||||
adb-sync -R /sdcard/<folder>/ <dest>
|
adb-sync -R /sdcard/<folder>/ <dest>
|
||||||
|
|
||||||
fail2ban unban:
|
fail2ban unban:
|
||||||
|
Check if/where IP is banned
|
||||||
|
iptables -L -n | less
|
||||||
|
/<ip>
|
||||||
With Fail2Ban before v0.8.8:
|
With Fail2Ban before v0.8.8:
|
||||||
fail2ban-client get YOURJAILNAMEHERE actionunban IPADDRESSHERE
|
fail2ban-client get YOURJAILNAMEHERE actionunban IPADDRESSHERE
|
||||||
With Fail2Ban v0.8.8 and later:
|
With Fail2Ban v0.8.8 and later:
|
||||||
fail2ban-client set YOURJAILNAMEHERE unbanip IPADDRESSHERE
|
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:
|
Pretty log pager:
|
||||||
lnav
|
lnav
|
||||||
|
|
Loading…
Reference in a new issue