OpenWrt Forum Archive

Topic: tinyproxy through another proxy

The content of this topic has been archived on 25 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi

short form:

Is it possible to tell tinyproxy that it has to connect to the internet via another proxy? Or do I have to use squid?


long form:

I'm using a WRT54GL with Kamikaze 7.09 in a big network.
The WRT54GL has to vlans: VLAN1 gets an IP from the big network and VLAN2 provides a second network for wlan clients.

The WRT54GL and the wlan clients have to use a proxy in the big network to connect to the internet.
Now, I want to use tinyproxy as transparent proxy, I redirect all traffic from the wlan clients with iptables to tinyproxy, so that the wlan clients don't have to enter a proxy.

My problem is that I don't know how to tell tinyproxy that it has to use the proxy of the big network for all connections.
Is that possible or do I have to use squid?

Is it possible to tell tinyproxy that it has to connect to the internet via another proxy?

Yes.  Here's the relevant bit of tinyproxy.conf-

# The upstream rules allow you to selectively route upstream connections
# based on the host/domain of the site being accessed.
#
# For example:
#  # connection to test domain goes through testproxy
#  upstream testproxy:8008 ".test.domain.invalid"
#  upstream testproxy:8008 ".our_testbed.example.com"
#  upstream testproxy:8008 "192.168.128.0/255.255.254.0"
#
#  # no upstream proxy for internal websites and unqualified hosts
#  no upstream ".internal.example.com"
#  no upstream "www.example.com"
#  no upstream "10.0.0.0/8"
#  no upstream "192.168.0.0/255.255.254.0"
#  no upstream "."

Hope this helps,
Charlie

(Last edited by ciscostu on 7 Jun 2008, 17:39)

ah ok thanks.
I didn't thought they would call that upstream.

The discussion might have continued from here.