How to proxy a local service on same machine as boringproxy server

i have one service running on port 7272 on the same machine which act as the boring proxy server and another server behind a nat which act as a client i want to route the service running on the boring proxy server machine through boring proxy but i could not figure out how to do this i have tried everything.

can someone please look at it, is it even possible.

This should work. I believe the proper way to do it is by chaging “Tunnel Port” from “Random” to 7272, and making sure to use “Server HTTPS” for “TLS Termination”

Are tunnels to the client behind the NAT working properly?

Also, I’m curious why you want to use boringproxy for this service rather than a normal reverse proxy like nginx or Caddy? A full reverse proxy will give you a lot of nice features boringproxy doesn’t have. It’s pretty minimal as a reverse proxy.

this doesnt work the service is up at https://127.0.0.1:7272 on the same system as boring proxy server i just want to keep it simple if there is any way domain is gate1.gate1.silvergram.in, tunnel port is 7272 client name is none client address is https://127.0.0.1 client port is 7272 tls termination is server https allow external tcp is false and everything else is false too

I think you might still need to assign a client for it to work, even though the client won’t be used. I seem to recall something weird along those lines.

adding client works thanks

1 Like