I just got cindy's load, OpenWrt Attitude Adjustment 12.09-rc1 - OpenWrtID / LuCI 0.11 Branch (0.11+svn9599) , ony my TPLink MR3420v2 and am trying to get tinyproxy going, using docs at http://wiki.openwrt.org/doc/howto/proxy.tinyproxy
I entered all the commands from the webpage, got no errors, but when I configure my browser to the router's lan IP, and port 8888, I get no connections. No error in my webpage, but do get a log entry that I include here later on in the message. Im currently using putty's dynamic proxy, and itll be nice to get this middleman out of the picture and just proxy directly with the router.
Here are my relevant configs:
root@OpenWrt:~# uci show | grep tinyproxy
tinyproxy.@tinyproxy[0]=tinyproxy
tinyproxy.@tinyproxy[0].User=nobody
tinyproxy.@tinyproxy[0].Group=nogroup
tinyproxy.@tinyproxy[0].Port=8888
tinyproxy.@tinyproxy[0].Timeout=600
tinyproxy.@tinyproxy[0].DefaultErrorFile=/usr/share/tinyproxy/default.html
tinyproxy.@tinyproxy[0].StatFile=/usr/share/tinyproxy/stats.html
tinyproxy.@tinyproxy[0].LogLevel=Info
tinyproxy.@tinyproxy[0].MaxClients=100
tinyproxy.@tinyproxy[0].MinSpareServers=5
tinyproxy.@tinyproxy[0].MaxSpareServers=20
tinyproxy.@tinyproxy[0].StartServers=10
tinyproxy.@tinyproxy[0].MaxRequestsPerChild=0
tinyproxy.@tinyproxy[0].ViaProxyName=tinyproxy
tinyproxy.@tinyproxy[0].enabled=1
tinyproxy.@tinyproxy[0].Allow=x.x.x.2
tinyproxy.@tinyproxy[0].Listen=x.x.x.254
tinyproxy.@tinyproxy[0].Syslog=1
tinyproxy.@tinyproxy[0].ConnectPort=443 563 80
ucitrack.@tinyproxy[0]=tinyproxy
ucitrack.@tinyproxy[0].init=tinyproxy
root@OpenWrt:~# uci show | grep redirect
firewall.@redirect[2]=redirect
firewall.@redirect[2].name=Transparent Proxy Redirect
firewall.@redirect[2].src=lan
firewall.@redirect[2].proto=tcp
firewall.@redirect[2].dest_port=8888
firewall.@redirect[2].src_dport=80
firewall.@redirect[2].src_dip=!x.x.x.254
firewall.@redirect[2].dest_ip=x.x.x.254
anyone using this proxy with openwrt?
logs:
Apr 8 14:15:25 OpenWrt daemon.info tinyproxy[2360]: Shutting down.
Apr 8 14:15:26 OpenWrt daemon.info tinyproxy[2419]: Initializing tinyproxy ...
Apr 8 14:15:26 OpenWrt daemon.info tinyproxy[2419]: Reloading config file
Apr 8 14:15:26 OpenWrt daemon.info tinyproxy[2419]: Listening on IP x.x.x.254
Apr 8 14:15:26 OpenWrt daemon.info tinyproxy[2419]: Stathost set to "127.0.0.1"
Apr 8 14:15:26 OpenWrt daemon.info tinyproxy[2419]: Setting "Via" header to 'tinyproxy'
Apr 8 14:15:26 OpenWrt daemon.info tinyproxy[2419]: Adding Port [443] to the list allowed by CONNECT
Apr 8 14:15:26 OpenWrt daemon.info tinyproxy[2419]: Adding Port [563] to the list allowed by CONNECT
Apr 8 14:15:26 OpenWrt daemon.info tinyproxy[2419]: Adding Port [80] to the list allowed by CONNECT
Apr 8 14:15:26 OpenWrt daemon.info tinyproxy[2419]: Now running as group "nogroup".
Apr 8 14:15:26 OpenWrt daemon.info tinyproxy[2419]: Now running as user "nobody".
Apr 8 14:15:26 OpenWrt daemon.crit tinyproxy[2419]: ERROR: Could not create log file /var/log/tinyproxy.log: Bad file descriptor.
Apr 8 14:15:26 OpenWrt daemon.crit tinyproxy[2419]: Falling back to syslog logging
Apr 8 14:15:26 OpenWrt daemon.info tinyproxy[2419]: Creating child number 1 of 10 ...
Apr 8 14:15:26 OpenWrt daemon.info tinyproxy[2419]: Creating child number 2 of 10 ...
Apr 8 14:15:26 OpenWrt daemon.info tinyproxy[2419]: Creating child number 3 of 10 ...
Apr 8 14:15:26 OpenWrt daemon.info tinyproxy[2419]: Creating child number 4 of 10 ...
Apr 8 14:15:26 OpenWrt daemon.info tinyproxy[2419]: Creating child number 5 of 10 ...
Apr 8 14:15:26 OpenWrt daemon.info tinyproxy[2419]: Creating child number 6 of 10 ...
Apr 8 14:15:26 OpenWrt daemon.info tinyproxy[2419]: Creating child number 7 of 10 ...
Apr 8 14:15:26 OpenWrt daemon.info tinyproxy[2419]: Creating child number 8 of 10 ...
Apr 8 14:15:26 OpenWrt daemon.info tinyproxy[2419]: Creating child number 9 of 10 ...
Apr 8 14:15:26 OpenWrt daemon.info tinyproxy[2419]: Creating child number 10 of 10 ...
Apr 8 14:15:26 OpenWrt daemon.info tinyproxy[2419]: Finished creating all children.
Apr 8 14:15:26 OpenWrt daemon.info tinyproxy[2419]: Setting the various signals.
Apr 8 14:15:26 OpenWrt daemon.info tinyproxy[2419]: Starting main loop. Accepting connections.
Apr 8 14:15:46 OpenWrt daemon.info tinyproxy[2420]: Connect (file descriptor 6): ATT.lan [x.x.x.2]
Apr 8 14:15:47 OpenWrt daemon.info tinyproxy[2424]: Connect (file descriptor 6): ATT.lan [x.x.x.2]
Apr 8 14:15:53 OpenWrt daemon.info dnsmasq-dhcp[2140]: DHCPINFORM(br-lan) x.x.x.2 8c:70:5a:c6:4f:ec
Apr 8 14:15:53 OpenWrt daemon.info dnsmasq-dhcp[2140]: DHCPACK(br-lan) x.x.x.2 8c:70:5a:c6:4f:ec ATT
Apr 8 14:16:22 OpenWrt daemon.info tinyproxy[2423]: Connect (file descriptor 6): ATT.lan [x.x.x.2]
Apr 8 14:16:22 OpenWrt daemon.info tinyproxy[2422]: Connect (file descriptor 6): ATT.lan [x.x.x.2]
Apr 8 14:16:46 OpenWrt daemon.info tinyproxy[2421]: Connect (file descriptor 6): ATT.lan [x.x.x.2]
Apr 8 14:16:46 OpenWrt daemon.info tinyproxy[2425]: Connect (file descriptor 6): ATT.lan [x.x.x.2]
Apr 8 14:16:48 OpenWrt daemon.info tinyproxy[2429]: Connect (file descriptor 6): ATT.lan [x.x.x.2]
Apr 8 14:16:48 OpenWrt daemon.info tinyproxy[2428]: Connect (file descriptor 6): ATT.lan [x.x.x.2]
Apr 8 14:16:51 OpenWrt daemon.notice tinyproxy[2419]: Waiting servers (2) is less than MinSpareServers (5). Creating new child.
Apr 8 14:16:56 OpenWrt daemon.notice tinyproxy[2419]: Waiting servers (3) is less than MinSpareServers (5). Creating new child.
Apr 8 14:17:01 OpenWrt daemon.notice tinyproxy[2419]: Waiting servers (4) is less than MinSpareServers (5). Creating new child.
Apr 8 14:17:04 OpenWrt daemon.info tinyproxy[2427]: Connect (file descriptor 6): ATT.lan [x.x.x.2]
Apr 8 14:17:05 OpenWrt daemon.info tinyproxy[2426]: Connect (file descriptor 6): ATT.lan [x.x.x.2]
Apr 8 14:17:06 OpenWrt daemon.notice tinyproxy[2419]: Waiting servers (3) is less than MinSpareServers (5). Creating new child.
Apr 8 14:17:11 OpenWrt daemon.notice tinyproxy[2419]: Waiting servers (4) is less than MinSpareServers (5). Creating new child.
Apr 8 14:17:16 OpenWrt daemon.err tinyproxy[2420]: read_request_line: Client (file descriptor: 6) closed socket before read.
Apr 8 14:17:16 OpenWrt daemon.err tinyproxy[2420]: Error reading readble client_fd 6
Apr 8 14:17:16 OpenWrt daemon.warn tinyproxy[2420]: Could not retrieve request entity
Apr 8 14:17:16 OpenWrt daemon.err tinyproxy[2424]: read_request_line: Client (file descriptor: 6) closed socket before read.
Apr 8 14:17:16 OpenWrt daemon.err tinyproxy[2424]: Error reading readble client_fd 6
Apr 8 14:17:16 OpenWrt daemon.warn tinyproxy[2424]: Could not retrieve request entity
(Last edited by opticalc on 8 Apr 2015, 20:37)