Got IP zones from the internet: wget http://www.ipdeny.com/ipblocks/data/countries/all-zones.tar.gz gunzip -d all-zones.tar.gz ; tar -xvf all-zones.tar Then with ipset ipset create onlyita hash:net hashsize 64000 while read ip; do echo $ip ; done < it.zone Iptables: iptables -N countryfilter iptables -A […]
Centreon no Graphics
Troubleshooting Centreon no Graphics (Using centreon brokers 2.11.8 BBDO not nagios NDO) Centos 6.8 x64 centreon-broker-2.11.8-2.el6.x86_64 centreon-broker-cbd-2.11.8-2.el6.x86_64 centreon-broker-cbmod-2.11.8-2.el6.x86_64 centreon-broker-core-2.11.8-2.el6.x86_64 centreon-broker-storage-2.11.8-2.el6.x86_64 PROBLEM Centreon graphics are not updated CAUSE Usualy it is related to centreon-broker not writing in my case I […]
Block IP bash script
Still working hard to keep my server security locked down from attacks. This script checks lighttpd logfile for unusual behaviour Script to monitor and block IPs spaming in varios ways my Word Press and SQUID Server Update 07/2016 tested on […]
yum update security check script
simple bash script to check for missing security this is important to make sure your linux is updated here is the script:
Failed to read keytab [default]
When starting sssd in centos 7 I was getting this error: “Failed to read keytab [default]”SOLUTION:rm /etc/krb5.keytabklist -kvi /etc/samba/smb.confsecurity = adsdedicated keytab file = /etc/krb5.keytabkerberos method = secrets and keytabrealm =service smb restartnet ads testjoinnet ads leave -U Administratornet ads […]
centos 7 disable useless services
This some of the tuning I do on a centos 7 install REMOVE USLESS NETWORK INTERFACE brctl delbr virbr0 systemctl get-default systemctl set-default multi-user.target DISABLE USELESS SERVICESON GUI INSTALLS: ON BASIC WEB INSTALLS: systemctl disable firewalld.service irqbalance.service abrtd.service polkit.service smartd.service […]