[GH-ISSUE #42] HTTP PROXY support #1080

Open
opened 2026-04-22 00:54:07 -05:00 by GiteaMirror · 4 comments
Owner

Originally created by @vaclcer on GitHub (May 18, 2025).
Original GitHub issue: https://github.com/fosrl/newt/issues/42

Originally assigned to: @oschwartz10612 on GitHub.

Hello, newt seems to ignore HTTP_PROXY or http_proxy env variables. My question is, will this ever work on Sites with Internet access realised ONLY via HTTP proxy? (tight corporate environment...). Thanks!

ERROR: 2025/05/18 21:44:30 Failed to connect: failed to get token: failed to get token: No newt found with that newtId. Retrying in 10s...

Originally created by @vaclcer on GitHub (May 18, 2025). Original GitHub issue: https://github.com/fosrl/newt/issues/42 Originally assigned to: @oschwartz10612 on GitHub. Hello, newt seems to ignore HTTP_PROXY or http_proxy env variables. My question is, will this ever work on Sites with Internet access realised ONLY via HTTP proxy? (tight corporate environment...). Thanks! `ERROR: 2025/05/18 21:44:30 Failed to connect: failed to get token: failed to get token: No newt found with that newtId. Retrying in 10s...`
GiteaMirror added the enhancement label 2026-04-22 00:54:07 -05:00
Author
Owner

@oschwartz10612 commented on GitHub (May 22, 2025):

Hum good question this is to use a HTTP proxy to the Pangolin server itself? Would simply editing the --endpoint work or do you need that HTTP_PROXY to work?

<!-- gh-comment-id:2899864091 --> @oschwartz10612 commented on GitHub (May 22, 2025): Hum good question this is to use a HTTP proxy to the Pangolin server itself? Would simply editing the `--endpoint` work or do you need that HTTP_PROXY to work?
Author
Owner

@vaclcer commented on GitHub (May 22, 2025):

Yes. Pangolin server sits on a public IP, no issues there. But the client (the Site, in Pangolin's terminology) has to go only via HTTP Proxy (like Squid), defined in http_proxy (or HTTP_PROXY) env variable on the client.

FRP supports it - https://github.com/fatedier/frp?tab=readme-ov-file#connecting-to-frps-via-proxy

<!-- gh-comment-id:2900001236 --> @vaclcer commented on GitHub (May 22, 2025): Yes. Pangolin server sits on a public IP, no issues there. But the client (the Site, in Pangolin's terminology) has to go only via HTTP Proxy (like Squid), defined in http_proxy (or HTTP_PROXY) env variable on the client. FRP supports it - https://github.com/fatedier/frp?tab=readme-ov-file#connecting-to-frps-via-proxy
Author
Owner

@oschwartz10612 commented on GitHub (May 24, 2025):

Ill look in to trying to add this!

<!-- gh-comment-id:2906350664 --> @oschwartz10612 commented on GitHub (May 24, 2025): Ill look in to trying to add this!
Author
Owner

@DenkingOfficial commented on GitHub (Sep 9, 2025):

Hey!
Any updates on proxy support for client?

<!-- gh-comment-id:3269601402 --> @DenkingOfficial commented on GitHub (Sep 9, 2025): Hey! Any updates on proxy support for client?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/newt#1080