0% found this document useful (0 votes)
41 views1 page

Setting Router Install Squid Proxy Dns Server Membuat File Reserve

1. The document discusses setting up a Squid proxy server, DNS server, and file reservations on a Debian system. It provides instructions for installing and configuring Squid, Bind9, and modifying configuration files. 2. Specific steps include installing Squid and Bind9, configuring the Squid and DNS configuration files, modifying firewall rules and the rc.local file, adding domain blocks to Squid, and testing that the Squid and DNS servers are running correctly. 3. Files modified or created include squid.conf, named.conf.local, db.local, db.debian, rc.local, and the domain block file url. The document provides detailed commands and configuration options to set
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
41 views1 page

Setting Router Install Squid Proxy Dns Server Membuat File Reserve

1. The document discusses setting up a Squid proxy server, DNS server, and file reservations on a Debian system. It provides instructions for installing and configuring Squid, Bind9, and modifying configuration files. 2. Specific steps include installing Squid and Bind9, configuring the Squid and DNS configuration files, modifying firewall rules and the rc.local file, adding domain blocks to Squid, and testing that the Squid and DNS servers are running correctly. 3. Files modified or created include squid.conf, named.conf.local, db.local, db.debian, rc.local, and the domain block file url. The document provides detailed commands and configuration options to set
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

SETTING ROUTER INSTALL SQUID PROXY DNS SERVER MEMBUAT FILE RESERVE

1. Hilangkan tanda ~ dengan cara ketikan = cd / 1. Install Squid Ip 192.168.50.1 Reserve berfungsi untuk konversi IP address ke
Cek eth ketik = mii-tool Ketik : apt-get install squid DNS. Misalnya kita ketik IP Address
Catat eth yang muncul http://192.168.50.1/ pada web browser, secara
1. Install bind9 dengan perintah : apt-get install bind9
otomatis akan redirect ke alamat www.debian.edu
Konfigurasi network 2. Setting pada squid.conf 2. Membuat zone domain .
Ketikkan = pico /etc/network/interfaces Ketikkan : pico /etc/squid/squid.conf Ketik : cd /etc/bind/ cd /etc/bind/
atau = nano /etc/network/interfaces Ctrl + w tulis : http_port 3128 Ketik : pico named.conf.local cd db.172 db.192
Tambahkan transparent dibelakang 3128 menjadi : Tulis dibawah sendiri: pico db.192
tampil jendela editor http_port 3128 transparent
cache_mem 8 MB $TTL 604800
3. Membuat file forward
#the primary network interface cache_mgr [email protected] @ IN SOA
Forward berfungsi untuk konversi dari DNS ke ip
debian.edu.root.debian.edu. (
auto eth0 visible_hostname debian.edu address. Misalnya kita ketik: www.debian.edu 1 ; Serial
iface eth0 inet static kemudian ctrl + w tulis acl CONNECT, dan Melalui web browser, maka akan muncul website 604800 ; Refresh
address 172.16.1.10 tambahkan script berikut tepat dibawahnya: dari server debian. 86400 ; Retry
netmask 255.255.255.0 acl url dstdomain “/etc/squid/url” Buat file konfigurasi untuk file forward dari DNS 2419200 ; Expire
network 172.16.1.0 http_access deny url tersebut. Karena konfigurasinya cukup banyak, kita 604800 ) ; Negative Cache TTL
broadcast 172.16.1.255 acl tkjzone src 192.168.0.50/24 ;
tinggal copykan saja file default yang sudah ada.
@ IN NS debian.edu
gateway 172.16.1.1 http_access allow tkjzone
1 IN PTR debian.edu
auto eth1 http_access allow all cd /etc/bind
iface eth1 inet static simpan dengan menekan tombol Ctrl+X, lalu tekan Y dan Enter
cp db.local db.debian
address 192.168.50.1 5. Restart daemon dari bind9
pico db.debian
3. Menambahkan url domain yang di blok /etc/init.d/
netmask 255.255.255.0
network 192.168.50.0 Ketik : cd /etc/squid/ isi dengan :
broadcast 192.168.50.255 Ketik : #pico url
Isi dengan :
$TTL 604800
www.facebook.com
simpan dengan menekan tombol Ctrl+X, lalu tekan @ IN SOA debian.edu.root.debian.edu. (
Y dan Enter www.youtube.com 2 ; Serial
simpan dengan menekan tombol Ctrl+X, lalu tekan Y dan Enter 604800 ; Refresh
86400 ; Retry
2. Edit file rc.local 2419200 ; Expire
Ketikan = pico /etc/rc.local 4. Membuat swap
604800 ) ; Negative Cache TTL
Ketik : #squid –z ;
Sebelum baris exit 0 ditambahkan 2011/03/01 10:56:46 | squid running! @ IN NS debian.edu
Process ID 2314 @ IN A 192.168.50.1
iptables -t nat -A POSTROUTING -o eth0 -j www IN A 192.168.50.1
MASQUERADE 5. Cek squid berjalan atau tidak ftp IN A 192.168.50.1
sub-domain IN A 192.168.50.1
iptables -t nat -A PREROUTING –s 192.168.50.0/24 Ketik :ps –x|grep squid
mail IN A 192.168.50.1
–p tcp Bila muncul baris berikut, maka squid telah
streaming IN A 192.168.50.1
--dport 80 –j REDIRECT --to-ports 3128 berjalan:
684? Ss 0:00/usr/bin/squid
simpan dengan menekan tombol Ctrl+X, lalu tekan simpan dengan menekan tombol Ctrl+X, lalu tekan
684? Sl 45:47 (Squid)
Y dan Enter Y dan Enter

3. Aktifkan ip forward
Ketikkan = pico /etc/sysctl.conf
Cari kata #net.ipv4.ip_forward=1 Menambah Pesan Error
Kemudian hilangkan tanda #
- cd /usr/share/squid/errors/english
simpan dengan menekan tombol Ctrl+X, lalu tekan - ls
Y dan Enter - pico ERR_ACCESS_DENIED
- Rubah script
- reboot
4. Edit file resolv.conf
Ketikan pico /etc/resolv.conf
Ketik:
Search debian.edu
Nameserver 192.168.50.1

simpan dengan menekan tombol Ctrl+X, lalu tekan


Y dan Enter

5. Restart network
6. Ketikkan : /etc/init.d/networking restart

You might also like