This is default featured post 1 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

This is default featured post 2 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

This is default featured post 3 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

This is default featured post 4 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

This is default featured post 5 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

Rabu, 29 Februari 2012

setting proxy pad server

1. langkah awal setelah melakukan penginstalan debian yaitu melakukan settingan IP
    nano /etc/network/interfaces
    auto eth0
    iface eth0 inet static
        address 10.5.50.27
        netmask 255.255.255.0
        gateway 10.5.50.1

    auto eth1
    iface eth1 inet static
        address 192.168.50.27
        netmask 255.255.255.0

    ip di atas tergantung kebutuhan semata dan ip di atas menggunakan /24

2. setelah melakukan setingan pada ip, langkah selanjutnya yaitu merestart ip dengan cara:
    /etc/init.d/networking restart

3. Selanjutny mengaktifkan ipforward dengan cara
    nano /etc/sysctl.conf
    hapus # pada #net.ipv4.ip_forward=1
4. aktifkan ip_forward dengan cara
    nano /proc/sys/net/ipv4/ip_forward
    ubah angka 0 menjadi angka 1 lalu save

5. setelah itu lakukan perintah sharing seperti di bawah ini:
    iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

6. buka squid.conf dengan cara nano /etc/squid/squid.conf lalu setting seperti langkah di bawah:
    1.ctrl w dan tuliskan insert lalu tekan enter
        hapus tanda # pada #allow localnet
        beri tanda # pada http_access deny all
    2.cache name dengan cara
        cachemgr   
    3.ctrl W tuliskan port 3128,
        tambahkan transparent di http_port 3128
    4.ctrl W tuliskan cache_mem, hapus tanda # ganti angka 8 menjadi 32
    5.ctrl W tuliskan acl CONNECT, buat aturan acl contoh:
    acl blokir url_regex -i "/etc/squid/blokir.txt"
    http_access deny blokir

7. buat file blokir.txt di direktori "/etc/squid"

8. selanjutnya lakukan perintah membelokkan ke port 3128 dengan cara:
    iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-ports 3128

9. setelah itu save setingan ip tables dengan cara :
    nano /etc/rc.local
    echo 1 > /proc/sys/net/ipv4/ip_forward
    iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
    iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-ports 3128

Share

Twitter Delicious Facebook Digg Stumbleupon Favorites More