forwarded port from docker image not visible in netstat -tln

wbr2000

Cadet
Joined
Jan 11, 2022
Messages
2
I run Jenkins in a docker container on TrueNAS-SCALE-22.02.2.1. I can access the Jenkins webserver from other computers in the network with the URL hostx:9080. But I fail to access the Jenkins Webserver, when I try to connect through an SSH tunnel hosted hostx. Running the command "netstat -tln" on hostx does not show any of the exposed ports of the docker image. Port 80, 443 etc are listed and port 80 can be used through the ssh tunnel.

I had no issue to access via ssh tunnel when I was using TrueNAS Core with a vm and jenkins running in the vm.
 

aekt

Dabbler
Joined
Jul 22, 2022
Messages
13
Kubernetes uses iptables prerouting, it won’t show up on netstat
 

wbr2000

Cadet
Joined
Jan 11, 2022
Messages
2
How to access then a docker instance via SSH tunnel? The definition looks for a hostx:9080 address.
 
Top