Skip to content

My tinyproxy as reverse proxy is working very slow  #198

@pavelsr

Description

@pavelsr

Hello,

I use tinyproxy as reverse proxy for making web interface of 3G modem connected to raspberry pi available on LAN address of RPi.

Ip address of RPi in LAN is 192.168.0.106 and IP address of RPi that was assigned by DHCP server of modem is 192.168.8.100. I want that page available at 192.168.8.100 become available via 192.168.0.106

Reverse proxying is working, but after proxying web interface of modem through tinyproxy html is loading very slow and I can't access other webpages except main.

Here is my configuration ( /etc/tinyproxy/tinyproxy.conf ):

User tinyproxy
Group tinyproxy
Port 80
Timeout 60
DefaultErrorFile "/usr/share/tinyproxy/default.html"
StatFile "/usr/share/tinyproxy/stats.html"
Logfile "/var/log/tinyproxy/tinyproxy.log"
LogLevel Info
PidFile "/run/tinyproxy/tinyproxy.pid"
MaxClients 50
MinSpareServers 30
MaxSpareServers 50
StartServers 50
MaxRequestsPerChild 0
ViaProxyName "tinyproxy"
ConnectPort 80
ConnectPort 443
ConnectPort 563
# upstream 192.168.8.1:80
ReversePath "/" "http://192.168.8.1/"
ReverseOnly Yes
ReverseMagic Yes
ReverseBaseURL "http://192.168.0.106/"

Here is log of openning web page.

I noticed that message

INFO      Sep 15 09:09:58 [14791]: No upstream proxy for 192.168.8.1

is constantly repeating.

But connection is closing immediately if I uncomment # upstream 192.168.8.1:80 in config:

CONNECT   Sep 15 09:07:01 [14677]: Connect (file descriptor 7): 192.168.0.110 [192.168.0.110]
CONNECT   Sep 15 09:07:01 [14677]: Request (file descriptor 7): GET /html/home.html HTTP/1.1
CONNECT   Sep 15 09:07:01 [14677]: Rewriting URL: /html/home.html -> http://192.168.8.1/html/home.html
INFO      Sep 15 09:07:01 [14677]: Found upstream proxy 192.168.8.1:80 for 192.168.8.1
CONNECT   Sep 15 09:07:01 [14677]: Established connection to upstream proxy "192.168.8.1" using file descriptor 8.
INFO      Sep 15 09:07:01 [14677]: Closed connection between local client (fd:7) and remote client (fd:8)

What could be wrong in my configuratuion?

Version: tinyproxy 1.8.4

Features compiled in:
    XTinyproxy header
    Filtering
    Transparent proxy support
    Reverse proxy support
    Upstream proxy support

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions