LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-21-2009, 08:06 PM   #1
wr3ck3d
Member
 
Registered: Dec 2002
Location: IL
Distribution: NetBSD, Slackware, Gentoo, Debian, FreeBSD
Posts: 444

Rep: Reputation: 31
Is this possible - forwarding http requests - proxy


Basically what I want to do is kinda like a 50% proxy.

The source machine is going to be setup to use a web proxy for browsing. It will make a request to my linux box on port 3128. The linux box will forward that request out, but leave the source address as the original machine. So instead of coming back to the linux box, it will go straight to the original machine.

The source machine is a mobile phone and port 80 and 443 are blocked on this network. Have been using squid for a while, but it just doesn't work right. There is too much of a delay before I start getting the page on my phone, and sometimes half the page loads and then restarts.

Was actually going to start looking into squid to see if I can tweak it to make it better, then this idea popped into my head. Was looking into iptables, but not sure. Maybe someone can point me in the right direction?

Thanks.
 
Old 08-22-2009, 03:03 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
No, that's impossible in a simple world. The proxy creates a different TCP stream completely, so you can't have a different address on it compared to the address of the proxy itself. You could possibly do some level of port redirection though if you can make the proxy server be the upstream router for the phone network. As this is a phone though, that seems very unlikely. Unless you mean wi-fi connections on a phone.
 
  


Reply



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
slapt-get, howto pass username and passwd for http requests to our proxy !! Padmakiran Slackware 13 05-05-2010 09:05 AM
redirect all http requests to a different squid proxy server r2d2#jedi Linux - Networking 1 05-27-2009 12:31 AM
http relay - tracking http requests wastingtime Linux - Server 2 04-28-2009 06:05 PM
http request forwarding to proxy rohit_67066 Linux - Networking 2 02-26-2009 10:47 PM
forward all HTTP requests to the proxy cccc Linux - Networking 2 10-01-2006 06:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:30 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
Open Source Consulting | Domain Registration