Linux

Fail2Ban Whitelist Cloudflare IP

edit /etc/fail2ban/jail.conf “ignoreip” can be an IP address, a CIDR mask or a DNS host. Fail2ban will not ban a host which matches an address in this list. Several addresses can be defined using space separator. ignoreip = 127.0.0.1/8 173.245.48.0/20 103.21.244.0/22 103.22.200.0/22 103.31.4.0/22 141.101.64.0/18 108.162.192.0/18 190.93.240.0/20 188.114.96.0/20 197.234.240.0/22 198.41.128.0/17 162.158.0.0/15 104.16.0.0/12 172.64.0.0/13 131.0.72.0/22

03/11/2020   Linux

Change default php version Ubuntu/Debian

update-alternatives –set php /usr/bin/php7.Xupdate-alternatives –set phar /usr/bin/phar7.Xupdate-alternatives –set phar.phar /usr/bin/phar.phar7.Xupdate-alternatives –set phpize /usr/bin/phpize7.Xupdate-alternatives –set php-config /usr/bin/php-config7.X

03/11/2020   Linux, Php

MegaCLI tiny cheat sheets

MegaCLI SAS RAID Management Tool Ver 8.00.46 Feb 03, 2011 MegaCli -EncInfo -aN|-a0,1,2|-aALL MegaCli -PhyInfo -phyM -aN|-a0,1,2|-aALL MegaCli64 -LDInfo -Lall -aALL MegaCli -LdPdInfo -aALL MegaCli -AdpEventLog -GetEventLogInfo -aALL

19/05/2011   Linux

/etc/hylafax/hosts.hfaxd: No such file or directory

Unable to open the user access file /etc/hylafax/hosts.hfaxd: No such file or directory $ls -la /etc/hylafax/hosts.hfaxd -rw——- 1 uucp root 362 2009-04-03 11:01 /etc/hylafax/hosts.hfaxd Hylafax Debian Etch search for /var/spool/hylafax/etc/hylafax/hosts.hfaxd NOT for  /etc/hylafax/hosts.hfaxd simply – create dir /var/spool/hylafax/etc/hylafax/ – create soft link like /var/spool/hylafax/etc/hylafax# ls -al lrwxrwxrwx 1 root root   24 2009-04-03 11:03 hosts.hfaxd -> […]

03/04/2009   Linux, [RISOLTO]

Proftpd lock root allow resume – block per ip

DefaultRoot                     ~ RequireValidShell               off TimesGMT                        off AllowRetrieveRestart            on AllowStoreRestart               on —————– block external login selective <IfUser user1> <Limit LOGIN> order allow,deny allow from all deny all </Limit> </IfUser> <IfUser user2> <Limit LOGIN> order allow,deny allow from all deny all </Limit> </IfUser> <IfUser AND !user1 !user2> <Limit LOGIN> order allow,deny allow from192.168.26.0/24 deny all </Limit> </IfUser>

03/03/2009   Linux

The syntax for replication startup options is deprecated

#sql instruction CHANGE MASTER TO MASTER_HOST=’192.152.105.4′, MASTER_PORT=3306,MASTER_USER=slave’, MASTER_PASSWORD=’pwextra’,MASTER_SSL=1,MASTER_SSL_CA=’/etc/ssl/certs/cacert.pem’, MASTER_SSL_CAPATH =’/etc/ssl/certs’,MASTER_SSL_CERT = ‘/etc/ssl/certs/mysqlextraslave-cert.pem’, MASTER_SSL_KEY = ‘/etc/mysql/mysqlextraslave-key.pem’; Feb 18 12:20:15 extra mysqld_safe[24001]: 090218 12:20:15 [Warning] The syntax for replication startup options is deprecated and will be removed in MySQL 5.2. Please use ‘CHANGE MASTER’ instead. Feb 18 12:20:15 extra mysqld_safe[24001]: 090218 12:20:15 [Warning] The syntax for replication […]

03/03/2009   Linux

CLI Debian Etch amd64 Adaptec HP SATA RAID 2610SA

DEBIAN Command Line Interfaces HP SATA RAID 2610SA CLI GUIDE Adaptec/Management_Software/Command_Line_Interface_for_Internal_RAID_Users_Guide.pdf START wget http://download.adaptec.com/raid/storage_manager/asm_linux_x64_v5_20_17414.rpm alien -s asm_linux_x64_v5_20_17414.rpm dpkg -i storman_5.20-1_amd64.deb cd /usr/StorMan chmod +x /usr/StorMan/arcconf DEVICE STATUS for raid #1 ++++++++++++++++++++++++++++ /usr/StorMan# ./arcconf GETSTATUS 1 Controllers found: 1 Logical device Task: Logical device : 0 Task ID : 102 Current operation : Build/Verify Status : […]

23/05/2008   Linux

Cambiare UID GID utente SuExEc

Capita di rimanere tagliati fuori dalle politiche di restrizione della tecnologia SUEXEC o simili a causa di una configurazione poco attenta Metodo brutale per cambiare uid di texilee/texilee da 100 a 7771 /usr/sbin/groupmod -g 7771 texilee /usr/sbin/usermod -u 7771 texilee find / -uid 100 -exec chown texilee{} \; find / -gid 100 -exec chgrp texilee{} […]

15/04/2008   Linux, Tips