Devilzc0de Forum Follow @devilzc0de
  • Home
  • Hacking
  • Networking
  • Programming
  • O.S
  • Server
  • Tweets
  • Search
  • Member List
  • Calendar
Current time: 05-26-2013, 07:43 AM Hello There, Guest! (Login — Register)
Devilzc0de Forum › Information Technology › Server › Proxy Server v
1 2 3 4 Next »

[Tutor] install squid 2.7.STABLE9 dengan TPROXY-4.1 di ubuntu 10.04

Home General Computer Multimedia Business Lounge

Pages (2): 1 2 Next »
Post Reply 
Tweet
Threaded Mode | Linear Mode
Tutor install squid 2.7.STABLE9 dengan TPROXY-4.1 di ubuntu 10.04
05-24-2011, 12:39 PM (This post was last modified: 05-24-2011 12:56 PM by revanthem.)
Post: #1
revanthem Offline
Auto Banned
Posts: 78
Joined: Jul 2010
Reputation: 3
Thumbs Down install squid 2.7.STABLE9 dengan TPROXY-4.1 di ubuntu 10.04
hadeh.. pada sibuk hack go.id yak. ane ampon deh. gak paham heking2an.
mending ane bahas proxy aja piss

prolog:

Quote:idealnya proxy itu emang harus transparent. namun untuk squid2.7stable9 belum bener2 transparent.

lah maksudnya transparent gimana?
gini lho.. ketika client di bawah proxy request http yang masuk ke proxy kan ip client. trus yang keluar malah ip proxy. emang namanya transparent. cuman blom transparent menurut ane. kalo kita bikin proxy model gini dan mau limit traffic ya susah.. karena yang keluar dari proxy adalah ip proxy. bukan ip client.

lah trus setelah pake TProxy hasilnya gimana?
diharapkan setelah pake TProxy ip yang keluar dari proxy bener2 pure ip client. bukan proxy. jadi lebih mudah untuk management bandwidth.

udah ngerti kan? (mudah2an blom)
POC

tweak dulo systemnya supaya traffic bisa lebih optimal
Code:
echo "*                soft    nofile          65535" >> /etc/security/limits.conf
echo "*                hard    nofile          65535" >> /etc/security/limits.conf
echo "net.ipv4.conf.all.rp_filter=0" >> /etc/sysctl.conf
echo "net.ipv4.ip_forward=1" >> /etc/sysctl.conf

untuk builder dan compiler gw gak usah jelasin disini. gw yakin semua udah pada paham. next,

download squid dan patch TProxy nya
Code:
wget http://www.squid-cache.org/Versions/v2/2.7/squid-2.7.STABLE9.tar.gz
wget http://www.visolve.com/squid/tproxy4/squid-2.7s9-tproxy-4.patch

extract dan patch squid
Code:
tar -zxvf squid-2.7.STABLE9.tar.gz
cd squid-2.7.STABLE9
patch -p1 < ../squid-2.7s9-tproxy-4.patch

compile seperti biasa
dan perhatikan yang di bold
Quote:./configure '--prefix=/usr/local/squid' \
'--enable-async-io=24' \
'--enable-storeio=ufs,aufs,null,diskd' \
'--enable-auth=basic' \
'--enable-err-languages=English' \
'--disable-ident-lookups' \
'--disable-cache-digests' \
'--enable-follow-x-forwarded-for' \
'--enable-delay-pools' \
'--enable-http-violations' \
'--enable-arp-acl' \
'--with-maxfd=65535' \
'--enable-linux-netfilter' \
'--enable-linux-tproxy' \
'--with-libcap'
make
make install

di squid.conf nya tambahin seperti ini
Code:
http_port 8080 tansparent tproxy
max_filedescriptors 65535

lanjut, setting iproute2 & iptables untuk intercepting tproxy (transparent proxy)
Code:
ip rule add fwmark 1 lookup 100
ip route add local 0.0.0.0/0 dev lo table 100

iptables -t mangle -N DIVERT
iptables -t mangle -A DIVERT -j MARK --set-mark 1
iptables -t mangle -A DIVERT -j ACCEPT
iptables -t mangle -A PREROUTING -p tcp -m socket -j DIVERT
iptables -t mangle -A PREROUTING -p tcp --dport 80 -j TPROXY --tproxy-mark 0x1/0x1 --on-port 8080

sampai sini kita udah selesai.

silahkan di coba sendiri dan mudah2an error ngakak

