Archive for December, 2015

Unban IP from fail2ban

December 28, 2015

First find the name of the jail using

fail2ban-client statusĀ 

Then remove the IP by entering

fail2ban-client set Jail-nameĀ unbanip my.ip.address.here

Ex:

fail2ban-client set ssh unbanip 10.10.10.10

Advertisements

List all public IPs from aws cli

December 28, 2015

aws ec2 describe-instances \
–query “Reservations[*].Instances[*].PublicIpAddress” \
–output=text