LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-15-2011, 05:33 AM   #1
parashuram2011
LQ Newbie
 
Registered: Mar 2011
Posts: 11

Rep: Reputation: 0
Routing HTTP request through proxy


Hello all,

I am running HTTP server(BOA ) and squid proxy on the same target board(i.e processor) simultaneously (I have assigned 192.168.4.23 as board IP address). I am able to access HTTP server from browser directly without proxy in between, My requirement is to if I want access HTTP server request should be through squid proxy,Can any body explain me how to forward HTTP request through squid proxy.??? BOA is listening on port 80 and squid on port 3128. any response will be greatly appreciated

thanks

Last edited by parashuram2011; 03-15-2011 at 05:37 AM.
 
Old 03-15-2011, 06:04 AM   #2
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,275

Rep: Reputation: 148Reputation: 148
Refer the following, may be helpful
http://www.linuxquestions.org/questi...-proxy-701710/
 
1 members found this post helpful.
Old 03-16-2011, 08:02 AM   #3
parashuram2011
LQ Newbie
 
Registered: Mar 2011
Posts: 11

Original Poster
Rep: Reputation: 0
Hello thanks for your answer was really useful, my requirement is also similar to you without configuring client browser HTTP request should be through squid proxy ,all I need to do is configure squid as transparent proxy.

I edited squid.conf file (FYI i have 2.7 version of squid)
http_port 3128 transparent


I am confused about only one thing is following line

iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 3128


this above line also need to be added to squid.conf or somewhere else can u please clear my confusion
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can i tunnel http via ssh without setting up a http proxy? ginda Linux - Networking 3 12-24-2009 05:25 AM
Forcing http request through Squid Proxy Server(Transparent proxying) ochienged Linux - Server 5 06-02-2009 11:54 AM
http request forwarding to proxy rohit_67066 Linux - Networking 2 02-26-2009 11:47 PM
Routing http request? stiffy Linux - Server 6 02-27-2007 05:31 PM
http request mkamyar Linux - Software 5 08-30-2005 03:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration