Onfigurasi mikrotikdansquidproxyubuntusejajarclient

391 views

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
391
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
32
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Onfigurasi mikrotikdansquidproxyubuntusejajarclient

  1. 1. Konfigurasi Mikrotik dan Squid Proxy Ubuntu Sejajar ClientTopologi Jaringan and HardwareHardware :- Kabel LAN- Modem ADSL- Mikrotik RB750- PC Ubuntu Squid Proxy- Switch- PC ClientKoneksi port :Port 1 di MT RB750 > port LAN di ModemPort 2 di MT RB750 > port SwitchPort eth0 di Ubuntu Squid > port SwitchKonfigurasi JaringanIP Squid : 192.168.0.4/24IP Client : 192.168.0.0/24IP Modem : 192.168.1.1/24IP MT RB750 : 192.168.0.1/24
  2. 2. Konfigurasi Squid di Ubuntu 10.4Install Squid di ubuntu- masuk ke terminal- ketik sudo su , isi password ubuntu anda- ketik sudo apt-get update- ketik sudo apt-get install squid- Do you want continue [Y] Y- apt-get install squid squidclient squid-cgi- apt-get install cczeMembuat Directory cache- mkdir /cache1 && mkdir /cache2 && mkdir /cache3 && mkdir /cache4- touch /var/log/squid/access.log- touch /var/log/squid/cache.logMengaktifkan directory cache- chown -R proxy.proxy /cache1- chown -R proxy.proxy /cache2- chown -R proxy.proxy /cache3- chown -R proxy.proxy /cache4- chown -R proxy.proxy /var/log/squid/access.logEdit Squid.conf- gedit /etc/squid/squid.confSilahkan download file Squid.conf disini (sesuaikan dengan jaringan,memory,hdd dari PC Proxy anda)Pengecekan file Squid.conf- squid -k parsemembuat direktori swap- squid -z- squid -DFYcek squid apakah sudah berfungsi- ps -ax|grep squidReboot Ubuntu SquidJalankan perintah terakhir di terminaliptables -t nat -A POSROUTING -j MASQUERADE
  3. 3. Konfigurasi Tambahan di Mikrotik/ip firewall nat chain=dstnat in-interface=ToSwitch src-address=!192.168.0.4 protocol=tcp dst-port=80action=dst-nat to-addresses=192.168.0.4 to-ports=8080/ip firewall nat chain=srcnat out-interface=ToSwitch src-address=192.168.0.0/24 protocol=tcpaction=src-nat to-addresses=192.168.0.1 to-ports=0-65535Cek Apakah anda sudah terkoneksi dengan ProxyBuka Browser dan masuk ke http://www.lagado.com/proxy-test

×