Langkah Konfigurasi Proxy Server [PDF]

  • 0 0 0
  • Suka dengan makalah ini dan mengunduhnya? Anda bisa menerbitkan file PDF Anda sendiri secara online secara gratis dalam beberapa menit saja! Sign Up
File loading please wait...
Citation preview

LANGKAH KONFIGURASI PROXY SERVER 1. Install package Proxy a. Apt-get install squid 2. Konfigurasi Proxy Server a. Nano /etc/squid/squid.conf i. Cari tulisan http_port 3128 lalu tambahkan transparent di akhir. Dengan cara tekan tombol ctrl+w



ii.



Cari, temukan "acl CONNECT method CONNECT", lalu dibawahnya tambahkan acl situs dstdomain “etc/squid/situs” no_cache deny situs http_access deny situs acl tkj src 192.168.1.0/24 http_access allow tkj cache_mgr [email protected] visible_hostname www.dendy.com



iii.



v.



Close dan save. Lalu Buka file Sysctl.conf



1.



Nano /etc/sysctl.conf



2.



Scroll ke bawah sedikit, cari "#net.ipv4.ip_forward=1", hilangkan tanda pagar disampingnya (#). Close & save



Buka file rc.local



nano /etc/rc.local  di atas "exit 0" tambahkan :



iptables -t nat -A POSTROUTING -o eth0 -i masquerade iptables -t nat -A PREROUTING -s 192.168.1.0/24 -p tcp -–dport 80 -j REDIRECT --to-port 3128 vi.



Menjalankan proxy servernya dengan perintah 1. Nano /etc/squid/situs 2. Squid –z 3. Service squid restart 4. Reboot



Langkah yang terakhir seting proxy di masing –masing browser agar bisa berjalan proxy servernya.