News for hackers. Stuff that matters.
Re:Putting Raspberry Pi Online with Caddy and SSH Tunnel by iamd3vil on Monday October 26, 2020 @04:21AM (#24893878)
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.
Re:Putting Raspberry Pi Online with Caddy and SSH Tunnel by mercora on Monday October 26, 2020 @05:48AM (#24894364)
while i think this is true (any other vpn software would work too though) i want to point out that you actually can bring up a tun interface using ssh with the "-w local_tun[:remote_tun]" flag somewhat easily if you want to. It is also possible to make forwarding work in either direction using an integrated socks proxy using "-R" or "-D" flags ...
Re:Putting Raspberry Pi Online with Caddy and SSH Tunnel by anderspitman on Monday October 26, 2020 @04:15PM (#24900830)
> you actually can bring up a tun interface using ssh

Beware of TCP over TCP issues[0] when using SSH for tun.

[0]: http://sites.inka.de/bigred/devel/tcp-tcp.html

Re:Putting Raspberry Pi Online with Caddy and SSH Tunnel by thespoonbends on Monday October 26, 2020 @04:33AM (#24893940)
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 by iamd3vil on Monday October 26, 2020 @04:43AM (#24893993)
OP has literally written in the gist about exploring a way to map entire port range and avoiding doing this, so the non hacky way of doing this is setting up something like a wireguard tunnel. That's the reason I suggested doing this instead of a tunnel which has other disadvantages like doing TCP on TCP.
Re:Putting Raspberry Pi Online with Caddy and SSH Tunnel by sneak on Monday October 26, 2020 @05:12AM (#24894179)
SSH tunnels do not run TCP inside of them, just the bytes of the connection data itself.

The only TCP in use is the TCP connection of the SSH connection between hosts.

Re:Putting Raspberry Pi Online with Caddy and SSH Tunnel by iamd3vil on Monday October 26, 2020 @05:17AM (#24894213)
Ohh TIL but my other point still stands.
Re:Putting Raspberry Pi Online with Caddy and SSH Tunnel by xorcist on Monday October 26, 2020 @06:26AM (#24894569)
It used to be common (at least not unhead of) to run ppp over ssh, which has this problem.