Transcript
Page 1: konfigurasi squid server wheezy

Oleh . Sutrisno Edy P, S.Kom

Page 2: konfigurasi squid server wheezy

Konfigurasi Network #nano /etc/network/interfaces (Enter) #The primary network interface

allow-hotplug eth0 (INTERNET)iface eth0 inet static address 192.168.3.11 netmask 255.255.255.0 network 192.168.3.0 broadcast 192.168.3.255 gateway 192.168.3.1 allow-hotplug eth1 (LOKAL) iface eth1 inet static address 192.168.10.1 netmask 255.255.255.0 network 192.168.10.0 broadcast 192.168.10.255

Ctrl + O(Enter) dan Ctrl + X (Enter) # /etc/init.d/networking restart (Enter) Tes ping ke IP Modem

Page 3: konfigurasi squid server wheezy

Konfigurasi Network

# nano /etc/resolv.conf (Enter)nameserver 8.8.8.8nameserver 8.8.4.4

Ctrl + O(Enter) dan Ctrl + X (Enter) # /etc/init.d/networking restart (Enter)

Tes ping ke Google.com

Page 4: konfigurasi squid server wheezy

Konfigurasi ipforward

aktifkan ipforward ke computer client # nano /etc/sysctl.conf (Enter)

#net.ipv4.ip_forward=1 (hilangkan tanda #)

net.ipv4.ip_forward=1

Ctrl + O(Enter) dan Ctrl + X (Enter) # echo 1 > /proc/sys/net/ipv4/ip_forward (Enter) # cat /proc/sys/net/ipv4/ip_forward (Enter)

jika hasilnya 1 berarti sukses

Page 5: konfigurasi squid server wheezy

konfigurasi IPTABLES # iptables –t nat –A POSTROUTING –o eth0 –j

MASQUERADE (Enter) # iptables-save (Enter) # nano /etc/rc.local (Enter)

echo 1 > /proc/sys/net/ipv4/ip_forward iptables –t nat –A POSTROUTING –o eth0 –j MASQUERADE

Ctrl + O(Enter) dan Ctrl + X (Enter) # init 6 (Enter)

Page 6: konfigurasi squid server wheezy

Konfigurasi SQUID

Install paket dari squid server dengancara (apt-get )# Apt-get install squid[y]Masukkan paket cd

Page 7: konfigurasi squid server wheezy

Konfigurasi SQUID # nano /etc/squid/squid.conf

Caritulisan http_port 3128 (dengan cara ctrl+w tulis http_port 3128)

Tambahkan kata transparent

Cari baris acl localnet seperti dibawah ini

Lalu rubahlah menjadi seperti dibawah ini

Page 8: konfigurasi squid server wheezy

Konfigurasi SQUID Cari baris http_access allow localnet,http_access allow localhost,

laluhilangkantanda # didepannya

Cari baris cache_mgr

Lalu rubahlah menjadi seperti dibawah ini

Page 9: konfigurasi squid server wheezy

Konfigurasi SQUID Cari baris visible_hostname seperti dibawah ini

Ganti baris #none menjadi seperti dibawah ini

Page 10: konfigurasi squid server wheezy

Konfigurasi SQUID Cari baris acl_CONNECT seperti dibawah ini

Tambahkan baris script hingga menjadi seperti ini

Page 11: konfigurasi squid server wheezy

Konfigurasi blok situs

# nano /etc/squid/url www.facebook.com ww.youtube.com

# nano /etc/squid/keyfacebookyoutube

Page 12: konfigurasi squid server wheezy

Restart squid

Setelah itu restart squid /etc/init.d/squid restart

Page 13: konfigurasi squid server wheezy

Konfigurasi CLIENT

Page 14: konfigurasi squid server wheezy

Ujicoba di Client

Buka ie / Mozila Tes koneksi web blok

Page 15: konfigurasi squid server wheezy

hasil

Page 16: konfigurasi squid server wheezy

Merubah WEB Proxy Nano /user/share/squid/error/engglis/err_access_denied Ctrl+o & ctrl+x Service squid restart Tes koneksi web blok


Top Related