sebelumnya nubi imut ini mohon maaf kalau banyak kekurangan. keterbatasan ilmu yang nubi miliki namun rasa ingin berbagi yang kuatlah yang membuat nubi ini jadi seperti ini..
Find all posts by this user
Quote this message in a reply
 Reputed by :  cbrnewbie(+1)
05-24-2011, 12:48 PM
Post: #2
chaer.newbie Offline
--------------------------
*****
Dewa
Posts: 5,288
Joined: Dec 2009
Reputation: 184
RE: nstall squid 2.7.STABLE9 dengan TPROXY-4.1 di ubuntu 10.04
widih keluar semua nih jeroan servernya huahahhahah
Find all posts by this user
Quote this message in a reply
05-24-2011, 01:11 PM
Post: #3
revanthem Offline
Auto Banned
Posts: 78
Joined: Jul 2010
Reputation: 3
RE: nstall squid 2.7.STABLE9 dengan TPROXY-4.1 di ubuntu 10.04
(05-24-2011 12:48 PM)chaer.newbie Wrote:  widih keluar semua nih jeroan servernya huahahhahah

ampun om..
ane cuman pembelajar seneng
Find all posts by this user
Quote this message in a reply
05-24-2011, 01:35 PM
Post: #4
Lintang27™ Offline
Pemulung Sampah
**
Moderators
Posts: 2,159
Joined: Mar 2010
Reputation: 135
RE: install squid 2.7.STABLE9 dengan TPROXY-4.1 di ubuntu 10.04
sadis
Visit this user's website Find all posts by this user
Quote this message in a reply
05-24-2011, 02:36 PM
Post: #5
Super Moderator Offline
Wahyu Adi Prasetyo
****
Global Moderators
Posts: 6,956
Joined: Jan 2010
Reputation: 237
RE: install squid 2.7.STABLE9 dengan TPROXY-4.1 di ubuntu 10.04
yakin nih stabil pake ubuntu proxynya? piss
ane crash trus kalo nyoba
Visit this user's website Find all posts by this user
Quote this message in a reply
05-24-2011, 02:59 PM
Post: #6
revanthem Offline
Auto Banned
Posts: 78
Joined: Jul 2010
Reputation: 3
RE: install squid 2.7.STABLE9 dengan TPROXY-4.1 di ubuntu 10.04
(05-24-2011 02:36 PM)linuxer46 Wrote:  yakin nih stabil pake ubuntu proxynya? piss
ane crash trus kalo nyoba

di atas ane gak ada bilang stabil.
ini cuman sebagai contoh penerapan TProxy.
untuk penggunaan di distro lain kan bisa di custom sendiri sesuai kebutuhan piss

ane sendiri udah jarang pake ubuntu untuk proxy semenjak 9.10

lebih prefer ke setan merah, slackware atau arch
Find all posts by this user
Quote this message in a reply
05-24-2011, 03:13 PM
Post: #7
Super Moderator Offline
Wahyu Adi Prasetyo
****
Global Moderators
Posts: 6,956
Joined: Jan 2010
Reputation: 237
RE: install squid 2.7.STABLE9 dengan TPROXY-4.1 di ubuntu 10.04
(05-24-2011 02:59 PM)revanthem Wrote:  
(05-24-2011 02:36 PM)linuxer46 Wrote:  yakin nih stabil pake ubuntu proxynya? piss
ane crash trus kalo nyoba

di atas ane gak ada bilang stabil.
ini cuman sebagai contoh penerapan TProxy.
untuk penggunaan di distro lain kan bisa di custom sendiri sesuai kebutuhan piss

ane sendiri udah jarang pake ubuntu untuk proxy semenjak 9.10

lebih prefer ke setan merah, slackware atau arch

jiahh,jdul tritnya pake ubu ngacir
Visit this user's website Find all posts by this user
Quote this message in a reply
05-24-2011, 03:26 PM
Post: #8
revanthem Offline
Auto Banned
Posts: 78
Joined: Jul 2010
Reputation: 3
RE: install squid 2.7.STABLE9 dengan TPROXY-4.1 di ubuntu 10.04
(05-24-2011 03:13 PM)linuxer46 Wrote:  
(05-24-2011 02:59 PM)revanthem Wrote:  
(05-24-2011 02:36 PM)linuxer46 Wrote:  yakin nih stabil pake ubuntu proxynya? piss
ane crash trus kalo nyoba

di atas ane gak ada bilang stabil.
ini cuman sebagai contoh penerapan TProxy.
untuk penggunaan di distro lain kan bisa di custom sendiri sesuai kebutuhan piss

