Kali ini Kita Coba Share Lusca Di Ubuntu Server...
Ok... Langsung Aja Gan...Paritisi Unix Di Hdd 80Gb
#======================================================================================#
# Step 1. Install Ubuntu Server 10.04 and use manual partition
#======================================================================================#
Type Size Location FileSystem Mount BootFlag Mount Option
Primary 10 GB Beginning ext4 / noatime [*]
Primary 1024 MB Beginning ext4 /boot on noatime [*]
Primary 2 GB Beginning swap swap
Primary 12 GB Beginning btrfs /cache noatime [*]
#======================================================================================#
# Paket Install yang di butuhkan
#======================================================================================#
root@proxy:~# apt-get update
root@proxy:~# apt-get install squid -y
root@proxy:~# apt-get install squid squidclient squid-cgi -y
root@proxy:~# apt-get install gcc -y
root@proxy:~# apt-get install build-essential -y
root@proxy:~# apt-get install sharutils -y
root@proxy:~# apt-get install ccze -y
root@proxy:~# apt-get install libzip-dev -y
root@proxy:~# apt-get install automake1.9 -y
## direktori / (drive root)
cd /
root@proxy:~# wget http://lahuddu.zz.mu/ivanez/LUSCA_FMI.tar.gz
root@proxy:~# tar xzvf LUSCA_FMI.tar.gz
root@proxy:~# cd LUSCA_FMI
trus compile file LUSAC_FMI
## direktori /var/www
#======================================================================================#
# Perintah Install Compile File LUSCA_FMI
#======================================================================================#
./configure --prefix=/usr --exec_prefix=/usr --bindir=/usr/sbin --sbindir=/usr/sbin --libexecdir=/usr/lib/squid --sysconfdir=/etc/squid --localstatedir=/var/spool/squid --datadir=/usr/share/squid --enable-http-gzip --enable-async-io=24 --with-aufs-threads=24 --with-pthreads --enable-storeio=aufs --enable-linux-netfilter --enable-arp-acl --enable-epoll --enable-removal-policies=heap --with-aio --with-dl --enable-snmp --enable-delay-pools --enable-htcp --enable-cache-digests --disable-unlinkd --enable-large-cache-files --with-large-files --enable-err-languages=English --enable-default-err-language=English --with-maxfd=65536 && make && make install
#======================================================================================#
# Setelah selesai anda STOP squidnya.
# Tapi sebelum anda stop squidnya anda ganti dulu isi yang ada di /etc/init.d/squid dengan perintah :
#======================================================================================#
root@proxy:~# sudo nano /etc/init.d/squid
#======================================================================================#
Download File
#======================================================================================#
# Pada Terminal Ketik "/etc/init.d/squid stop".
# Kemudian Jalankan Winscp dan edit squid.conf di folder /etc/squid/squid.conf
#======================================================================================#
Download File
#======================================================================================#
# Buat listing file store url
touch /etc/squid/storeurl.pl
chmod +x /etc/squid/storeurl.pl
# Buka storeurl.pl dengan winscp dan isikan File yg ada di bawah ini:
#======================================================================================#
Download File
#======================================================================================#
# Restart Komputer Kamu
# Pada putty ketik " /etc/init.d/squid stop "
# Masih pada PUTTY, copy-paste perintah di bawah satu-persatu
root@proxy:~# chown proxy:proxy /cache
chmod 777 /cache
chown proxy:proxy /etc/squid/storeurl.pl
chmod 777 /etc/squid/storeurl.pl
service squid stop
squid -f /etc/squid/squid.conf -z
/etc/init.d/squid start
/etc/init.d/squid restart
# Restart Komputer Kamu
# Monitoring Squid access.log :
root@proxy:~# tail -f /var/log/lusca/access.log | ccze
#======================================================================================#
PAKET INSTALL TAMBAHAN
#======================================================================================#
Installing Apache2 With PHP5 And MySQL Support On Ubuntu 10.04:
#======================================================================================#
#======================================================================================#
safeSearch
#======================================================================================#
cd /etc/squid/
wget http://lahuddu.zz.mu/ivanez/Linux32_FMIsafeSearch.tar.bz2
tar xvf Linux32_FMIsafeSearch.tar.bz2
chmod +x Linux32_FMIsafeSearch
Lalu Edit squid.conf pastekan code berikut
include /etc/squid/rewriter.conf
#======================================================================================#
install webmin in Ubuntu 10.04 Lucid Lynx.
#======================================================================================#
1. wget -c http://www.webmin.com/download/deb/webmin-current.deb
File will be named “webmin-current.deb” in your current working directory as opposed to a filename containing the specific version number of webmin.
2. sudo dpkg -i webmin-current.deb
This command will generate a number of errors. Ignore them.
3. sudo apt-get -f install
This command will install the missing dependencies, recompile, and install webmin.
Now, login to your webmin server. https://[serverIP]:10000
#======================================================================================#
iptables –t nat –A POSTROUTING –o eth0 –j MASQUERADE
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 3128
#======================================================================================#
Sekarang setting mikrotiknya..
Langsung Aja Gan Ke Mikrotik Cli Bag (2)................
Semoga Bermanfaar Gan.....
----------->><<---------







1 komentar:
maju terus banggg............
Posting Komentar
Squid Tuning Off By Lahuddu