Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- STEP by STEP Raptor on Debian 6.06 AMD 64
- ip 192.168.3.2
- name server 192.168.3.1
- hostname proxy
- domain local.net.work
- HD 80 G
- /swap 4 G
- / 6 G B
- /cache-1 40 G noatime /dev/sda5
- /raptorcache 25 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
- 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
- apt-get -y update
Advertisement
Add Comment
Please, Sign In to add comment