Rabu, 23 Januari 2008

Proxy Server

Proxy Server

Tutorial Proxy Server:Pertama-tama kita install dulu program untuk membuat Proxy Server yaitu denganaptitude -> / -> squid -> enter -> + -> g -> g ->setelah program untuk membuat Proxy Server sudah terinstall semua, barulah kita mulai mengedit program tersebut yaitu dengan cara:mcedit /etc/squid/squid.confacl all src 0.0.0.0/0.0.0.0acl lab1 src 192.168.1.0/255.255.255.0acl tidak dstdomain www.download.comacl manager proto cache_objectacl localhost src 127.0.0.1/255.255.255.255acl to_localhost dst 127.0.0.0/8acl SSL_ports port 443 # httpsacl SSL_ports port 563 # snewsacl SSL_ports port 873 # rsyncacl Safe_ports port 80 # httpacl Safe_ports port 21 # ftpacl Safe_ports port 443 # httpsacl Safe_ports port 70 # gopheracl Safe_ports port 210 # waisacl Safe_ports port 1025-65535 # unregistered portsacl Safe_ports port 280 # http-mgmtacl Safe_ports port 488 # gss-httpacl Safe_ports port 591 # filemakeracl Safe_ports port 777 # multiling httpacl Safe_ports port 631 # cupsacl Safe_ports port 873 # rsyncacl Safe_ports port 901 # SWATacl purge method PURGEacl CONNECT method CONNECTserta# INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS# Example rule allowing access from your local networks. Adapt# to list your (internal) IP networks from where browsing should# be allowed#acl our_networks src 192.168.1.0/24 192.168.2.0/24#http_access allow our_networkshttp_access allow localhosthttp_access deny tidakhttp_access allow lab1# And finally deny all other access to this proxyhttp_access deny all# TAG: http_access2# Allowing or Denying access based on defined access lists## Identical to http_access, but runs after redirectors. If not set# then only http_access is used.##Default:# none# TAG: http_reply_access# Allow replies to client requests. This is complementary to http_access.## http_reply_access allowdeny [!] aclname ...## NOTE: if there are no access lines present, the default is to allow# all replies## If none of the access lines cause a match the opposite of the# last line will apply. Thus it is good practice to end the rules# with an "allow all" or "deny all" entry.##Default:# http_reply_access allow all##Recommended minimum configuration:## Insert your own rules here.### and finally allow by defaulthttp_reply_access allow all

Tidak ada komentar: