Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

how to list banned IP ubuntu

#list all currently blocked ips:

fail2ban-client status | grep "Jail list:" | sed "s/ //g" | awk '{split($2,a,",");for(i in a) system("fail2ban-client status " a[i])}' | grep "Status|IP list"

#unban an ip:

fail2ban-client set postfix-mail unbanip 111.222.333.444
Comment

PREVIOUS NEXT
Code Example
Shell :: docker run name 
Shell :: ubuntu upgrade php to 7.3 
Shell :: bash redirect all output 
Shell :: HOW TO REPLACE A CHARACTER FROM A STRING IN BASH 
Shell :: git display current head 
Shell :: list of files in git commit 
Shell :: convert increase size linux command line 
Shell :: conda install opencv 
Shell :: install leafpad ubuntu 2021 
Shell :: react js router 
Shell :: git get remote branches 
Shell :: npm install production 
Shell :: xamp start ubuntu 
Shell :: gitlab add remote upstream 
Shell :: git push origin master 
Shell :: export import all vscode extensions 
Shell :: gitignore node_modules 
Shell :: IF NOT DIR BASH 
Shell :: search file in linux terminal 
Shell :: Creating a New Repo on the command line 
Shell :: git get repo with composer 
Shell :: powershell to string 
Shell :: update submodule git 
Shell :: reset gui linux 
Shell :: delete folder terminal mac 
Shell :: move files one level up linux 
Shell :: how to uninstall a package installed using homebrew 
Shell :: how to refresh cache on github 
Shell :: linux change username 
Shell :: push code to git 
ADD CONTENT
Topic
Content
Source link
Name
8+5 =