Hello I just finished installing openwrt on my linksys WRT1900 ACS
. Openwrt is working ok but I am having issues with my configuration of tinyproxy.
I am a parent of 3 young boys and I like to add some parental control to their internet.
The problem I am facing is that tinyproxy is ignoring the Filter file '/etc/config/tinyproxy_filter' although I have.
I would really appreciate if someone could look at my configuration file and point me in the right direction as far as what I am doing wrong?
Thank you,
Copy of my tinyproxy filter file is below
cat /etc/config/tinyproxy_filter
https://m.youtube.com/
https://www.youtube.com/
naked
porno
sexy
swimsuit
underwear
playboy.com:80
youtube.com
google.*:80/.*(porn|sex)
youtube.com:80/.*(porn|sex)
yahoo.com:80/.*sex
Below is a copy of my tinyproxy config file. I have 2 routers 1) Linksys 2) ISP. My linksys router IP address with IP 192.168.1.1. Linsys is connected to the main ISP router via Ethernet cable. all computers are connecting via WIFI to Linksys
root@OpenWrt:/etc/config# cat tinyproxy
config tinyproxy
option User 'nobody'
option Group 'nogroup'
option Port '8888'
option Timeout '600'
option DefaultErrorFile '/usr/share/tinyproxy/default.html'
option StatFile '/usr/share/tinyproxy/stats.html'
option MaxClients '100'
option MinSpareServers '5'
option MaxSpareServers '20'
option StartServers '10'
option MaxRequestsPerChild '0'
option ViaProxyName 'tinyproxy'
list ConnectPort '443'
list ConnectPort '563'
option enabled '1'
option Allow '192.168.1.0/24'
option Filter '/etc/config/tinyproxy_filter'
option LogFile '/var/log/tinyproxy.log'
option LogLevel 'Info'
option FilterURLs '1'
option FilterExtended '1'
# option Listen '127.0.0.1'
Here is a copy of parts of my '/etc/config/firewall' file. Speficially the parts where it is forwarding to tinyproxy
config redirect
option name 'Transparent Proxy Redirect'
option proto 'tcp'
option dest_port '8888'
option src_dport '80'
option src_dip '192.168.1.1'
option dest_ip '192.168.1.1'
option dest 'lan'
option src 'wan'
# option src 'lan' - same results as using wan
Below is a summary of copy of tinyproxy log file
INFO Sep 25 04:32:03 [15856]: Setting the various signals.
INFO Sep 25 04:32:03 [15856]: Starting main loop. Accepting connections.
INFO Sep 25 04:46:15 [15856]: Shutting down.
INFO Sep 25 04:46:15 [15909]: Initializing tinyproxy ...
INFO Sep 25 04:46:15 [15909]: Reloading config file
INFO Sep 25 04:46:15 [15909]: Stathost set to "127.0.0.1"
INFO Sep 25 04:46:15 [15909]: Setting "Via" header to 'tinyproxy'
INFO Sep 25 04:46:15 [15909]: Adding Port [443] to the list allowed by CONNECT
INFO Sep 25 04:46:15 [15909]: Adding Port [563] to the list allowed by CONNECT
INFO Sep 25 04:46:15 [15909]: Now running as group "nogroup".
INFO Sep 25 04:46:15 [15909]: Now running as user "nobody".
INFO Sep 25 04:46:15 [15909]: Creating child number 1 of 10 ...
INFO Sep 25 04:46:15 [15909]: Creating child number 2 of 10 ...
INFO Sep 25 04:46:15 [15909]: Creating child number 3 of 10 ...
INFO Sep 25 04:46:15 [15909]: Creating child number 4 of 10 ...
INFO Sep 25 04:46:15 [15909]: Creating child number 5 of 10 ...
INFO Sep 25 04:46:15 [15909]: Creating child number 6 of 10 ...
INFO Sep 25 04:46:15 [15909]: Creating child number 7 of 10 ...
INFO Sep 25 04:46:15 [15909]: Creating child number 8 of 10 ...
INFO Sep 25 04:46:15 [15909]: Creating child number 9 of 10 ...
INFO Sep 25 04:46:15 [15909]: Creating child number 10 of 10 ...
INFO Sep 25 04:46:15 [15909]: Finished creating all children.
INFO Sep 25 04:46:15 [15909]: Setting the various signals.
INFO Sep 25 04:46:15 [15909]: Starting main loop. Accepting connections.
CONNECT Sep 25 04:46:23 [15910]: Connect (file descriptor 6): Hal9000.lan [192.168.1.162]
CONNECT Sep 25 04:46:23 [15910]: Request (file descriptor 6): GET /cgi-bin/luci HTTP/1.1
INFO Sep 25 04:46:23 [15910]: process_request: trans Host GET http://192.168.1.1:80/cgi-bin/luci for 6
INFO Sep 25 04:46:23 [15910]: No upstream proxy for 192.168.1.1
CONNECT Sep 25 04:46:23 [15910]: Established connection to host "192.168.1.1" using file descriptor 7.
INFO Sep 25 04:46:23 [15910]: Closed connection between local client (fd:6) and remote client (fd:7)
CONNECT Sep 25 04:46:31 [15911]: Connect (file descriptor 6): Hal9000.lan [192.168.1.162]
CONNECT Sep 25 04:46:31 [15911]: Request (file descriptor 6): POST /cgi-bin/luci HTTP/1.1
INFO Sep 25 04:46:31 [15911]: process_request: trans Host POST http://192.168.1.1:80/cgi-bin/luci for 6
INFO Sep 25 04:46:31 [15911]: No upstream proxy for 192.168.1.1
CONNECT Sep 25 04:46:31 [15911]: Established connection to host "192.168.1.1" using file descriptor 7.
INFO Sep 25 04:46:31 [15911]: Closed connection between local client (fd:6) and remote client (fd:7)
CONNECT Sep 25 04:46:31 [15912]: Connect (file descriptor 6): Hal9000.lan [192.168.1.162]
CONNECT Sep 25 04:46:31 [15912]: Request (file descriptor 6): GET /cgi-bin/luci/ HTTP/1.1
INFO Sep 25 04:46:31 [15912]: process_request: trans Host GET http://192.168.1.1:80/cgi-bin/luci/ for 6
INFO Sep 25 04:46:31 [15912]: No upstream proxy for 192.168.1.1