Why is Tinyproxy reporting HTTP 500 right after getting DNS response?

Offen
#445 4 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
20/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Veraltet
Tech-Stack
c
Bereich
backend, networking

Rechercherichtung

The report provides a Tinyproxy 1.11.0 configuration and a packet trace showing DNS replies immediately before HTTP 500, but names no source files or tests. Start by checking Tinyproxy logs and tracing the CONNECT request through DNS resolution and connection setup; compare the configured Bind address with the WireGuard interface and route. Done means identifying the cause and confirming a successful CONNECT, but the issue has had no activity for years and appears to be a request for help.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

Tinyproxy version

1.11.0

Issue

Probably my issue, so I'm just asking for help. Trying to set up a web proxy server on my LAN that provides a WireGuard VPN tunnel to a VPN server in the cloud. I'm using Firefox as the client and have configured it to use the proxy server that is running Tinyproxy. On an attempt to access a site, Firefox immediately reports "having trouble finding ... can't connect." Using the tshark sniffer to see traffic, I see the following, where "..." indicates I've truncated a line and "!" indicates a line that tshark displayed out of timestamp order and which I have here moved into timestamp order.
Addresses:
192.168.50.200 client (Firefox)
192.168.50.212 Tinyproxy server and WireGuard client machine
10.4.0.2 WireGuard tunnel virtual interface wg0
10.4.0.1, referenced in .conf Bind, is the cloud end of tunnel; 10.4.0.0/16 is routed to wg0 interface
1.1.1.2 DNS server in cloud

  502 47.114586667 192.168.50.200 → 192.168.50.212 HTTP 277 CONNECT ifconfig.me:443 HTTP/1.1
  503 47.114636300 192.168.50.212 → 192.168.50.200 TCP 66 8888 → 57666 [ACK] ...
  504 47.115387336     10.4.0.2 → 1.1.1.2      DNS 57 Standard query 0x7a6e A ifconfig.me
  505 47.115428139     10.4.0.2 → 1.1.1.2      DNS 57 Standard query 0x8f64 AAAA ifconfig.me
 !515 47.319108832      1.1.1.2 → 10.4.0.2     DNS 128 Standard query response 0x8f64 AAAA ifconfig.me ...
 !516 47.319109241      1.1.1.2 → 10.4.0.2     DNS 73 Standard query response 0x7a6e A ifconfig.me A 34.117.59.81
  506 47.319604790 192.168.50.212 → 192.168.50.200 TCP 170 HTTP/1.0 500 Unable to connect  [TCP segment of a reassembled PDU]

What have I done, or omitted, to cause Tinyproxy to report an HTTP 500 error immediately after receiving a DNS response?

.conf file:
Port 8888
Listen 192.168.50.212
Bind 10.4.0.1
Timeout 600
DefaultErrorFile "/usr/share/tinyproxy/default.html"
StatFile "/usr/share/tinyproxy/stats.html"
Syslog On
LogLevel Info
MaxClients 2
Allow 127.0.0.1
Allow 192.168.0.0/16
ViaProxyName "tinyproxy"

Vorherrschende Sprache
C
Sterne
6.1k
Forks
768
Ø Merge
15 T. 3 Std.
Gemergte PRs (30 T.)
1

Entwicklungsumgebung

Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus tinyproxy/tinyproxy

Alle Issues in tinyproxy/tinyproxy

Ähnliche Issues

Weitere Issues zu C

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.