Debian 6.0.5 Squeeze Konfigurasi Debian Server Teknik Komputer dan Jaringan

Membuat Proxy Server * Kali ini kita akan membuat proxy dengan squid. Pertama Install aplikasi Squid nya..

root@lappet:~# apt-get install squid * Edit lah beberapa parameter pengaturan squid.conf.

root@lappet:~# nano /etc/squid/squid.conf # Squid normally listens to port 3128 http_port 3128 transparent

* cari kata http_port dengan menekan ctrl+w, kemudian tambahkan transparent di belakang 3128.

# Squid normally listens to port 3128 cache_mgr [email protected] visible_hostname special.proxy.lappet-pulut.com

# http_access deny all # http_access deny all

* cari kata http_access seperti disamping dan berikan tanda “#” untuk menonaktifkan parameter tersebut.

#Default: # cache_mem 8 MB cache_mem 32 mb

acl CONNECT method CONNECT acl url dstdomain "/etc/squid/domain" #domain yang diblokir acl key url_regex -i "/etc/squid/katakunci" #keyword yang di blok http_access deny url http_access deny key acl lan src 192.168.0.0/16 http_access allow lan http_access allow all

* cari kata acl CONNECT dan tambahkan beberapa pengaturan seperti yang bercetak tebal disamping. * konfigurasi disamping berguna untuk memblokir beberapa situs maupun keyword.

negative_ttl 1 minutes negative_dns_ttl 1 minute

dns_nameservers 192.168.101.254

* tambahkan dns nameservers atau tambahkan juga bagina /etc/resolv.conf untuk DNS nya.

cache_dir ufs /var/spool/squid 100 16 256 minimum_object_size 0 KB maximum_object_size 204800 KB access_log /var/log/squid/access.log squid pengaturan dapat anda kembangkan sendiri. Ini hanya basic aja..

©Jihad_Irhaby

Page 2

* Edit dan tambahkan beberapa website atau keyword yang akan anda block

root@lappet:~# nano /etc/squid/domain .facebook.com .twitter.com .simalungun.com

root@lappet:~# nano /etc/squid/katakunci porn xxx sex * Restart layanan Squid.

root@lappet:~# /etc/init.d/squid restart * Langkah berikutnya adalah membuat halaman proxy. Semua file terletak di /usr/share/squid/errors/ Konfigurasi semua atau sebagian atau juga salah satu sesuai dengan keinginan anda. Contoh:

root@lappet:~# nano /usr/share/squid/errors/English/ERR_ACCESS_DENIED * Langkah yang berikutnya adalah konfigurasi Iptables sbaga NAT nya. Kita redirect port 80 ke port squid 3128. Cara1:

root@lappet:~# iptables -t nat -A PREROUTING -p tcp -s 192.168.0.0/16 --dport 80 -j DNAT --to-destination 192.168.101.254:3128 Cara2:

root@lappet:~# iptables -t nat -A PREROUTING -p tcp -s 192.168.0.0/16 --dport 80 -j REDIRECT --to-port 3128 * Simpan kkonfigurasi iptables.

root@lappet:~# iptables-save * Untuk penjelasannya, nanti akan saya sampaikan pada bagian firewall. Simpanlah konfigurasi iptables tersebut. Agar konfigurasi iptables tidak hilang saat restart, maka ikuti langkah berikut ini.

root@lappet:~# iptables-save > /etc/iptables.conf root@lappet:~# nano /etc/rc.local * Tambahkan konfigurasi disamping pada baris paling bawah. iptables-restore < /etc/iptables.conf

root@lappet:~# squid -z

©Jihad_Irhaby

Page 3

* Sekarang waktunya test proxy. Ini adalah halaman dari situs http://simalungun.com/ sebelum dilakukan routing ke proxy.

* Dan inilah hasil routing dan konfigurasi squid, setelah alamat http://simalungun.com/ di blok.

::Sekian Dan Terimakasih:: ☺

©Jihad_Irhaby

Page 4

Membuat Proxy Server.pdf

Whoops! There was a problem loading more pages. Retrying... Whoops! There was a problem previewing this document. Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item. Membuat Proxy Server.pdf. Membuat Proxy Server.pdf. Open. Extract. Open with. Sign In. Main menu.

1MB Sizes 1 Downloads 214 Views

Recommend Documents

Tutorial Membuat Template Web Design.pdf
Tutorial Membuat Template Web Design.pdf. Tutorial Membuat Template Web Design.pdf. Open. Extract. Open with. Sign In. Main menu.

