OpenWrt Forum Archive

Topic: Tinyproxy doesnt work - why ?

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

Hello,

I've installed tinyproxy and the tinyproxy-luciapp and started it.

But it doesn't work. I want block some urls with this tool.

Please help me to get this work.

https://abload.de/thumb/18zj8b.jpg

https://abload.de/thumb/37bkj3.jpg

The wan port of the OpenWRT router (IP: 192.168.1.1) is connected to the

internet router (ip: 192.168.45.1).

I used as listen address the internet router ip, the wan port ip and the router ip of the open wrt router. Nothing happens, all black listed URLs are still useable.

Edit:

Now it shows the url requests from lan:

https://abload.de/thumb/2n7kns.jpg

But it blocks nothing... . The url list is correct.

Edit 2:

You have to redirect the request by mac per firewall to the port of the proxy. Now it works.

Best Regards

lulu123

(Last edited by lulu123 on 12 Feb 2017, 21:59)

Looks like you configured TinyProxy, and it is just expecting connections from the clients. Now you need to configure the clients to use TinyProxy, or you have to configure the router to redirect requests through TinyProxy; I guess you are aiming for the latter. Have a look at https://wiki.openwrt.org/doc/uci/firewa … e_external

I have a problem with https. No https web site is working, if i redirect it to tinyproxy for filtering.

The firewall settings are correct. And tiny proxy version 1.8.3 supports http(s).

https://abload.de/thumb/https6el8k.jpg

What is the reason ?

(Last edited by lulu123 on 13 Feb 2017, 14:08)

Have you verified that both HTTP and HTTPS are being redirected to TinyProxy? Is there any message in TinyProxy's logs? How does the client "fail"?

daemon.warn odhcpd[885]: A default route is present but there is no public prefix on br-lan thus we don't announce a default route!

I think thats the error.

What I have to to do ?

(Last edited by lulu123 on 13 Feb 2017, 14:59)

I do not see how is that error related to your issue...

How can I fix a problem like this ?

It is not problem, it is warning concerning IPv6: https://en.wikipedia.org/wiki/IPv6_addr … ess_format
The network prefix (the routing prefix combined with the subnet id) is contained in the most significant 64 bits of the address.

(Last edited by ulmwind on 13 Feb 2017, 18:41)

And what is about this error:

Mon Feb 13 17:52:44 2017 daemon.info tinyproxy[25659]: Connect (file descriptor 7): ::ffff:192.168.1.226 [::ffff:192.168.1.226]
Mon Feb 13 17:52:44 2017 daemon.info tinyproxy[25659]: Request (file descriptor 7):
Mon Feb 13 17:52:44 2017 daemon.warn tinyproxy[25659]: Could not retrieve all the headers from the client

This looks more like a TinyProxy issue than a OpenWrt issue; you will probably find more help at their forum.

The discussion might have continued from here.