العاب نور
موقع جديد الالعاب الفلاش نور
ويوجد ايضا قسم افلام كارتون
http://developers.evrsoft.com/forum/member.php?u=18177
موقع جديد الالعاب الفلاش نور
ويوجد ايضا قسم افلام كارتون
http://developers.evrsoft.com/forum/member.php?u=18177
<?php /* Hack Name: Adsense to RSS Version: 1.1 Hack URI: http://planetozh.com/blog/my-projects/track-adsense-earnings-in-rss-feed/ Description: Follow your Adsense earnings with an RSS reader Author: Ozh Author URI: http://planetOzh.com */ /* * Release History * * 1.1 (04/23/2006 - CGibson) * Fixed to work with recent modifications to Google AdSense * - Changed "csv" post data field to "outputFormat" * - Changed spliting of date from "/" to "-" * * 1.0 (10/07/2005) * Initial Release */ /************ SCRIPT CONFIGURATION ***********/ /*********************************************/ $username="you@email.com"; // your adsense username $password="MySuPeRpAsSwOrD"; // your adsense password $daterange = 20 ; // range of days to aggregate in RSS reader $cookie="./.cookiefile"; // a temp file name - you mostly don't care about this // This will create a hidden file in the current directory. If it seems to fail, // replace with a full physical path (i.e. /home/you/temp/cookiefile) /************ DO NOT MODIFY BELOW ************/ /*********************************************/ $daysbefore = mktime(0, 0, 0, date("m") , date("d") - $daterange, date("Y")); list ($d_from,$m_from,$y_from) = split(':',date("j:n:Y", $daysbefore)); list ($d_to,$m_to,$y_to) = split(':',date("j:n:Y")); /* Following lines are based on a script found on WMW forums */ /* http://www.webmasterworld.com/forum89/5349.htm */ $destination="/adsense/report/aggregate?" ."sortColumn=0" ."&reverseSort=false" ."&outputFormat=TSV_EXCEL" ."&product=afc" ."&dateRange.simpleDate=today" ."&dateRange.dateRangeType=custom" ."&dateRange.customDate.start.day=$d_from" ."&dateRange.customDate.start.month=$m_from" ."&dateRange.customDate.start.year=$y_from" ."&dateRange.customDate.end.day=$d_to" ."&dateRange.customDate.end.month=$m_to" ."&dateRange.customDate.end.year=$y_to" ."&unitPref=page" ."&reportType=property" ."&searchField=" ."&groupByPref=date"; $postdata="destination=".urlencode($destination)."&username=".urlencode($username)."&password=".urlencode($password)."&null=Login"; $ch = curl_init(); curl_setopt ($ch, CURLOPT_URL,"https://www.google.com/adsense/login.do"); curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt ($ch, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)"); curl_setopt ($ch, CURLOPT_TIMEOUT, 20); curl_setopt ($ch, CURLOPT_FOLLOWLOCATION,1); curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt ($ch, CURLOPT_COOKIEJAR, $cookie); curl_setopt ($ch, CURLOPT_COOKIEFILE, $cookie); curl_setopt ($ch, CURLOPT_POSTFIELDS, $postdata); curl_setopt ($ch, CURLOPT_POST, 1); $result = curl_exec ($ch); curl_close($ch); $result=preg_split("/\n/",$result); array_pop($result); array_pop($result); array_shift($result); $result = array_reverse($result); header('Content-type: text/xml'); echo '<?xml version="1.0" encoding="iso-8859-1"?>'; echo "\n"; ?> <rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" > <channel> <title><?php echo "$daterange days of Adsense"; ?></title> <link>https://www.google.com/adsense/</link> <description>An RSS feed of my Adsense earnings for the last <?php echo $daterange ?> days</description> <language>en</language> <?php $firstday=1; foreach ($result as $line) { $item = array(); $line = str_replace("\x00",'',$line); $line = str_replace('"','',$line); list($day, $pages, $clicks, $ctr, $eCPM, $income) = preg_split("/\s/",$line); $item['title']= "<title>\$$income on $day</title>"; $item['guid'] = '<guid isPermaLink="false">' . md5($username.$day) . "</guid>"; $day = split('-',$day); $day = mktime(0, 0, 0, $day[1] , $day[0], $day[2]); if ($firstday == 1) { $day = date("D, d M Y H:i:s +0000"); $firstday = 0; } else { $day = date("D, d M Y H:i:s +0000", $day); } $item['pubDate'] = "<pubDate>$day</pubDate>"; $item['category'] = "<category>adsense</category>"; $item['description'] = "<description>\$$income ($clicks clicks on $pages pages : CTR = $ctr - eCPM = $eCPM)</description>"; $item['content'] = "<content:encoded><![CDATA[ <table> <tr><td>Pages printed</td><td>Clicks</td><td>CTR</td><td>eCPM</td><td>Earnings</td></tr> <tr><td>$pages</td><td>$clicks</td><td>$ctr</td><td>$eCPM</td><td>$income</td></tr> </table> ]]></content:encoded>"; print "<item>\n"; print $item['title'] ."\n"; print $item['guid'] ."\n"; print $item['pubDate'] ."\n"; print $item['category'] ."\n"; print $item['description'] ."\n"; print $item['content'] ."\n"; print "</item>\n"; } ?> </channel> </rss>
Code |
<form action="#" method="GET"> |
Code |
<form action="#" method="POST"> |
unrar e file-name.r00
rar a -v 4000k file-name-to-compress.rar file-name-uncompressed.avi
whereis rar rar: /usr/local/bin/rar /usr/local/man/cat1/rar.1 /usr/ports/archivers/rar
whereis unrar unrar: /usr/local/bin/unrar /usr/ports/archivers/unrar
sudo apt-get install rar unrar
sudo yum install rar unrar
cd /usr/ports/archivers/unrar make install clean cd /usr/ports/archivers/rar make install clean rehash
sudo apr-get install squid3
ports/www/squid31/ make && make install && clean
emerge squid3
http://people.redhat.com/jskala/squid/squid-3.0.STABLE16-1.el5/x86_64/squid-3.0.STABLE16-1.el5.x86_64.rpm
http://people.redhat.com/jskala/squid/squid-3.0.STABLE16-1.el5/i386/squid-3.0.STABLE16-1.el5.i386.rpm
nano /etc/squid/squid.conf
root@st [/etc/squid]# htpasswd -n admin admin:cpDjhqGda7kv
root@st [/etc/squid]# ln -s /home/cpeasyapache/src/httpd-2.2.13/support/.libs/htpasswd /bin/htpasswd
service squid restart
http://mirror1.rv89.net/video/Squid-Proxy.avi
cd /usr/local/src/
wget www3.mplayerhq.hu/MPlayer/releases/codecs/essential-20061022.tar.bz2 wget rubyforge.org/frs/download.php/9225/flvtool2_1.0.5_rc6.tgz wget easynews.dl.sourceforge.net/sourceforge/lame/lame-3.97.tar.gz wget superb-west.dl.sourceforge.net/sourceforge/ffmpeg-php/ffmpeg-php-0.5.1.tbz2 wget downloads.xiph.org/releases/ogg/libogg-1.1.3.tar.gz wget downloads.xiph.org/releases/vorbis/libvorbis-1.1.2.tar.gz wget mplayerhq.hu/MPlayer/releases/MPlayer-1.0rc2.tar.bz2 wget ffmpeg.org/releases/ffmpeg-0.5.tar.bz2
tar zxvf lame-3.97.tar.gz tar zxvf libogg-1.1.3.tar.gz tar zxvf libvorbis-1.1.2.tar.gz tar zxvf flvtool2_1.0.5_rc6.tgz tar jxvf essential-20061022.tar.bz2 tar jxvf ffmpeg-php-0.5.1.tbz2 tar jxvf MPlayer-1.0rc2.tar.bz2 tar jxvf ffmpeg-0.5.tar.bz2 mkdir /usr/local/lib/codecs/ yum install gcc gmake make libcpp libgcc libstdc++ gcc4 gcc4-c++ gcc4-gfortran subversion ruby ncurses-devel -y
svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer cd /usr/local/src/mplayer svn update cd /usr/local/src/ mv /usr/local/src/essential-20061022/* /usr/local/lib/codecs/ chmod -R 755 /usr/local/lib/codecs/
cd /usr/local/src/lame-3.97 ./configure make && make install
cd /usr/local/src/ cd /usr/local/src/libogg-1.1.3 ./configure --enable-shared && make && make install PKG_CONFIG_PATH=/usr/local/lib/pkgconfig export PKG_CONFIG_PATH
cd /usr/local/src/ cd /usr/local/src/libvorbis-1.1.2 ./configure && make && make install
cd /usr/local/src/ cd /usr/local/src/flvtool2_1.0.5_rc6/ ruby setup.rb config ruby setup.rb setup ruby setup.rb install
cd /usr/local/src/ cd /usr/local/src/MPlayer-1.0rc2 ./configure && make && make install cd /usr/local/src/
cd /usr/local/src/ffmpeg-0.5 ./configure --enable-libmp3lame --enable-libvorbis --disable-mmx --enable-shared make make install export LD_LIBRARY_PATH=/usr/local/lib/ ln -s /usr/local/lib/libavformat.so.50 /usr/lib/libavformat.so.50 ln -s /usr/local/lib/libavcodec.so.51 /usr/lib/libavcodec.so.51 ln -s /usr/local/lib/libavutil.so.49 /usr/lib/libavutil.so.49 ln -s /usr/local/lib/libmp3lame.so.0 /usr/lib/libmp3lame.so.0 ln -s /usr/local/lib/libavformat.so.51 /usr/lib/libavformat.so.51
cd /usr/local/src/ cd /usr/local/src/ffmpeg-php-0.5.1/ phpize ./configure make make install
echo 'extension=ffmpeg.so' >> /usr/local/Zend/etc/php.ini
[i][ffmpeg] extension_dir=/usr/local/lib/php/extensions/no-debug-non-zts-20060613/ffmpeg.so extension=ffmpeg.so[/i]
/etc/init.d/httpd restart
/usr/local/lib >>/etc/ld.so.conf
[i]ldconfig -v[/i]
php -r ‘phpinfo();’ | grep ffmpeg
ffmpeg ffmpeg support (ffmpeg-php) => enabled ffmpeg-php version => 0.5.3.1 ffmpeg-php gd support => enabled ffmpeg.allow_persistent => 0 => 0 ffmpeg.show_warnings => 0 => 0
free -m
echo 3 > /proc/sys/vm/drop_caches
free -m
echo 3 > /proc/sys/vm/drop_caches
smartctl -i /dev/sda
root@ethel [~]# smartctl -i /dev/hda smartctl version 5.38 [x86_64-redhat-linux-gnu] Copyright (C) 2002-8 Bruce Allen Home page is http://smartmontools.sourceforge.net/ Smartctl open device: /dev/hda failed: No such file or directory root@ethel [~]# smartctl -i /dev/sda smartctl version 5.38 [x86_64-redhat-linux-gnu] Copyright (C) 2002-8 Bruce Allen Home page is http://smartmontools.sourceforge.net/ === START OF INFORMATION SECTION === Device Model: WDC WD7500AADS-00M2B0 Serial Number: WD-WCAV51911761 Firmware Version: 01.00A01 User Capacity: 750,156,374,016 bytes Device is: Not in smartctl database [for details use: -P showall] ATA Version is: 8 ATA Standard is: Exact ATA specification draft version not indicated Local Time is: Tue Dec 8 03:41:36 2009 CET SMART support is: Available - device has SMART capability. SMART support is: Enabled
smartctl -l error /dev/sda
smartctl -t short /dev/sda
smartctl -t long /dev/sda
smartctl -Hc /dev/sda
root@ethel [~]# smartctl -Hc /dev/sda smartctl version 5.38 [x86_64-redhat-linux-gnu] Copyright (C) 2002-8 Bruce Allen Home page is http://smartmontools.sourceforge.net/ === START OF READ SMART DATA SECTION === SMART overall-health self-assessment test result: PASSED General SMART Values: Offline data collection status: (0x85) Offline data collection activity was aborted by an interrupting command from host. Auto Offline Data Collection: Enabled. Self-test execution status: ( 0) The previous self-test routine completed without error or no self-test has ever been run. Total time to complete Offline data collection: (15600) seconds. Offline data collection capabilities: (0x7b) SMART execute Offline immediate. Auto Offline data collection on/off support. Suspend Offline collection upon new command. Offline surface scan supported. Self-test supported. Conveyance Self-test supported. Selective Self-test supported. SMART capabilities: (0x0003) Saves SMART data before entering power-saving mode. Supports SMART auto save timer. Error logging capability: (0x01) Error logging supported. General Purpose Logging supported. Short self-test routine recommended polling time: ( 2) minutes. Extended self-test routine recommended polling time: ( 181) minutes. Conveyance self-test routine recommended polling time: ( 5) minutes. SCT capabilities: (0x303f) SCT Status supported. SCT Feature Control supported. SCT Data Table supported.
root@ethel [/home]# dd if=/dev/zero of=fakedisk bs=10k count=1000 1000+0 records in 1000+0 records out 10240000 bytes (10 MB) copied, 0.0188848 seconds, 542 MB/s
/dev/sdb -m you@rv89.eu
/scripts/setbwlimit --domain=rv89.eu --limit=10240000
# /etc/init.d/mysql stop
Output:Stopping MySQL database server: mysqld.
# mysqld_safe --skip-grant-tables &
Output: [1] 5988 Starting mysqld daemon with databases from /var/lib/mysql mysqld_safe[6025]: started
# mysql -u root
Output: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 1 to server version: 4.1.15-Debian_1-log Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql>
mysql> use mysql;
mysql> update user set password=PASSWORD("NEW-ROOT-PASSWORD") where User='root';
mysql> flush privileges;
mysql> quit
# /etc/init.d/mysql stop
Output:Stopping MySQL database server: mysqld STOPPING server from pid file /var/run/mysqld/mysqld.pid mysqld_safe[6186]: ended [1]+ Done mysqld_safe --skip-grant-tables
# /etc/init.d/mysql start
# mysql -u root -p
cd /usr/ports/www/nginx-devel/ make install clean
HTTP_MODULE HTTP_CACHE_MODULE HTTP_REWRITE_MODULE HTTP_SSL_MODULE HTTP_STATUS_MODULE
mkdir /usr/local/etc/nginx/vhosts
user www www; worker_processes 8; pid /var/run/nginx.pid; events { worker_connections 8192; } http { include mime.types; default_type application/octet-stream; ## Log Cache open_log_file_cache max=1000 inactive=20s min_uses=2 valid=1m; ## Log Format log_format main '$remote_addr - $remote_user [$time_local] $request ' '"$status" $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$http_x_forwarded_for"'; ## Logs #access_log /var/log/nginx-access.log main; #access_log off; error_log /var/log/nginx-error.log debug gzip buffer=32k; ## Compression gzip on; gzip_min_length 1100; gzip_buffers 16 8k; gzip_http_version 1.0; gzip_comp_level 1; gzip_proxied any; gzip_types text/plain text/css text/javascript text/xml text/php application/x-javascript application/xml application/xml+rss; ## Size Limits client_body_buffer_size 8k; client_header_buffer_size 256k; client_max_body_size 10m; large_client_header_buffers 256 256k; ## Timeouts client_body_timeout 5; client_header_timeout 5; keepalive_timeout 75 20; send_timeout 5; ## General Options ignore_invalid_headers on; limit_zone gulag $binary_remote_addr 1m; recursive_error_pages on; sendfile on; server_name_in_redirect off; server_tokens off; ## TCP options tcp_nodelay on; tcp_nopush on; ## Run all config files in our vhost directory include /usr/local/etc/nginx/vhosts/*.conf; }
server { listen *:80; server_name rv89.eu; root /usr/local/www/rv89.eu; #access_log /var/log/rv89.eu.access.log main; error_log /var/log/rv89.eu.error.log debug; #error_page 404 = /error/404.html; #error_page 502 503 504 = /error/50x_error.html; #location /error/50x_error.html { # internal; #} ## directory and index file location / { root /usr/local/www/rv89.eu; autoindex off; index index.php index.html index.htm; } ## php-fpm config location ~ \.php$ { fastcgi_index index.php; fastcgi_pass 127.0.0.1:9000; include fastcgi_params; fastcgi_param CONTENT_TYPE $content_type; fastcgi_param CONTENT_LENGTH $content_length; fastcgi_param SCRIPT_NAME $fastcgi_script_name; fastcgi_param SCRIPT_FILENAME /usr/local/www/rv89.eu$fastcgi_script_name; fastcgi_param REQUEST_URI $request_uri; fastcgi_param DOCUMENT_URI $document_uri; fastcgi_intercept_errors on; } ## Cache of images location ~* \.(jpg|jpeg|gif|css|png|js|ico)$ { root /usr/local/www/rv89.eu; access_log off; expires 30d; break; } ## Serve an empty 1x1 gif _OR_ an error 204 (No Content) for favicon.ico location = /favicon.ico { #empty_gif; return 204; } ## If the file exists as a static file serve it directly without running all the other rewite tests on it if (-f $request_filename) { break; } ## Only allow GET and HEAD request methods if ($request_method !~ ^(GET|HEAD)$ ) { return 444; } }
nginx_enable="YES"
rehash
/usr/local/etc/rc.d/nginx start
portsnap fetch
portsnap extract
whereis nano
cd /usr/ports/editors/nano
make install clean
rehash
ifconfig_em0="inet 87.98.222.131 netmask 255.255.255.0 broadcast 87.98.222.255" defaultrouter="87.98.222.254" ifconfig_em1="inet 87.98.223.131 netmask 255.255.255.0 broadcast 87.98.223.255"
ifconfig_em0_alias0="inet 94.23.73.101 netmask 255.255.255.255" ifconfig_em0_alias1="inet 94.23.159.44 netmask 255.255.255.255" ifconfig_em1_alias0="inet 94.23.73.41 netmask 255.255.255.255" ifconfig_em1_alias1="inet 94.23.73.42 netmask 255.255.255.255"
cd /usr/ports/devel/libpthread-stubs/make install cleanInstalling MySQL
cd /usr/ports/databases/mysql51-server/make -D BUILD_OPTIMIZED=yes BUILD_STATIC=yes WITH_PROC_SCOPE_PTH=yes install cleanCopyng config file and MySQL files
cp /usr/local/share/mysql/my-large.cnf /etc/my.cnfThis is a template of my.cnf, will help to keep the MySQL secure.Make sure you leave skip-networking and set-variable=local-infile=0 in your config file.
[mysqld]#skip-name-resolvesafe-show-database#old_passwordsback_log = 50skip-innodbmax_connections = 500key_buffer_size = 128Mmyisam_sort_buffer_size = 128Mjoin_buffer_size = 1Mread_buffer_size = 1Msort_buffer_size = 4Mtable_cache = 5000thread_cache_size = 256wait_timeout = 20connect_timeout = 30tmp_table_size = 128Mmax_heap_table_size = 64Mmax_allowed_packet = 64Mnet_buffer_length = 16384max_connect_errors = 10thread_concurrency = 2concurrent_insert = 2table_lock_wait_timeout = 30read_rnd_buffer_size = 786432bulk_insert_buffer_size = 8Mquery_cache_limit = 6Mquery_cache_size = 128Mquery_cache_type = 1query_prealloc_size = 262144query_alloc_block_size = 65536transaction_alloc_block_size = 8192transaction_prealloc_size = 4096default-storage-engine = MyISAMmax_write_lock_count = 16skip-networkingset-variable=local-infile=0[mysqld_safe]nice = -10open_files_limit = 8192[mysqldump]quickmax_allowed_packet = 16M[myisamchk]key_buffer = 384Msort_buffer = 64Mread_buffer = 16Mwrite_buffer = 16MSetup the MySQL
mysql_install_db --user=mysqlchown -R mysql /var/db/mysql/chgrp -R mysql /var/db/mysql//usr/local/bin/mysqld_safe -user=mysql &exitOpen /etc/rc.conf and add
mysql_enable="YES"Starting MySQL
/usr/local/etc/rc.d/mysql-server startChange the root password of MySQL
/usr/local/bin/mysqladmin -u root password 'newpassword'For login as root
mysql -u root -pOptional: Deleting the test databasemysql>
drop database test;mysql> use mysql;mysql> delete from db;mysql> delete from user where not (host="localhost" and user="root");mysql> flush privileges;To make more secure the MySQL administration, change the root username for MySQL
mysql> update user set user="sqladmindatabase" where user="root";mysql> flush privileges;installing the php extensions for open connection between php and mysql
cd /usr/ports/databases/php5-mysql/make install cleancd /usr/ports/databases/php5-mysqli/make install cleanRestarting php-fpm
/usr/local/etc/rc.d/php-fpm restartClean last command of MySQL
cat /dev/null > ~/.mysql_history
root@server [~]# cd /home root@server [/home]# wget http://layer1.cpanel.net/latest root@server [/home]# ./latest
[root@server ~]# yum update
[root@server ~]# yum upgrade
root@server [~]# cd /root root@server [~]# wget http://www.php.net/get/php-5.2.9.tar.bz2/from/this/mirror root@server [~]# wget http://download.suhosin.org/suhosin-patch-5.2.8-0.9.6.3.patch.gz root@server [~]# wget http://download.suhosin.org/suhosin-0.9.27.tgz
root@server [~]# tar xvjf php-5.2.9.tar.bz2
root@server [~]# gunzip < suhosin-patch-5.2.8-0.9.6.3.patch.gz | patch -p0
root@server [~]# php -i | grep ./configure
root@server [~]# cd php-5.2.9 root@server [~/php-5.2.9]# ./configure --enable-suhosin root@server [~/php-5.2.9]# make root@server [~/php-5.2.9]# make install
root@server [~]# yum install make root@server [~]# yum install patch
<?php phpinfo(); ?>
root@server [~]# tar zxvf suhosin-0.9.27.tgz root@server [~]# cd suhosin-0.9.27 root@server [~/suhosin-0.9.27]# phpize root@server [~/suhosin-0.9.27]# ./configure root@server [~/suhosin-0.9.27]# make root@server [~/suhosin-0.9.27]# make install
root@server [~]# php -i | grep php.ini
root@server [~]# nano /usr/local/lib/php.ini
root@server [~]# yum install nano
extension_dir = /usr/local/lib/php/extensions/no-debug-non-zts-20060613/
root@server [~]# tar -zxvf ZendOptimizer-3.3.3-linux-glibc23-i386.tar.gz root@server [~]# cd ZendOptimizer-3.3.3-linux-glibc23-i386 root@server [~/ZendOptimizer-3.3.3-linux-glibc23-i386]# ./install.sh
service httpd restart
root@server [~]# nano /usr/local/lib/php.ini
safe_mode = On expose_php = Off Enable_dl= Off magic_quotes = On register_globals = off display errors = off disable_functions = system, show_source, symlink, exec, dl,shell_exec, passthru, phpinfo, escapeshellarg,escapeshellcmd
root@server [~]# service httpd restart
root@server [~]# cd /root root@server [~]# wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.26.5.tar.gz root@server [~]# wget http://www.grsecurity.com/test/grsecurity-2.1.12-2.6.26.5-200809141715.patch root@server [~]# tar xzvf linux-2.6.26.5.tar.gz root@server [~]# patch -p0 < grsecurity-2.1.12-2.6.26.5-200809141715.patch root@server [~]# mv linux-2.6.26.5 linux-2.6.26.5-grsec root@server [~]# ln -s linux-2.6.26.5-grsec/ linux root@server [~/linux]# cd linux root@server [~/linux]# cp /boot/config-`uname -r` .config root@server [~/linux]# make oldconfig
root@server [~/linux]# make bzImage root@server [~/linux]# make modules root@server [~/linux]# make modules_install root@server [~/linux]# make install
root@server [~/linux]# nano /boot/grub/grub.conf
root@server [~/linux]# reboot
root@server [~]# nano /etc/ssh/sshd_config
root@server [~]# wget http://www.configserver.com/free/csf.tgz root@server [~]# tar -xzf csf.tgz root@server [~]# cd csf
root@server [~/csf]# ./csftest.pl Testing ip_tables/iptable_filter...OK Testing ipt_LOG...OK Testing ipt_multiport/xt_multiport...OK Testing ipt_REJECT...OK Testing ipt_state/xt_state...OK Testing ipt_limit/xt_limit...OK Testing ipt_recent...OK Testing ipt_owner...OK Testing iptable_nat/ipt_REDIRECT...OK
root@server [~/csf]# ./install.sh
Testing = "0"
# Allow incoming TCP ports TCP_IN = "20,21,22,25,53,80,110,143,443,465,587,993,995,2077,2078,2082,2083,2086,2087,2095,2096" # Allow outgoing TCP ports TCP_OUT = "20,21,22,25,37,43,53,80,110,113,443,587,873,2087,2089,2703"
CT_LIMIT = "60"
CT_PERMANENT = "1"
CT_BLOCK_TIME = "1800"
CT_INTERVAL = "60"
root@server [~# service csf restart
# Enable TCP SYN Cookie Protection net.ipv4.tcp_syncookies = 1
root@server [~/]# service network restart
root@server [~]# cd /root/ root@server [~]# wget http://www.zdziarski.com/projects/mod_evasive/mod_evasive_1.10.1.tar.gz root@server [~]# tar zxf mode_evasive-1.10.1.tar.gz root@server [~]# cd mod_evasive
root@server [~/mod_evasive]# /usr/local/apache/bin/apxs -i -a -c mod_evasive20.c
<IfModule mod_evasive20.c> DOSHashTableSize 3097 DOSPageCount 2 DOSSiteCount 50 DOSPageInterval 1 DOSSiteInterval 1 DOSBlockingPeriod 10 </IfModule>
root@server [~]# yum install libxml2 libxml2-devel httpd-devel
root@server [~]# nano /etc/httpd/conf/httpd.conf
root@server [~]# cd /root/ root@server [~]# wget <a rel="nofollow" title="Link esterno " class="bbc_url" href="http://www.modsecurity.org/download/modsecurity-apache_2.5.6.tar.gz">http://www.modsecuri...he_2.5.6.tar.gz</a> root@server [~]# tar zxf modsecurity-apache_2.5.6.tar.gz root@server [~]# cd modsecurity-apache_2.5.6 root@server [~/modsecurity-apache_2.5.6]# cd apache2
root@server [~/modsecurity-apache_2.5.6/apache2]# ./configure root@server [~/modsecurity-apache_2.5.6/apache2]# make root@server [~/modsecurity-apache_2.5.6/apache2]# make install
Include /etc/httpd/conf/modsecurity.conf
# /etc/httpd/conf/httpd.conf LoadModule unique_id_module modules/mod_unique_id.so LoadFile /usr/lib/libxml2.so LoadModule security2_module modules/mod_security2.so Include /etc/httpd/conf/modsecurity.conf
root@server [~]# yum install clamav
root@server [~]# freshclam
root@server [~]# clamscan -r /home
root@server [~]# cd /root/ root@server [~]# wget http://downloads.rootkit.nl/rkhunter-1.2.7.tar.gz</a> root@server [~]# tar -zxvf rkhunter-1.2.7.tar.gz root@server [~]# cd rkhunter root@server [~rkhunter]# ./installer.sh
root@server [~]# rkhunter -c
Options{ recursion no;
root@server [~]# service named restart
order bind,hosts nospoof on
ServerSignature Off