Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- STEP by STEP Raptor on Debian 6.06 AMD 64 for Testing only ( X3 Ram=8 G HD=80 G)
- Installasi awal paket hanya openssh server dan basic system dengan partisi ext4 sbb :
- /swap 4 G
- / 6 G B
- /cache-1 25 G noatime /dev/sda5
- /raptorcache 40 G noatime /dev/sda6
- /var 5 G
- If you need to know your drives labels type the following:
- mount|grep ^'/dev'
- Optimalkan file system untuk cache
- tune2fs -m 0 /dev/sda5
- tune2fs -m 0 /dev/sda6
- tune2fs -o journal_data_writeback /dev/sda5
- tune2fs -o journal_data_writeback /dev/sda6
- Disabled fsck (file system check)
- nano /etc/fstab
- /cache-1 ext4 noatime,barrier=0,nodiratime,relatime,errors=remount-ro,data=writeback 0 0
- /raptorcache ext4 noatime,barrier=0,nodiratime,relatime,errors=remount-ro,data=writeback 0 0
- touch raptor10b-64-debian.sh; chmod 777 raptor10b-64-debian.sh
- nano raptor10b-64-debian.sh
- insert all script below, save, than run by type "bash raptor10b-64-debian.sh"
- # Copy mulai dari sini
- # bash raptor10b-64-debian.sh
- echo 4 > /proc/sys/net/ipv4/tcp_fin_timeout
- mv /etc/sysctl.conf /etc/sysctl.conf_
- touch /etc/sysctl.conf
- echo "kernel.panic = 30
- kernel.panic_on_oops = 30
- kernel.sysrq = 0
- kernel.core_uses_pid = 1
- kernel.msgmnb = 65536
- kernel.msgmax = 65536
- fs.file-max = 65536
- vm.swappiness = 0
- vm.vfs_cache_pressure=50
- vm.mmap_min_addr = 4096
- vm.overcommit_ratio = 0
- vm.overcommit_memory = 0
- kernel.shmmax = 268435456
- kernel.shmall = 268435456
- vm.min_free_kbytes = 65536
- net.ipv6.conf.all.disable_ipv6 = 1
- net.ipv4.tcp_syncookies = 1
- net.ipv4.tcp_syn_retries = 5
- net.ipv4.tcp_synack_retries = 2
- net.ipv4.tcp_max_syn_backlog = 4096
- net.ipv4.ip_forward = 0
- net.ipv4.conf.all.forwarding = 0
- net.ipv4.conf.default.forwarding = 0
- net.ipv4.conf.all.accept_source_route = 0
- net.ipv4.conf.default.accept_source_route = 0
- net.ipv4.conf.all.rp_filter = 1
- net.ipv4.conf.default.rp_filter = 1
- net.ipv4.conf.all.accept_redirects = 0
- net.ipv4.conf.default.accept_redirects = 0
- net.ipv4.conf.all.log_martians = 0
- net.ipv4.conf.default.log_martians = 0
- net.ipv4.tcp_fin_timeout = 15
- net.ipv4.tcp_keepalive_time = 300
- net.ipv4.tcp_keepalive_probes = 5
- net.ipv4.tcp_keepalive_intvl = 15
- net.ipv4.conf.all.bootp_relay = 0
- net.ipv4.conf.all.proxy_arp = 0
- net.ipv4.tcp_dsack = 1
- net.ipv4.tcp_sack = 1
- net.ipv4.tcp_fack = 1
- net.ipv4.tcp_timestamps = 1
- net.ipv4.icmp_echo_ignore_all = 0
- net.ipv4.icmp_echo_ignore_broadcasts = 1
- net.ipv4.icmp_ignore_bogus_error_responses = 1
- net.ipv4.ip_local_port_range = 1024 65535
- net.ipv4.tcp_rfc1337 = 1
- net.ipv4.tcp_congestion_control = cubic
- net.ipv4.tcp_window_scaling = 1
- net.ipv4.tcp_mem = 65536 131072 262144
- net.ipv4.udp_mem = 65536 131072 262144
- net.ipv4.tcp_rmem = 8192 87380 16777216
- net.ipv4.udp_rmem_min = 16384
- net.core.rmem_default = 87380
- net.core.rmem_max = 16777216
- net.ipv4.tcp_wmem = 8192 65536 16777216
- net.ipv4.udp_wmem_min = 16384
- net.core.wmem_default = 65536
- net.core.wmem_max = 16777216
- net.core.somaxconn = 32768
- net.core.netdev_max_backlog = 4096
- net.core.dev_weight = 64
- net.core.optmem_max = 65536
- net.ipv4.tcp_max_tw_buckets = 1440000
- net.ipv4.tcp_tw_recycle = 1
- net.ipv4.tcp_tw_reuse = 1
- net.ipv4.tcp_max_orphans = 16384
- net.ipv4.tcp_orphan_retries = 0
- net.ipv4.ipfrag_high_thresh = 512000
- net.ipv4.ipfrag_low_thresh = 446464
- net.ipv4.tcp_no_metrics_save = 1
- net.ipv4.tcp_moderate_rcvbuf = 1
- net.unix.max_dgram_qlen = 50
- net.ipv4.neigh.default.gc_thresh3 = 2048
- net.ipv4.neigh.default.gc_thresh2 = 1024
- net.ipv4.neigh.default.gc_thresh1 = 32
- net.ipv4.neigh.default.gc_interval = 30
- net.ipv4.neigh.default.proxy_qlen = 96
- net.ipv4.neigh.default.unres_qlen = 6
- net.ipv4.tcp_ecn = 1
- net.ipv4.tcp_reordering = 3
- net.ipv4.tcp_retries2 = 15
- net.ipv4.tcp_retries1 = 3" >> /etc/sysctl.conf
- echo "ulimit -Hn 65536
- ulimit -Sn 65535">> /etc/profile
- echo 65536 > /proc/sys/fs/file-max
- echo "* soft nofile 65536" >> /etc/security/limits.conf
- echo "* hard nofile 65536" >> /etc/security/limits.conf
- echo "root soft nofile 65536" >> /etc/security/limits.conf
- echo "root hard nofile 65536" >> /etc/security/limits.conf
- echo "proxy soft nofile 65536" >> /etc/security/limits.conf
- echo "proxy hard nofile 65536" >> /etc/security/limits.conf
- echo "session required pam_limits.so" >> /etc/pam.d/common-session
- modprobe ip_conntrack
- echo "ip_conntrack">> /etc/modules
- echo deb http://kambing.ui.ac.id/debian/ squeeze main non-free contrib | tee -a /etc/apt/sources.list
- echo deb-src http://kambing.ui.ac.id/debian/ squeeze main non-free contrib | tee -a /etc/apt/sources.list
- IPSERV=$(ifconfig eth0 | grep 'inet addr:' | cut -d: -f2 | awk '{ print $1}')
- HOST_NAME=$(hostname -a)
- DOMAIN_NAME=$(hostname -d)
- sleep 2
- apt-get update
- mkdir /cache-1 && chmod 777 /cache-1 && chown proxy:proxy /cache-1
- echo Y | apt-get install squid3 squid3-cgi ccze
- sleep 3
- touch /etc/squid3/denegados.lst
- echo "cracks.st" >> /etc/squid3/denegados.lst
- rm -rf /etc/squid3/squid.conf
- touch /etc/squid3/squid.conf
- echo "#========================== Squid 3.x Conf ===========================#
- # Port Option SQUID 3.x
- #----------------------------------------------------------------------
- http_port 3128 intercept
- visible_hostname www.$DOMAIN_NAME
- icp_port 0
- #----------------------------------------------------------------------
- error_directory /usr/share/squid3/errors/English
- #----------------------------------------------------------------------
- acl denegados url_regex -i "/etc/squid3/denegados.lst"
- #----------------------------------------------------------------------
- # DNS Option
- #----------------------------------------------------------------------
- dns_nameservers 8.8.8.8 8.8.4.4
- dns_retransmit_interval 5 seconds
- dns_timeout 2 minutes
- #----------------------------------------------------------------------
- acl manager proto cache_object
- acl localhost src 127.0.0.1/32 ::1
- acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 ::1
- acl CONNECT method CONNECT
- ####################################################################
- # acl localnet src 10.0.0.0/8 # RFC1918 possible internal network
- # acl localnet src 172.16.0.0/12 # RFC1918 possible internal network
- acl localnet src 192.168.0.0/16 # RFC1918 possible internal network
- ####################################################################
- acl Safe_ports port 21 70 80 210 280 443 488 563 591 631 777 901 81 3128 1025-65535
- acl SSL_ports port 443 563 81
- http_access allow manager localhost
- http_access deny manager all
- http_access deny !Safe_ports
- http_access deny CONNECT !SSL_ports
- http_access allow localhost
- http_access deny denegados
- # Always allow localhost connections
- http_access allow localhost
- # Allow local network(s) on interface(s)
- http_access allow localnet
- # Default block all to be sure
- http_access deny all
- #----------------------------------------------------------------------
- coredump_dir /cache-1
- #----------------------------------------------------------------------
- # Reserved memory for cache
- # It is recommended that you take approx. 5 MB of RAM per 1GB assigned to cache_dir
- #----------------------------------------------------------------------
- cache_mem 125 MB
- #----------------------------------------------------------------------
- # Maximum size of a file in cache memory
- #----------------------------------------------------------------------
- maximum_object_size_in_memory 128 KB
- #----------------------------------------------------------------------
- # Maximum and minimum size of files in the disk cache
- #----------------------------------------------------------------------
- maximum_object_size 30 MB
- minimum_object_size 4 KB
- #----------------------------------------------------------------------
- # Replace cache files when disk cache reach 96% full
- #----------------------------------------------------------------------
- cache_swap_low 92
- cache_swap_high 96
- #----------------------------------------------------------------------
- # Total HD space to be used by the cache, number of folders,
- # Number of subfolders in cache
- # 25000 = 25 GB
- #----------------------------------------------------------------------
- cache_dir aufs /cache-1 25000 25 256
- #----------------------------------------------------------------------
- # Standard update cache
- # 1 month = 10080 mins, 1 day = 1440 mins
- #----------------------------------------------------------------------
- refresh_pattern -i .(gif|png|jp?g|ico|bmp|tiff?)$ 14400 80% 43200 reload-into-ims
- refresh_pattern -i .(swf|htm|html|shtm|shtml|nub)$ 14400 80% 43200 reload-into-ims
- refresh_pattern -i .(rpm|cab|deb|exe|msi|msu|zip|tar|xz|bz|bz2|lzma|gz|tgz|rar|bin|7z|doc?|xls?|ppt?|pdf|nth|psd|sis)$ 14400 80% 43200
- refresh_pattern -i .(avi|iso|wav|mid|mp?|mpe?g?|mpeg|mov|3gp|wm?|flv|x-flv|axd)$ 14400 80% 43200
- refresh_pattern -i .(qtm?|viv|au|ram?|snd|sit|hqx|arj|lzh|lha|txt|rtf|tex|latex|class|js|ico)$ 14400 80% 43200
- refresh_pattern -i \.a[0-9][0-9]$ 14400 80% 43200
- refresh_pattern -i \.r[0-9][0-9]$ 14400 80% 43200
- refresh_pattern -i \.css$ 10 20% 4320
- #----------------------------------------------------------------------
- refresh_pattern ^ftp: 1440 20% 10080
- refresh_pattern ^gopher: 1440 0% 1440
- refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
- refresh_pattern (Release|Package(.gz)*)$ 0 20% 2880
- refresh_pattern . 0 20% 4320
- #----------------------------------------------------------------------
- # Access log for the cache or to SARG
- #----------------------------------------------------------------------
- logfile_rotate 1
- access_log /var/log/squid3/access.log
- access_log /var/log/squid3/error.log
- cache_store_log none
- #----------------------------------------------------------------------
- # other configurations
- #----------------------------------------------------------------------
- half_closed_clients off
- server_persistent_connections off
- client_persistent_connections off
- log_fqdn off
- quick_abort_min 0 KB
- quick_abort_max 0 KB
- quick_abort_pct 100
- max_filedescriptors 65536
- cache_effective_user proxy
- cache_effective_group proxy
- #----------------------------------------------------------------------
- # Keeping small objects in recent memory
- #----------------------------------------------------------------------
- memory_replacement_policy heap GDSF
- cache_replacement_policy heap LFUDA
- #----------------------------------------------------------------------
- # Sites that are denied to store files in squid cache
- #----------------------------------------------------------------------
- acl nocache dstdomain .4shared.com .youtube.com .windowsupdate.com .gl$
- no_cache deny nocache
- #----------------------------------------------------------------------
- # Denying cache for files with extension. *.asx and. *.asf | streaming |
- #----------------------------------------------------------------------
- acl asxf url_regex -i .(asx|asf)$
- cache deny asxf" >> /etc/squid3/squid.conf
- /etc/init.d/squid3 stop
- sleep 1
- squid3 -z
- sleep 1
- /etc/init.d/squid3 restart
- sleep 3
- IPSERV=$(ifconfig eth0 | grep 'inet addr:' | cut -d: -f2 | awk '{ print $1}')
- HOST_NAME=$(hostname -a)
- DOMAIN_NAME=$(hostname -d)
- echo Y | apt-get install sqlite gcc libsqlite3-dev libapache2-mod-php5 php-db libstdc++6 g++ unzip libmysqlclient15-dev libblkid-dev libcurl3-dev lynx ffmpeg lsb-release sudo make php5-dev php-pear apache2-prefork-dev libpcre3-dev
- sleep 3
- wget http://www.raptorcache.com/install/64/raptor64.tar.gz
- cp raptor64.tar.gz /tmp
- tar -xzvf /tmp/raptor64.tar.gz -C /
- rm -rf raptor64.tar.gz
- chmod a+x /usr/sbin/raptor
- mkdir /var/log/raptor && mkdir /var/tmp/raptor && mkdir /var/run/raptor && mkdir /raptorcache &&
- chmod a+rwx /var/log/raptor && chmod a+rwx /var/tmp/raptor && chmod a+rwx /var/run/raptor && chmod a+x /etc/init.d/raptor &&
- chown -R www-data /raptorcache/
- chmod -R 777 /raptorcache/
- umask 000 /raptorcache/
- echo "extension=pdo.so" >> /etc/php5/apache2/php.ini
- echo "vm.swappiness=10" >> /etc/sysctl.conf
- update-rc.d raptor defaults
- sleep 3
- echo "#----------------------------------------------------------------------
- acl raptor_lst url_regex -i \"/etc/raptor/raptor.lst\"
- cache deny raptor_lst
- cache_peer $IPSERV parent 8080 0 proxy-only no-digest
- dead_peer_timeout 2 seconds
- cache_peer_access $IPSERV allow raptor_lst
- cache_peer_access $IPSERV deny all
- #----------------------------------------------------------------------" >> /etc/squid3/squid.conf
- sleep 3
- wget http://www.raptorcache.com/install/clean/64/clean.zip
- unzip clean.zip
- mv clean /etc/raptor/
- chmod 777 /etc/raptor/clean
- rm -rf clean.zip
- wget http://www.raptorcache.com/install/var/pluginmaker.tar.gz
- tar -xzvf pluginmaker.tar.gz
- mv pluginmaker /etc/raptor/
- rm -rf pluginmaker.tar.gz
- touch /etc/raptor/raptor.lst
- wget http://www.raptorcache.com/install/64/plugins/plugins.tar.gz
- tar -xzvf plugins.tar.gz
- mv plugins /etc/raptor/
- rm -rf plugins.tar.gz
- clear
- chmod 777 /etc/raptor/plugins/*
- chmod 777 /etc/raptor/cl0
- # wget -O /usr/lib64/libmysqlclient.so.16 http://www.joemg.host56.com/lib/64bits/libmysqlclient.so.16
- wget -O /usr/lib/libmysqlclient.so.16 http://www.joemg.host56.com/lib/64bits/libmysqlclient.so.16
- # wget http://repo.undip.ac.id/ubuntu//pool/main/m/mysql-5.1/libmysqlclient16_5.1.67-0ubuntu0.11.10.1_amd64.deb
- # dpkg -i libmysqlclient16_5.1.67-0ubuntu0.11.10.1_amd64.deb
- wget http://security.debian.org/debian-security/pool/updates/main/m/mysql-5.1/libmysqlclient16_5.1.66-0+squeeze1_amd64.deb
- dpkg -i libmysqlclient16_5.1.67-0ubuntu0.11.10.1_amd64.deb
- /etc/init.d/raptor start
- chmod 777 /etc/raptor/clean
- sleep 3
- ## Raptor
- # m h dom mon dow user command
- 59 1 * * * root /etc/raptor/./clean 45
- 30 23 * * * root squid3 -k rotate
- * */1 * * * root /etc/raptor/./cl0
- 59 22 * * * root /etc/raptor/rprotate
- */2 * * * * root serv
- */1 * * * * root vnstat -u -i eth0
- sleep 6
- #-------------------------------------------------------------------------------------------
- clear
- echo ""
- echo ""
- echo "+-------------------------------------------------------------+"
- echo "| Installing Mysql |"
- echo "| It is important to set the password of Mysql = raptor |"
- echo "+-------------------------------------------------------------+"
- echo Press enter to continue...
- read -n 0 -ers
- echo Y | apt-get install mysql-server mysql-client php5-mysql &&
- echo Y | aptitude install php5-cgi &&
- wget http://www.raptorcache.com/install/var/raptor.sql
- cp raptor.sql /var/tmp/
- rm -rf raptor.sql
- echo
- mysql -u root -praptor << eof
- CREATE DATABASE raptor;
- eof
- mysql -u root -praptor raptor < /var/tmp/raptor.sql
- sleep 6
- IPSERV=$(ifconfig eth0 | grep 'inet addr:' | cut -d: -f2 | awk '{ print $1}')
- HOST_NAME=$(hostname -a)
- DOMAIN_NAME=$(hostname -d)
- sleep 3
- mv /etc/hosts /etc/hosts_
- touch /etc/hosts
- echo "127.0.0.1 localhost.localdomain localhost
- $IPSERV $HOST_NAME.$DOMAIN_NAME $HOST_NAME
- #
- ::1 localhost ip6-localhost ip6-loopback
- fe00::0 ip6-localnet
- fe00::0 ip6-mcastprefix
- ff02:1 ip6-allnodes
- ff02::2 ip6-allrouters
- ff02::3 ip6-allhosts" >> /etc/hosts
- sleep 3
- mv /etc/network/interfaces /etc/network/interfaces_
- touch
- echo "# This file describes the network interfaces available on your system
- # and how to activate them. For more information, see interfaces(5).
- # The loopback network interface
- auto lo
- iface lo inet loopback
- # The primary network interface
- allow-hotplug eth0
- iface eth0 inet static
- address $IPSERV
- netmask 255.255.255.0
- network 192.168.1.0
- broadcast 192.168.1.255
- gateway 192.168.1.1
- dns-nameservers 127.0.0.1 8.8.8.8 8.8.4.4
- search $HOST_NAME.$DOMAIN_NAME" >> /etc/network/interfaces
- sleep 3
- echo Y | apt-get install bind9 dnsutils bind9-doc resolvconf
- sleep 3
- mv /etc/bind/named.conf.options /etc/bind/named.conf.options_
- wget http://data-servers.googlecode.com/files/named.conf.options
- echo "include "/etc/bind/zones.rfc1918";
- };" > /etc/bind/named.conf.local
- echo "logging {
- category lame-servers {null; };
- category edns-disabled { null; };
- };" >> /etc/bind/named.conf.local
- echo "ServerName $HOST_NAME.$DOMAIN_NAME" >> /etc/apache2/apache2.conf
- mv /etc/apache2/httpd.conf /etc/apache2/httpd.conf_
- mkdir /etc/cacti
- touch /etc/cacti/httpd.conf
- echo "Listen 82
- <VirtualHost *:82>
- DocumentRoot /var/raptor
- ServerName www.$DOMAIN_NAME
- ErrorLog /var/log/virtual82-error_log
- CustomLog /var/log/virtual82-access_log common
- </VirtualHost>
- Listen 84
- <VirtualHost *:84>
- DocumentRoot /var/www/sarg
- ServerName www.$DOMAIN_NAME
- </VirtualHost>" >> /etc/apache2/httpd.conf
- sleep 6
- clear
- sleep 3
- echo "
- # Repository Sarg for debian
- deb http://backports.debian.org/debian-backports squeeze-backports main" >> /etc/apt/sources.list
- apt-get update
- echo Y | aptitude install sarg
- mv /etc/sarg/sarg.conf /etc/sarg/sarg.conf_old
- wget http://www.raptorcache.com/install/var/sarg.conf
- mv sarg.conf /etc/sarg/sarg.conf
- echo "
- # Schedulle of Sarg
- 59 21 * * * root sarg" >> /etc/crontab
- mkdir /var/www/sarg/
- sarg -x
- sleep 1
- wget http://joemg.host56.com/wpanel/raptor.tar.gz
- tar -xzvf raptor.tar.gz
- mv raptor /var/
- rm -rf raptor.tar.gz
- clear
- chmod 777 /var/raptor/*
- chmod 777 /var/raptor/mail/*
- chmod 777 /etc/raptor/raptor.lst
- chmod 777 /etc/squid3/squid.conf
- chmod 777 /etc/raptor/raptor.conf
- chmod 777 /etc/squid3/denegados.lst
- chmod 777 /etc/network/interfaces
- chmod 777 /etc/resolv.conf
- clear
- sleep 1
- echo Y | apt-get install snmpd
- mv /etc/snmp/snmpd.conf /etc/snmp/snmpd.conf_
- touch /etc/snmp/snmpd.conf
- echo "rocommunity public
- syslocation "PDC, Proxy DataCenter"
- syscontact admin@$DOMAIN_NAME" >> /etc/snmp/snmpd.conf
- rm -rf /etc/default/snmpd
- wget http://www.raptorcache.com/install/var/snmpd
- mv snmpd /etc/default/
- /etc/init.d/snmpd restart
- sleep 3
- clear
- echo ""
- echo ""
- echo "+--------------------------------------------------------------------------------------+"
- echo "| Installing Cacti |"
- echo "| Choose Apache2 as web server and then enter the password Mysql(raptor) |"
- echo "+--------------------------------------------------------------------------------------+"
- echo Press enter to continue...
- read -n 0 -ers
- echo Y | apt-get install cacti
- wget http://www.raptorcache.com/install/var/raptor-cacti.sql
- mv raptor-cacti.sql /var/tmp/
- mysql -u root -praptor cacti < /var/tmp/raptor-cacti.sql
- sleep 1
- mv /etc/cacti/apache.conf /etc/cacti/apache.conf_
- touch /etc/cacti/apache.conf
- echo "Alias /graphcacti /usr/share/cacti/site
- <Directory /usr/share/cacti/site>
- Options +FollowSymLinks
- AllowOverride None
- order allow,deny
- allow from all
- AddType application/x-httpd-php .php
- <IfModule mod_php5.c>
- php_flag magic_quotes_gpc Off
- php_flag short_open_tag On
- php_flag register_globals Off
- php_flag register_argc_argv On
- php_flag track_vars On
- # this setting is necessary for some locales
- php_value mbstring.func_overload 0
- php_value include_path .
- </IfModule>
- DirectoryIndex index.php
- </Directory>" >> /etc/cacti/apache.conf
- /etc/init.d/apache2 restart
- echo Y | apt-get install vnstat
- vnstat -u -i eth0
- echo Y | apt-get install smartmontools lvm2 hdparm
- sleep 1
- echo Y | apt-get install lm-sensors
- clear
- echo ""
- echo ""
- echo "+---------------------------------------------+"
- echo "| temperature sensors Installation |"
- echo "+---------------------------------------------+"
- echo Press enter to continue...
- read -n 0 -ers
- sensors-detect
- service module-init-tools restart
- /etc/init.d/module-init-tools restart
- echo "
- # DNS Cache
- */2 * * * * root rndc dumpdb" >> /etc/crontab
- clear
- wget http://www.raptorcache.com/install/var/upload.cgi
- mv upload.cgi /usr/lib/cgi-bin/
- chmod 777 /usr/lib/cgi-bin/upload.cgi
- # echo Y | apt-get --purge remove sudo
- # echo Y | apt-get install sudo
- # echo "www-data ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
- # chmod 777/etc/sudoers
- clear
- echo | pecl install apc --with-apxs='/usr/bin/apxs2'
- echo "Alias /var/raptor/apc /usr/share/php/apc.php
- <Directory /usr/share/php/apc.php>
- Options +FollowSymLinks
- AllowOverride None
- order allow,deny
- allow from all
- AddType application/x-httpd-php .php
- <IfModule mod_php5.c>
- php_flag magic_quotes_gpc Off
- php_flag short_open_tag On
- php_flag register_globals Off
- php_flag register_argc_argv On
- php_flag track_vars On
- # this setting is necessary for some locales
- php_value mbstring.func_overload 0
- php_value include_path .
- </IfModule>
- DirectoryIndex index.php
- </Directory>" >> /etc/apache2/conf.d/apc.conf
- echo "extension=apc.so" >> /etc/php5/conf.d/apc.ini
- echo "; APC Configuration
- apc.enabled = 1
- ; Memory allocated to APC. Use Munin or APC Info to see if more is needed.
- apc.shm_size=32M
- ; rfc1867 allow file upload progression display.
- apc.rfc1867 = on" >> /etc/php5/conf.d/apc-config.ini
- clear
- rm -rf /var/tmp/*
- touch /sbin/tail-squid /sbin/tail-raptor
- echo "tail -f /var/log/squid3/access.log | ccze" >> /sbin/tail-squid
- echo "tail -f /var/log/squid3/access.log | ccze" >> /sbin/tail-raptor
- chmod 755 /sbin/tail-raptor /sbin/tail-squid
- # chown root:root /sbin/tail-raptor /sbin/tail-squid
- iptables -F
- iptables -X
- iptables -t nat -F
- iptables -t nat -X
- iptables -t mangle -F
- iptables -t mangle -X
- iptables -P INPUT ACCEPT
- iptables -P OUTPUT ACCEPT
- iptables -A INPUT -s 192.168.0.0/16 -m state --state NEW -p tcp --dport 53 -j ACCEPT
- iptables -A INPUT -s 192.168.0.0/16 -m state --state NEW -p udp --dport 53 -j ACCEPT
- iptables -A INPUT -p tcp -s 192.168.0.0/16 --dport 80 -j ACCEPT
- iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 3128
- iptables-save -c > /etc/iptables.up.rules
- echo ""
- echo "+==========================================================================+"
- echo "| Installation Complete |"
- echo "| Reboot your system to complete the installation |"
- echo "+==========================================================================+"
- echo ""
- # Copy stop sini
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement