vi /etc/samba/smb.conf
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=65536 SO_SNDBUF=65536
vi /etc/samba/smb.conf
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=65536 SO_SNDBUF=65536
xfs_repair /dev/sda1
It seems, a floppy module is loaded.Just unload it: rmmod floppy
Just for tests, we assembled a “miner” with cheap hardware.Our configuration is consist of
-motherboard ASUSTeK P5KPL-CM
-cpu model name : Intel(R) Core(TM)2 Duo CPU E7300 @ 2.66GHz
-ram : 2x2048mb ddr2 800mhz
-gpu : gigabyte radeon r9 270(2048mb gddr5) costs 341 BGN with VAT included
-power supply : corsair cx600 costs 145 BGN with VAT included
The linux distribution which is used here i BAMT
During the setting up vsftpd(2.3.5-3) daemon in Debian Wheezy, I found the following error 500 OOPS: vsftpd: refusing to run with writable root inside chroot() when you try to open ftp connection to the server.This appears when chroot_local_user=YES option is enabled in /etc/vsftpd.conf
.Many people had the same problem.This is BUG which is already reported.We can fix this problem with additional patch.
vim /etc/apt/sources.list
add
deb http://ftp.cyconet.org/debian wheezy-updates main non-free contrib
apt-get update
aptitude install -t wheezy-updates debian-cyconet-archive-keyring vsftpd
vim /etc/vsftpd.conf
add
allow_writeable_chroot=YES
service vsftpd restart
root@debian:~# dpkg -l | grep vsftpd
ii vsftpd 2.3.5-10~update.1 i386 lightweight, efficient FTP server written for security
vim /etc/rsyslog.conf
uncomment the following line
cron.* /var/log/cron.log
restart rsyslog service
service rsyslog restart
During the configuration of owasp modsecurity core rule set (CRS) the following error appeared
Syntax error on line 52 of /etc/modsecurity/activated_rules/modsecurity_crs_20_protocol_violations.conf:
The main reasons are the previously installed version of libapache2-modsecurity and OWASP CRS.
dpkg -s libapache2-modsecurity | grep Version
Version: 2.6.6-6+deb7u1
owasp-modsecurity-2.2.8-1
libapache2-modsecurity version 2.6.6-6 doesn’t work correctly with owasp csr 2.2.8-1
The earlier version of owasp core rule set is needed.
and here it is a basic configuration of apache modsecurity
aptitude install libapache2-modsecurity
cp /etc/modsecurity/modsecurity.conf-recommended /etc/apache2/conf.d/modsecurity.conf
vim /etc/apache2/conf.d/modsecurity.conf
customize settings
SecRuleEngine DetectionOnly
SecRequestBodyAccess On
SecDebugLog /var/log/apache2/modsecurity-debug.log
SecDebugLogLevel 3
a2enmod mod-security
a2enmod headers
apachectl configtest
/etc/init.d/apache2 reload
Now configure owasp mod-security
wget https://github.com/SpiderLabs/owasp-modsecurity-crs/tarball/v2.2.5
tar xvf v2.2.5
cp -r SpiderLabs-owasp-modsecurity-crs-5c28b52/* /etc/modsecurity/
mv /etc/modsecurity/modsecurity_crs_10_setup.conf.example /etc/modsecurity/modsecurity_crs_10_setup.conf
cd /etc/modsecurity/base_rules/
for f in * ; do ln -s /etc/modsecurity/base_rules/$f /etc/modsecurity/activated_rules/$f;done
cd /etc/modsecurity/optional_rules/
for f in * ; do ln -s /etc/modsecurity/optional_rules/$f /etc/modsecurity/activated_rules/$f; done
vim /etc/apache2/mods-available/mod-security.conf
add owasp config files
Include "/etc/modsecurity/activated_rules/*.conf"
apachectl configtest
/etc/init.d/apache2 reload
The latest version of wordpress 3.7.1 requires at least php version 5.2.4
[root@localhost ~]# rpm -qa | grep php
php-cli-5.1.6-40.el5_9
php-5.1.6-40.el5_9
php-common-5.1.6-40.el5_9
php-mysql-5.1.6-40.el5_9
php-gd-5.1.6-40.el5_9
php-pdo-5.1.6-40.el5_9
[root@localhost ~]# yum erase php*
Loaded plugins: fastestmirror, security
Setting up Remove Process
Resolving Dependencies
--> Running transaction check
---> Package php.i386 0:5.1.6-40.el5_9 set to be erased
---> Package php-cli.i386 0:5.1.6-40.el5_9 set to be erased
---> Package php-common.i386 0:5.1.6-40.el5_9 set to be erased
---> Package php-gd.i386 0:5.1.6-40.el5_9 set to be erased
---> Package php-mysql.i386 0:5.1.6-40.el5_9 set to be erased
---> Package php-pdo.i386 0:5.1.6-40.el5_9 set to be erased
--> Finished Dependency Resolution
.........................
.........................
Now, we have to install php 5.3
[root@localhost ~]# yum install php53 php53-gd php53-mysql
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
* base: mirror.telepoint.bg
* extras: mirror.telepoint.bg
* updates: mirror.telepoint.bg
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php53.i386 0:5.3.3-21.el5 set to be updated
--> Processing Dependency: php53-cli = 5.3.3-21.el5 for package: php53
--> Processing Dependency: php53-common = 5.3.3-21.el5 for package: php53
---> Package php53-gd.i386 0:5.3.3-21.el5 set to be updated
---> Package php53-mysql.i386 0:5.3.3-21.el5 set to be updated
--> Processing Dependency: php53-pdo for package: php53-mysql
--> Running transaction check
---> Package php53-cli.i386 0:5.3.3-21.el5 set to be updated
---> Package php53-common.i386 0:5.3.3-21.el5 set to be updated
---> Package php53-pdo.i386 0:5.3.3-21.el5 set to be updated
--> Finished Dependency Resolution
root@localhost ~]# lsb_release -a
LSB Version: :core-4.0-ia32:core-4.0-noarch:graphics-4.0-ia32:graphics-4.0-noarch:printing-4.0-ia32:printing-4.0-noarch
Distributor ID: CentOS
Description: CentOS release 5.10 (Final)
Release: 5.10
Codename: Final
cat /etc/apt/sources.list
deb http://old-releases.ubuntu.com/ubuntu/ maverick main restricted
deb http://old-releases.ubuntu.com/ubuntu/ maverick-updates main restricted
deb http://old-releases.ubuntu.com/ubuntu/ maverick universe
deb http://old-releases.ubuntu.com/ubuntu/ maverick-updates universe
deb http://old-releases.ubuntu.com/ubuntu/ maverick multiverse
deb http://old-releases.ubuntu.com/ubuntu/ maverick-updates multiverse
deb http://old-releases.ubuntu.com/ubuntu/ maverick-security main restricted
deb http://old-releases.ubuntu.com/ubuntu/ maverick-security universe
deb http://old-releases.ubuntu.com/ubuntu/ maverick-security multiverse