OpenWrt Forum Archive

Topic: tinyproxy performance problem

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

I set up and configured tinyproxy only to discover that performance was horrible.  Loading pages with many images was painfully slow.

I tracked the problem down to DNS.  I had dnsmasq installed and was using a customized dnsmasq.conf instead of the the default, nvram configration in /etc/init.d/S50dnsmasq.  /etc/resolv.conf was symlinked to /tmp/resolv.conf, which in turn was symlinked to /tmp/resolv.conf.auto.  The result was that tinyproxy was resolving all addresses using the upstream, ISP nameserver which was very slow.

I deleted the /etc/resolv.conf symlink and recreated /etc/resolv.conf with the following content:

    search lan
    nameserver 127.0.0.1

tinyproxy is now performing extremely well.

If this is indeed the correct configuration, an update to the dnsmasq wiki page and perhaps the tinyproxy page might be helpful for others.  I thought I would post here, first, to ensure I've got my facts straight. ;-)

Hi Semifor,

Thanks for your post on my blog regarding tinyproxy on WRT54G. I have some questions for you:
1) Where did you download the tinyproxy package from?
2) Which version of tinyproxy are you running?
3) Have you found that tinyproxy crashes periodically, requiring a restart of tinyproxy or even the router itself?

cyboc wrote:

1) Where did you download the tinyproxy package from?
2) Which version of tinyproxy are you running?

I downloaded it from http://openwrt.alphacore.net/tinyproxy_1.6.3_mipsel.ipk, referenced in the wiki page: http://wiki.openwrt.org/tinyproxy.  So, version 1.6.3.

3) Have you found that tinyproxy crashes periodically, requiring a restart of tinyproxy or even the router itself?

Twice, the router has stopped responding, at least on the LAN an wireless interfaces.  I haven't been able to determine a cause.  Tinyproxy is a suspect because it was in use both times.  But I've used tinypoxy for a couple of days now, quite heavily (for a single user) without any trouble.

The alphacore site seems to be down but I found the package in the backports repository here: http://downloads.openwrt.org/backports/ … mipsel.ipk

When I tried tinyproxy a few months ago it seemed to periodically crash. I can't remember if just tinyproxy crashed or if the whole router stopped responding. Either way, the problem went away when I stopped running tinyproxy. For now, I'm using squid on a regular workstation but I'd sure like to get tinyproxy working rock solid on the WRT.

I have noticed that my speed is cut in half when I am using tinyproxy. I tried to update the resolv.conf file as stated, but still, no luck. Any thought on what I should try?

The discussion might have continued from here.