Proxy to port forwarding help


(joe brawley) #1

New to networking >.< and caddy, my net admin told me to figure this out and I’m struggling…

Attempting to connect basic proxy in front of host site im attempting to reach from outside network.

sub.domain.com {                       
	tls {
		dns digitalocean
	}
	proxy / https://xxx.xxx.xxx.55:1234 {
		transparent
	}
}  

I have routing from sub.domain.com to public IP address and I see communication forwarding to caddy host.
xxx.xxx.xxx.43

I’m attempting go from sub.domain.com through cady host xxx.xxx.xxx.43 to host xxx.xxx.xxx.55 over port 1234.

Running the caddy file shows success activating features… done.

I cannot reach anything on sub.domain. com but i can reach host via xxx.xxx.xxx.55:1234

I’ve been researching this for days… took me about a week to figure out the dns digitalocean portion… >.<

Any help would be great.
Thank you!!!


(Matthew Fay) #2

Hi @jbrawley, welcome to the Caddy community.

This is a little vague, I’m afraid. What, exactly, do you see when you try? An error? A timeout? A certificate issue?

Are you accessing it via HTTP or HTTPS? Caddy is trying HTTPS, based on your Caddyfile.

You can use cURL to get an idea of what Caddy’s seeing when it tries to connect to the upstream host.

Try curl -IL https://xxx.xxx.xxx.55:1234 from the shell on the Caddy host.


(joe brawley) #3

Hello @Whitestrake thank you so much for your time to help me out. I apologize for both the delay and vagueness. The issue was totally too many attempts and too many changes to everything… i needed to remove all sites from the caddy folder and start fresh i was able to isolate the issue and get this running w/out any issues.

I’m excited to get this working and excited to learn more from the community!

Thanks again!!!