search for: block_this_ip

Displaying 2 results from an estimated 2 matches for "block_this_ip".

2018 May 30
3
Password recovery trick not working on CentOS
Hi, I remember back in the days, there was a neat trick to recover a lost root password, or more exactly, redefine a new password for root. 1. In the bootloader, boot the system with the 'init=/bin/bash' kernel argument. 2. Remount the root partition in read-write mode: # mount -o remount,rw / 3. Set the password for root: # passwd 4. Remount the root partition in read-only
2018 Jun 01
5
Centos 7 (using iptables) removed firewalld
...DROPiptables -P OUTPUT DROP ######################################################################################################################## 3. Block a specific ip-address########################################################################################################################BLOCK_THIS_IP="x.x.x.x"########################################################################################################################iptables -A INPUT -s "$BLOCK_THIS_IP" -j DROP ######################################################################################################...