logotype
  • Home
  • News
  • Product dan Services
    • Zimbra Mail Server
      • Excellent Managed Services Email
      • Lisensi Zimbra NE
      • Support dan Maintenance
      • MX Backup & ASAV
      • SMTP Relay
    • Proxmox
      • Proxmox Virtual Environment
      • Proxmox Mail Gateway
      • Proxmox Backup Server
    • XCP-ng
    • Red Hat Enterprise Linux
    • Ubuntu Pro
    • Nakivo Backup & Recovery
    • Vinchin Backup & Recovery
    • Lisensi
      • Proxmox Mail Gateway
      • Lisensi Zimbra Network Edition
      • Lisensi Nakivo Backup & Recovery
      • Subscription Zoom
    • Buku Training Mandiri
      • Buku Training Mandiri
      • Ebook Training Mandiri
    • Cloud & Hosting
      • Excellent Managed Services Email Server
      • MX Backup/Anti Spam & Anti Virus
      • SMTP Relay & Mail Gateway
      • Excellent Mail Hosing
    • SSL Sertifikat
  • Training
  • Insight
  • About Us
  • Contacts
logotype
logotype
  • Home
  • News
  • Product dan Services
    • Zimbra Mail Server
      • Excellent Managed Services Email
      • Lisensi Zimbra NE
      • Support dan Maintenance
      • MX Backup & ASAV
      • SMTP Relay
    • Proxmox
      • Proxmox Virtual Environment
      • Proxmox Mail Gateway
      • Proxmox Backup Server
    • XCP-ng
    • Red Hat Enterprise Linux
    • Ubuntu Pro
    • Nakivo Backup & Recovery
    • Vinchin Backup & Recovery
    • Lisensi
      • Proxmox Mail Gateway
      • Lisensi Zimbra Network Edition
      • Lisensi Nakivo Backup & Recovery
      • Subscription Zoom
    • Buku Training Mandiri
      • Buku Training Mandiri
      • Ebook Training Mandiri
    • Cloud & Hosting
      • Excellent Managed Services Email Server
      • MX Backup/Anti Spam & Anti Virus
      • SMTP Relay & Mail Gateway
      • Excellent Mail Hosing
    • SSL Sertifikat
  • Training
  • Insight
  • About Us
  • Contacts
logotype
  • Home
  • News
  • Product dan Services
    • Zimbra Mail Server
      • Excellent Managed Services Email
      • Lisensi Zimbra NE
      • Support dan Maintenance
      • MX Backup & ASAV
      • SMTP Relay
    • Proxmox
      • Proxmox Virtual Environment
      • Proxmox Mail Gateway
      • Proxmox Backup Server
    • XCP-ng
    • Red Hat Enterprise Linux
    • Ubuntu Pro
    • Nakivo Backup & Recovery
    • Vinchin Backup & Recovery
    • Lisensi
      • Proxmox Mail Gateway
      • Lisensi Zimbra Network Edition
      • Lisensi Nakivo Backup & Recovery
      • Subscription Zoom
    • Buku Training Mandiri
      • Buku Training Mandiri
      • Ebook Training Mandiri
    • Cloud & Hosting
      • Excellent Managed Services Email Server
      • MX Backup/Anti Spam & Anti Virus
      • SMTP Relay & Mail Gateway
      • Excellent Mail Hosing
    • SSL Sertifikat
  • Training
  • Insight
  • About Us
  • Contacts
Blog Post
squid-cache_logo
BlogBlog & Resources

Instalasi dan Konfigurasi Squid Reverse Proxy berbasis SUSE Linux Enterprise Server

September 10, 2014by Maryadi Arismunandar

INFORMASI

Panduan ini menggunakan sistem operasi SUSE Linux Enterprise Server 11 SP3 dalam bentuk Minimal Server Appliance (JeOS). Aplikasi Squid yang digunakan sebagai reverse Proxy adalah versi 2.7

APA ITU REVERSE PROXY ?

Proxy yang berada di depan Web Server. Digunakan sebagai cache atau bisa juga sebagai load balancer. Jadi fungsinya adalah untuk meringankan kerja dari web server. Karena isi halaman dari web tersebut telah di cache di proxy. Sehingga beban CPU Web Server menjadi lebih berkurang.

DAFTAR IP SERVER

[code]192.168.1.201 : IP Squid Proxy
192.168.1.28 : IP Domain contoh1.com
192.168.1.254 : IP Domain contoh2.net
[/code]

INSTALASI SQUID

Jalankan perintah berikut untuk instalasi Squid :

[code]zypper in squid[/code]

KONFIGURASI SQUID

Buka file squid.conf dan sesuaikan dengan contoh konfigurasi dibawah ini

[code] cp /etc/squid/squid.conf /etc/squid/squid.conf.back
vi /etc/squid/squid.conf
[/code]

Tambahkan atau sesuaikan konfigurasi /etc/squid/squid.conf dan cari bagian http_port dan tambahkan “http_port 80 vhost vport” :

[code] TAG : http_port
http_port 80 vhost vport
[/code]

Kemudian tambahkan baris berikut ini.

[code] cache_peer 192.168.1.28 parent 80 0 no-query originserver name=server1
cache_peer_domain server1 contoh1.com
cache_peer 192.168.1.254 parent 80 0 no-query originserver name=server2 cache_peer_domain server2 contoh2.net

[/code] Sesuaikan nama domain dan IP Web Server anda.

Lalu tambahkan baris di ACL buat masing-masing domain :

[code] acl valid_domains dstdomain .contoh1.com
acl valid_domains dstdomain .contoh2.net
[/code]

Tambahan konfigurasi dibawah ini agar Reverse Proxy dapat berfungsi maksimal

[code] ## TAGĀ : cache_mem (1/4 RAM fisik)
cache_mem 512 MB

## TAG: maximum_object_size_in_memory
maximum_object_size_in_memory 1024 KB

## TAGĀ : cache_dir
cache_dir ufs /cache 40960 32 256

## TAG : http_access
http_access allow valid_domains
http_access allow all

## TAG: http_reply_access
http_reply_access allow all

## TAG: icp_access
icp_access allow all
[/code]

Keterangan : /cache adalah folder tempat penyimpanan cache, 40960 adalah HDD untuk cache sebesar 40 GB (disesuaikan dengan jumlah cache_mem)

BUAT FOLDER CACHE DAN RESTART SQUID

[code] mkdir /cache
chown squid.nobody /cache/
service squid restart
[/code]

CARA TESTING KONFIGURASI

Arahkan IP Address nama domain contoh1.com dan contoh2.net pada IP Proxy (bisa dengan cara menambahkan-nya pada file /etc/hosts). Akses nama domain contoh1.com dan contoh2.net pada Web Browser dan seharusnya menampilkan halaman domain masing-masing.

 

Referensi :

http://blog.wains.be/2009/07/07/squid-as-a-reverse-proxy-howto/”

Proxy Reverse Proxy Squid SUSE Linux
Prev

Instalasi dan Konfigurasi Replikasi MySQL Master to Master

Next

Instalasi dan Konfigurasi OpenVPN Server pada SUSE

Related Posts

Screenshot-2019-01-22-20.50.38.png
BlogHeadline
January 25, 2019

Tips FIRE : Compound Interest, Compound Investment, Investasi Majemuk

Read more
vavai-hades-canyon1-1024×768.jpg
BlogVMWare
February 18, 2019

Intel NUC Hades Canyon untuk Simulasi VMware vSphere, Kerja dan Main Games

Read more
ResourceZimbra
May 26, 2012

Konfigurasi DKIM/DomainKeys Multi Domain pada Zimbra Mail Server

Read more

Leave a Reply

Your email address will not be published. Required fields are marked *

Search
Recent Post
  • Zimbra Daffodil 10.1.16 Rilis: Modern Web App Makin Cerdas, Backup Lebih Hemat Storage, dan Peningkatan Keamanan
  • Live Migration vs High Availability di XCP-ng: Perbedaan dan Skenario Penggunaan
  • Informasi untuk Pelanggan PT. Excellent Infotama Kreasindo : Penyesuaian Kebijakan Masa Berlaku Sertifikat SSL/TLS Menuju Standar Keamanan Global
  • Excellent Infotama Kreasindo: Lingkungan Kerja yang Memberi Ruang untuk Bertumbuh
  • Segudang Benefit dari Dana Buffer: Ketika Kebijakan Berangkat dari Pengalaman
Categories
Archives
Featured image: Instalasi dan Konfigurasi Squid Reverse Proxy berbasis SUSE Linux Enterprise Server
Get in Touch

KATEGORI

  • Home
  • Artikel
  • Jadwal
  • Event
  • Berita

LAYANAN

  • Zimbra Mail Server
  • Ubuntu
  • XCP-ng
  • Vinchin
  • ASAV
  • Proxmox
  • RHEL
  • Nakivo
  • SMTP Relay
  • SSL Certificate

KONTAK KAMI

PT. Excellent Infotama Kreasindo, Premier Serenity Blok J12, Jl. KH. Agus Salim No. 40E, Bekasi Jaya, Bekasi Timur, Bekasi 17112, Jawa Barat, Indonesia

TENTANG KAMI

PT. Excellent Infotama Kreasindo merupakan entitas bisnis yang fokus pada layanan komputerisasi seperti implementasi sistem, konsultasi, training/workshop, dan maintenance sistem, terutama migrasi dari sistem Windows ke Linux. more…