Live data from Hacker News

Putting Raspberry Pi Online with Caddy and SSH Tunnel

gist.github.com

1–10 of 157 posts

Re: Putting Raspberry Pi Online with Caddy and SSH Tunnel

#3
Is your plan to run some sort of IOT application on the PI?

I'm a little confused as to why you would go through the trouble of running a reverse proxy on a remote server that is fully capable of hosting your web applications and or just setting up a port forwarding rule on your local wifi router to redirect 10080 to 80.

Re: Putting Raspberry Pi Online with Caddy and SSH Tunnel

#4
I have a similar setup but instead of SSH Tunnels i use wireguard.

In my case some services are not routed to the public internet and only accessible from within my privat wireguard network. E.g my smart home hub. I really like the flexibility to decide whats available for who.

Re: Putting Raspberry Pi Online with Caddy and SSH Tunnel

#7

Is your plan to run some sort of IOT application on the PI? I'm a little confused as to why you would go through the trouble of running a reverse proxy on a remote server that is fully capable of hosting your web applications and or just setting up a port forwarding rule on your local wifi router to redirect 10080 to 80.

I do a similar thing so I don't have to store sensitive data on a VPS. The sensitive data is used to compute non-sensitive results that I'm happy to go via a VPS.

Re: Putting Raspberry Pi Online with Caddy and SSH Tunnel

#8
If you are on AT&T u-verse you can just assign a part of your IPv6 subnet (which appears to be static) to your RPi and disable the firewall to that host. Then you can accept incoming connections on ports 80, 22 and even 25 (for 25 I had to send a chat message in my AT&t account and it was opened the same day). Then you can have a full IPv6 web server at no additional cost to the price of your u-verse home internet.

Re: Putting Raspberry Pi Online with Caddy and SSH Tunnel

#9
post #2

I think a better option would be to create a Wireguard tunnel between Raspberry Pi and the remote server instead of a SSH Tunnel. Then there is no need to add or change ports and restart the tunnel for every service.

OP's solution sound good enough for their needs.

Solutions can always be improved, but it's not always worth doing that.

Re: Putting Raspberry Pi Online with Caddy and SSH Tunnel

#10

Is your plan to run some sort of IOT application on the PI? I'm a little confused as to why you would go through the trouble of running a reverse proxy on a remote server that is fully capable of hosting your web applications and or just setting up a port forwarding rule on your local wifi router to redirect 10080 to 80.

Privacy; keep data local, without exposing your residential IP.
Post reply on HN