Difference between revisions of "Instalasi Squid"
Jump to navigation
Jump to search
Onnowpurbo (talk | contribs) |
Onnowpurbo (talk | contribs) |
||
(17 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | + | Pastikan DNS berjalan dengan baik, cek | |
− | + | dig www.detik.com | |
− | Edit | + | Edit |
− | + | vi /etc/resolv.conf | |
− | + | nameserver 8.8.8.8 | |
− | + | Instalasi [[Squid]] | |
− | acl | + | apt -y install squid |
− | http_access allow | + | |
+ | Edit konfigurasi [[squid]] agar [[komputer]] di [[LAN]] kita dapat menggunakan [[Squid]] tersebut | ||
+ | |||
+ | vi /etc/squid/squid.conf | ||
+ | |||
+ | Beberapa contoh setting yang penting | ||
+ | |||
+ | # visible_hostname 192.168.0.1 # IP address server Squid anda | ||
+ | |||
+ | # Example rule allowing access from your local networks. | ||
+ | # Adapt to list your (internal) IP networks from where browsing | ||
+ | # should be allowed | ||
+ | acl localnet src 10.0.0.0/8 # RFC1918 possible internal network | ||
+ | acl localnet src 172.16.0.0/12 # RFC1918 possible internal network | ||
+ | acl localnet src 192.168.0.0/16 # RFC1918 possible internal network | ||
+ | http_access allow localnet | ||
Restart Squid | Restart Squid | ||
− | + | service squid restart | |
+ | /etc/init.d/squid restart | ||
Line 26: | Line 42: | ||
Port 3128 | Port 3128 | ||
+ | ===Setup Firefox=== | ||
+ | |||
+ | Preferences > Advanced > Network > Settings > | ||
+ | Manual Proxy Configuration > | ||
+ | IP address 3128 | ||
+ | |||
+ | ==Referensi== | ||
+ | |||
+ | * http://www.squid-cache.org/ | ||
+ | * http://118.96.136.211/onfile/index.php?dir=Video+Pembelajaran/Squid | ||
+ | * http://lqman.wordpress.com/2007/11/09/konfigurasi-sederhana-squid-proxy-server/#comment-332 | ||
+ | ===Download Video Pembelajaran Squid=== | ||
+ | |||
+ | wget --no-parent -r -p -U Mozilla http://118.96.136.211/onfile/index.php?dir=Video+Pembelajaran/Squid | ||
==Referensi Tambahan== | ==Referensi Tambahan== | ||
Line 33: | Line 63: | ||
* [[Script NAT Proxy]] | * [[Script NAT Proxy]] | ||
* [[Proxy Telkom]] | * [[Proxy Telkom]] | ||
+ | * [[Tip Membangun Server Sendiri]] | ||
+ | |||
+ | ==Pranala Menarik== | ||
+ | |||
+ | * [[Lusca]] | ||
+ | * [[Delay Pool Squid untuk Managed Download Manager]] | ||
+ | |||
+ | |||
+ | [[Category: Linux]] | ||
+ | [[Category: Proxy]] | ||
+ | [[Category: Internet]] |
Latest revision as of 08:30, 8 May 2020
Pastikan DNS berjalan dengan baik, cek
dig www.detik.com
Edit
vi /etc/resolv.conf
nameserver 8.8.8.8
Instalasi Squid
apt -y install squid
Edit konfigurasi squid agar komputer di LAN kita dapat menggunakan Squid tersebut
vi /etc/squid/squid.conf
Beberapa contoh setting yang penting
# visible_hostname 192.168.0.1 # IP address server Squid anda # Example rule allowing access from your local networks. # Adapt to list your (internal) IP networks from where browsing # should be allowed acl localnet src 10.0.0.0/8 # RFC1918 possible internal network acl localnet src 172.16.0.0/12 # RFC1918 possible internal network acl localnet src 192.168.0.0/16 # RFC1918 possible internal network http_access allow localnet
Restart Squid
service squid restart /etc/init.d/squid restart
Setup Client
Tidak banyak yang perlu di set di sisi Client. Arahkan proxy di sisi Client ke
IP address Server Squid Port 3128
Setup Firefox
Preferences > Advanced > Network > Settings > Manual Proxy Configuration > IP address 3128
Referensi
- http://www.squid-cache.org/
- http://118.96.136.211/onfile/index.php?dir=Video+Pembelajaran/Squid
- http://lqman.wordpress.com/2007/11/09/konfigurasi-sederhana-squid-proxy-server/#comment-332
Download Video Pembelajaran Squid
wget --no-parent -r -p -U Mozilla http://118.96.136.211/onfile/index.php?dir=Video+Pembelajaran/Squid