[ask help] setting reverse proxy

Diskusi tentang Ubuntu Server baik webserver, database server, samba server dan service lainnya serta jaringan menggunakan Sistem Operasi Ubuntu.
User avatar
coolka5
Posts: 14
Joined: 05 Jan 2011, 13:36
Location: yogyakarta
Contact:

[ask help] setting reverse proxy

Postby coolka5 » 08 Jun 2011, 21:07

pake squid 2.7 di ubuntu
ni topo logi ane

client---wan--reverseproxy--webserver

ip client=192.168.1.200/24

ip ReversProxy
eth0=192.168.1.150/24
eth1=140.0.0.1/16

ipWebserver
140.0.0.2/16

*ane pake vmware gan

maaf gan ane newbie ane dah coba uprek2, pas ane cek ada tulisan TCP_MISS:NONE ane bingung mohon juga di sertakan pencerahan n penjelasan, lo ada tutorial bisa share gan tnx

mohon bantuanya,


squid.conf
cache_mgr root



http_port 80 accl defaultsite=140.0.0.2 vhost


cache_peer 140.0.0.1 parent 8080 0 no-query no-digest originserver (ane bingung ip yg di cache_peer itu yg eth0 atau eth1 proxy)
acl apache rep_header Server ^Apache
broken_vary_encoding allow apache


cache_dir ufs /var/spool/squid 1000 16 256
cache_mem 128 MB
maximum_object_size_in_memory 128 KB


logformat combined %>a %ui %un [%tl] "%rm %ru HTTP/%rv" %Hs %h" "%{User-Agent}>h" %Ss:%Sh

access_log /var/log/squid/access.log combined


cache_log /var/log/squid/cache.log
cache_store_log /var/log/squid/store.log
logfile_rotate 10

hosts_file /etc/hosts

# Basic ACLs
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
acl Safe_ports port 80
acl purge method PURGE
acl CONNECT method CONNECT

http_access allow manager localhost
http_access deny manager
http_access allow purge localhost
http_access deny purge
http_access deny !Safe_ports
http_access allow localhost
http_access allow all
http_access allow all
http_reply_access allow all

icp_access allow all

cache_effective_group proxy

coredump_dir /var/spool/squid

forwarded_for on

emulate_httpd_log on

redirect_rewrites_host_header off

buffered_logs on

hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
acl POST method POST
no_cache deny QUERY
no_cache deny POST


ini pesan errornya gan
192.168.1.200 - - [08/Jun/2011:16:12:43 +0700] "GET http://140.0.0.2/favicon.ico HTTP/1.1" 504 1608 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.11) Gecko/20101013 Ubuntu/9.04 (jaunty) Firefox/3.6.11" TCP_MISS:NONE

tolong koreksi konfigurasinya dah bener lom gan, help me
ditunggu pencerahan agan2 master
User avatar
coolka5
Posts: 14
Joined: 05 Jan 2011, 13:36
Location: yogyakarta
Contact:

Re: [ask help] setting reverse proxy

Postby coolka5 » 09 Jun 2011, 14:45

Help gan!!! sepi amat ya!!! Help me pls!!!
User avatar
yudiarbi
Posts: 627
Joined: 22 Mar 2011, 09:31
Location: Probolinggo, Jawa Timur
Contact:

Re: [ask help] setting reverse proxy

Postby yudiarbi » 09 Jun 2011, 14:57

mencoba membantu

Code: Select all

forwarded_for on
redirect_rewrites_host_header off
buffered_logs on

dinonaktifin aj dulu bos, kl boleh tau iptables nya gmn?
yang dicache adalah yang datang dari luar.....
User avatar
suryayusra
Posts: 394
Joined: 05 May 2010, 15:54
Location: Palembang, Indonesia
Contact:

Re: [ask help] setting reverse proxy

Postby suryayusra » 11 Jun 2011, 14:06

cuba jalanin scrip yg sederhana dlu, bisa gak ?

http_port 8080
icp_port 0
cache_dir ufs /var/spool/squid 128 16 256
cache_mem 64 MB
dns_nameserver 8.8.8.8
cache_log /var/log/squid/cache.log
cache_access_log /var/log/squid/access.log
cache_store_log /var/log/squid/store.log
cache_mgr admin@ubuntu.ac.id
acl all src 0.0.0.0/0.0.0.0
http_access allow all
visible_hostname ubuntu.ac.id
User avatar
suryayusra
Posts: 394
Joined: 05 May 2010, 15:54
Location: Palembang, Indonesia
Contact:

Re: [ask help] setting reverse proxy

Postby suryayusra » 18 Jun 2011, 11:58

sepi ni ye
User avatar
sipelaut
Posts: 1963
Joined: 03 Jan 2010, 17:25
Location: madura-sampang
Contact:

Re: [ask help] setting reverse proxy

Postby sipelaut » 18 Jun 2011, 14:21

suryayusra wrote:sepi ni ye
TSnya lagi ngonfig kalii broo...

Return to “Ubuntu Server”

Who is online

Users browsing this forum: Bing [Bot] and 8 guests