tutorial-membuat-blog-wordpress-hartoto.pdf
Whoops! There was a problem loading more pages. Retrying... Whoops! There was a problem previewing this document. Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item. tutorial-membuat-blog-wordpress-hartoto.

Java-based HTTP proxy server
standing between the mobile handset and web ... based on WSP(Wireless Session Protocol [2])/HTTP ... order to enable handset to access the IP network,.

The Proxy Server
Introduction. A Proxy Server is a medium in which users within the LAN can gain access to the Internet efficiently and much more securely. The proxy server acts ...

ergo proxy Complete.pdf
Sign in. Loading… Whoops! There was a problem loading more pages. Whoops! There was a problem previewing this document. Retrying... Download. Connect ...

ergo proxy raw.pdf
Sign in. Loading… Whoops! There was a problem loading more pages. Whoops! There was a problem previewing this document. Retrying... Download. Connect ...

2. MEMBUAT NAME TAG.pdf
Whoops! There was a problem loading more pages. Retrying... Whoops! There was a problem previewing this document. Retrying... Download. Connect more ...

Tutorial Membuat Dropdown Menu.pdf
font-size: 11px;. } Page 3 of 9. Whoops! There was a problem loading this page. Tutorial Membuat Dropdown Menu.pdf. Tutorial Membuat Dropdown Menu.pdf.

Membuat Form Input Data.pdf
Epi Info mengatur “database” suatu proyek. Proyek baru dapat dibuat dengan. membuat kuisioner (form entri data). Isi dari suatu proyek terdiri dari beberapa ...

340258842-Cara-Membuat-CRUD.pdf
Setelah itu, Klik windows – Database. Buatlah koneksi.Caranya, klik tanda + yang ada di pojok (lihat tanda). Pilih MySQL Connection, kemudian isikan seperti ...

wingate proxy server configuration pdf
Whoops! There was a problem loading more pages. Retrying... Whoops! There was a problem previewing this document. Retrying... Download. Connect more ...

Tips Membuat Taskbar Auto.pdf
Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item. Tips Membuat Taskbar Auto.pdf. Tips Membuat Taskbar Auto.pdf.

EMSA SA Proxy Form.pdf
There was a problem previewing this document. Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item. EMSA SA Proxy ...

Blissfest PROXY Form 2015.pdf
BMO MEMBER NUMBER OF ABSENTEE VOTER: Signature of Absentee voter: Page 1 of 1. Blissfest ... m 2015.pdf. Blissfest ... m 2015.pdf. Open. Extract.

Java-based HTTP proxy server
Web Computing Lab. Computer Science and Information Engineering Department. Fu Jen Catholic University http://weco.csie.fju.edu.tw. Abstract. The WAP gateway is the key component standing between the mobile handset and web servers. Accessing Internet

Proxy Statement - Office of Insurance Regulation
May 28, 2013 - operates more than 560 retail stores from California to Florida. ... the 2009 Distinguished Alumni Medal from the University of Georgia's College of .... with Florida Blue's Consolidated Financial Statements for the years ended ...

B&NES proxy vote.pdf
Sign in. Loading… Whoops! There was a problem loading more pages. Retrying... Whoops! There was a problem previewing this document. Retrying.

Dela-Putri-Lestari-Cara-Membuat-DataBase-Sederhana-dengan ...
Whoops! There was a problem loading more pages. Retrying... Dela-Putri-Lestari-Cara-Membuat-DataBase-Sederhana-dengan-Microsoft-Excel.pdf.

Modul_UKK PROXY, DNS, WEB, FTP.pdf
berubah (sesuai kebutuhan) konfigurasi sukses, bila tidak ulangi langkah 4-6. Page 3 of 24. Modul_UKK PROXY, DNS, WEB, FTP.pdf. Modul_UKK PROXY ...

Proxy Statement - Office of Insurance Regulation
May 28, 2013 - Proposal 2: to re-elect four directors, each for a three-year term (see page 29). ...... Schools. She chairs Bank of America's Environmental Council and .... These include licensing and examination, price setting, trade practices,.

Proxy Statement - Office of Insurance Regulation
May 28, 2013 - There can be no assurance that any such business opportunity will be .... Consumer Healthcare Company and CEO of Pillsbury Canada Ltd.

Java-based HTTP proxy server
After receiving the response sent by origin server, proxy would cache the message if it is a cacheable message. 7. At last, the response is replied to user agent. Figure 1. Traditional HTTP Proxy operation. 2.2 WAP Gateway Operations. In general, WAP