LinuxQuestions.org
Register a domain and help support LQ
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 10-12-2006, 08:43 AM   #1
SatelliteThief
LQ Newbie
 
Registered: Apr 2006
Posts: 2

Rep: Reputation: 0
Double Proxy with Squid and iptables


Good Day

I am trying to setup a Linux computer with Squid as a proxy server (Proxy A). I need to route all http and https traffic from Proxy A to Proxy B on another reachable network. This is what I have setup so far.

Client -> Proxy A -> Proxy B -> Web Site

I used iptables with the nat table to reroute outgoing traffic from Proxy A as follows: iptables -t nat -A OUTPUT -p tcp --dport 80 -j DNAT --to-destination [ProxyB]:8080
AND for HTTPS
iptables -t nat -A OUTPUT -p tcp --dport 443 -j DNAT --to-destination [ProxyB]:8080

I setup Squid as a proxy and it works with HTTP but when I try to access a HTTPS site my browser gives an error that it can't reach the host.

I can access other HTTPS sites through only 1 proxy eg. Client -> ProxyA -> HTTPS site works but Client -> ProxyA -> ProxyB -> HTTPS site gives an error.
Also Client -> ProxyB -> HTTPS site works.

I can't seem to find the problem and would appreciate any help.

Thank-you
 
Old 10-18-2006, 06:38 AM   #2
SatelliteThief
LQ Newbie
 
Registered: Apr 2006
Posts: 2

Original Poster
Rep: Reputation: 0
Proxy

Good Day

It seems I can't use iptables to make linux use a proxy. Does anyone know how to setup Squid to use another proxy to access the web?

Thanks
 
  


Reply

Tags
iptables, proxy, server, squid


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
Proxy won't let me connect, iptables, squid and dansguardian hindenbergbaby Linux - Networking 4 12-02-2009 04:45 AM
configure squid proxy with microsoft proxy as a parent proxy nintykola Linux - Software 1 08-28-2007 02:38 AM
Using iptables to bypass squid proxy for a specific domain jcopley Linux - Security 3 07-18-2007 01:50 PM
Configuring tranparent proxy with squid and iptables usmanmehmood Linux - Networking 4 09-24-2005 06:57 AM


All times are GMT -5. The time now is 05:27 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration