For those trying to host a git server on your home network like I have and encountered network issues even after port forwarding, you might be behind carrier grade NAT. You'll need some forwarding solution, or use an SSH reverse tunnel to punch through CGNat. Use something like ngrok or localhost.run. For example if you're using gitea, host it on localhost:8080 then run this: ssh -R 80:localhost:8080 localhost.run Th…
How could one selfhost localhost.run setup on own wildcard domaine?
> alternatively host your own reverse SSH tunnel on a VPS somewhere.
To make a quick version, on a VPS or somewhere, install OpenSSH server. Modify your sshd.conf file adding,
GatewayPorts yes
Then you can use something like this, ssh -R 8080:localhost:22 user@server.example.com
After that, you can use, ssh user@server.example.com -p 8080
from any other computer and it will connect you to the machine you ran the ssh -R from.