Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 10-12-2006, 07:43 AM   #1
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
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.

Old 10-18-2006, 05:38 AM   #2
LQ Newbie
Registered: Apr 2006
Posts: 2

Original Poster
Rep: Reputation: 0

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?



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

All times are GMT -5. The time now is 11:41 PM.

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