I am running a gitea instance in a rootless docker container.
I followed the install steps from Rootless mode | Docker Docs and everything works fine except 1 thing; exposing ports externally.
For the main interface, I have set up an apache proxy on a custom domain to localhost:3000 (the port the webui is runbing on).
I have also setup an ssh server inside gitea for authentication via on port 3333.
However I can’t for the live of me seem to connect to that port from the outside world.
I have exposed the port in my docker-compose:
ports:
- “3000:3000”
- “3333:3333”
I can connect to the ssh on port 3333 from the local server via
ssh 127.0.0.1 -p 3333`
and even via
ssh <external hostname> -p 3333`
But I cannot seem to connect to that port from any outside client.
Running
ssh <external hostname> -p 3333`
from my local PC will just timeout
ssh: connect to host <host> port 3333: Connection timed out
netstat -tulpn gives me:
tcp 0 0 0.0.0.0:3333 0.0.0.0:* LISTEN 1095/rootlesskit
tcp6 0 0 :::3333 :::* LISTEN 1095/rootlesskit
I am using VPNkit as network driver since slirp4netns is not available.
What step am I missing to be able to access port 3333 from an external machine?