Showing posts with label iptables. Show all posts
Showing posts with label iptables. Show all posts

Friday, November 20, 2015

fail2ban 0.9.0 example ssh jail.conf


[sshd]
enabled = true

logpath = /var/log/secure #centos
logpath = /var/log/auth.log #debian

ignoreip = 192.168.0.0/24
bantime = 6000
maxretry = 3

Thursday, March 19, 2015

tomcat 80 port linux

1. возвращаем порт 8080 если меняли, а если вы ищете как запустить tomcat на 80 порту, значит меняли
у меня конфиг находится /etc/tomcat7/server.xml
ищем
    <Connector port="8080" protocol="HTTP/1.1"               connectionTimeout="20000"               URIEncoding="UTF-8"               redirectPort="8443" />

2. выполняем 

grub2-install: error: disk `mduuid/e54081d398c6d57b4d67436f6d032162' not found

After raid 1 disk replacement faced with this issue # grub2-install /dev/sdb Installing for i386-pc platform. grub2-install: error: disk `md...