ane sendiri udah jarang pake ubuntu untuk proxy semenjak 9.10

lebih prefer ke setan merah, slackware atau arch

jiahh,jdul tritnya pake ubu ngacir

sebelumnya nubi imut ini mohon maaf kalau banyak kekurangan. keterbatasan ilmu yang nubi miliki namun rasa ingin berbagi yang kuatlah yang membuat nubi ini jadi seperti ini.. malu
Find all posts by this user
Quote this message in a reply
05-24-2011, 05:08 PM
Post: #9
Super Moderator Offline
Wahyu Adi Prasetyo
****
Global Moderators
Posts: 6,956
Joined: Jan 2010
Reputation: 237
RE: install squid 2.7.STABLE9 dengan TPROXY-4.1 di ubuntu 10.04
(05-24-2011 03:26 PM)revanthem Wrote:  
(05-24-2011 03:13 PM)linuxer46 Wrote:  
(05-24-2011 02:59 PM)revanthem Wrote:  
(05-24-2011 02:36 PM)linuxer46 Wrote:  yakin nih stabil pake ubuntu proxynya? piss
ane crash trus kalo nyoba

di atas ane gak ada bilang stabil.
ini cuman sebagai contoh penerapan TProxy.
untuk penggunaan di distro lain kan bisa di custom sendiri sesuai kebutuhan piss

ane sendiri udah jarang pake ubuntu untuk proxy semenjak 9.10

lebih prefer ke setan merah, slackware atau arch

jiahh,jdul tritnya pake ubu ngacir

sebelumnya nubi imut ini mohon maaf kalau banyak kekurangan. keterbatasan ilmu yang nubi miliki namun rasa ingin berbagi yang kuatlah yang membuat nubi ini jadi seperti ini.. malu
yang penting di share bro ilmunya belajar
Visit this user's website Find all posts by this user
Quote this message in a reply
06-03-2012, 08:55 AM
Post: #10
semut Offline
./Devilz 1st Cadet
Posts: 10
Joined: Jun 2010
Reputation: 0
RE: install squid 2.7.STABLE9 dengan TPROXY-4.1 di ubuntu 10.04
Makasih mas bro sharingnya....
belaajar..... belajar
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Pages (2): 1 2 Next »
Post Reply 


Topic Tools
Topic Link :
BBCode :
HTML Code :
View a Printable Version Send Thread to a Friend Subscribe to this thread
Submit Google Submit Face book Submit to Digg Submit to Reddit Submit to Furl Submit to Del.icio.us Submit to Jeqq

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Mempercepat Koneksi dengan SSH Tunneling RieqyNS13 12 1,232 04-23-2013 02:12 PM
Last Post: suthrisno
  Meningkatkan Request hit squid chaer.newbie 16 2,330 03-26-2013 07:19 PM
Last Post: Jehuda
  squid.conf chaer.newbie 40 25,468 10-31-2012 11:03 AM
Last Post: neobix
  Cara mengatasi TCP_MISS pada Squid Ubuntu chibi 7 1,031 08-05-2012 06:48 AM
Last Post: ghosttransparentexceptnofixed
  [Tutor] squid anti iklan luthfi_dc 13 663 07-30-2012 12:14 PM
Last Post: sunafets.exe
  tuning performa squid luthfi_dc 3 418 07-30-2012 12:11 PM
Last Post: luthfi_dc
  squid.conf for Squid 3.x.x Super Moderator 24 3,289 07-26-2012 12:46 AM
Last Post: ghosttransparentexceptnofixed
  [Ask] Caching Squid easy2study 7 1,214 06-11-2012 12:18 AM
Last Post: emin
  Squid Delay Pool wahyu_devilzc0de™ 12 5,826 03-27-2012 06:28 PM
Last Post: agam atjoeng
Exclamation [Ask] Setting Bandwidth dengan squid debian lenny ? fauzanrahman03 13 2,951 01-26-2012 05:18 PM
Last Post: Super Moderator

Users Browsing
1 Guest(s)

  • Contact Us
  • devilzc0de
  • Return to Top
  • Mobile Version
  • RSS Syndication
  • Help
Current time: 05-26-2013, 07:43 AM Powered By MyBB, © 2002-2013 MyBB Group. Theme created by Justin S. | Mixed By Chaer.Newbie | Fixed By Aditya

USING THIS SITE INDICATES THAT YOU HAVE READ AND ACCEPT OUR TERMS. IF YOU DO NOT ACCEPT THESE TERMS, YOU ARE NOT AUTHORIZED TO USE THIS SITE