Skip to content

Open Port Proxy Issues #579

@BusyBird15

Description

@BusyBird15

Tinyproxy version

latest available through APT

Issue

I am trying to use my tinyproxy server through an open router port.

  • On the local network connecting using the machine's local IP, the proxy works completely fine.
  • Using the public IP, the proxy does not connect at all. Opening it in the browser causes it to load forever, and there is no connections logged anywhere.

System

Ubuntu 24.04 LTS

Commands

~$ tinyproxy -c /etc/tinyproxy/tinyproxy.conf -d
WARNING: obsolete config item on line 16
WARNING: obsolete config item on line 17
WARNING: obsolete config item on line 18
tinyproxy: Could not create listening sockets.
~$ sudo lsof -i :8888
COMMAND     PID  USER FD   TYPE DEVICE SIZE/OFF NODE NAME
tinyproxy 70074 tyler 3u  IPv4 231685      0t0  TCP *:8888 (LISTEN)
~$ sudo journalctl -u tinyproxy --no-pager
...
Jul 03 09:45:23 tyler systemd[1]: Started tinyproxy.service - Tinyproxy lightweight HTTP Proxy.
Jul 03 09:45:23 tyler (inyproxy)[70074]: tinyproxy.service: Referenced but unset environment variable evaluates to an empty string: FLAGS
Jul 03 09:45:23 tyler tinyproxy[70074]: WARNING: obsolete config item on line 16
Jul 03 09:45:23 tyler tinyproxy[70074]: WARNING: obsolete config item on line 17
Jul 03 09:45:23 tyler tinyproxy[70074]: WARNING: obsolete config item on line 18
Jul 03 09:45:23 tyler tinyproxy[70074]: tinyproxy: Could not create file /home/tyler/tinyproxy.log: Permission denied
~$ sudo ufw status verbose
Status: inactive

And my config file is as follows:

User tyler
Group tyler
Port 8888
Listen 0.0.0.0
Bind 0.0.0.0

Timeout 600
DefaultErrorFile "/usr/share/tinyproxy/default.html"
StatFile "/usr/share/tinyproxy/stats.html"

LogLevel Info
LogFile "/home/tyler/tinyproxy.log"
PidFile "/run/tinyproxy/tinyproxy.pid"

MaxClients 100
MinSpareServers 5
MaxSpareServers 20
StartServers 10

Allow 127.0.0.1
Allow 192.168.0.0/16

ViaProxyName "tinyproxy"

ConnectPort 443
ConnectPort 563

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