Trying to pass through ports to Docker apps

  • Over the years I've had no problems passing traffic to windows hosts via port forwarding in my dd-wrt router. For some reason I can't seem to pass ports to docker apps inside of OMV. For example, I am trying to accept web traffic or a mumble server on port 64738. I pass this port through (tcp and udp) to the IP of my OMV box and it never works. If I look at canyouseeme.org it says the port is not responding. I have no problem passing port 80 traffic to a windows box inside of OMV on virtualbox so I don't think it is a networking issue. I checked the network tab in OMV and there isn't any special setup. I have an IPv4 address set up and IPv6 is disabled. No firewall or anything like that. I triple-checked the settings inside of Mumble and the correct port is there. Now that I think about it, any of the online OMV tutorials that required me to open a port never worked - maybe it is related to this issue.

  • Show your complete docker run, docker compose, or docker create file for the container you are running. The settings you can see inside the application are meaningless if there is no host:container port mapping in place.

    --
    Google is your friend and Bob's your uncle!


    OMV AMD64 7.x on headless Chenbro NR12000 1U 1x 8m Quad Core E3-1220 3.1GHz 32GB ECC RAM.

  • Show your complete docker run, docker compose, or docker create file for the container you are running. The settings you can see inside the application are meaningless if there is no host:container port mapping in place.

    Thank you for the reply. It's just a docker from the community repository - goofball222. Here is the binding part from the .ini - is that enough?


    "NetworkMode": "bridge",

    "PortBindings": {

    "64738/tcp": [

    {

    "HostIp": "192.168.1.100",

    "HostPort": "64738"

    }

    ],

    "64738/udp": [

    {

    "HostIp": "192.168.1.100",

    "HostPort": "64738"

    }

    ]

    },

  • No, not the .ini. The docker run, docker compose, or docker create file you used to build the container.

    --
    Google is your friend and Bob's your uncle!


    OMV AMD64 7.x on headless Chenbro NR12000 1U 1x 8m Quad Core E3-1220 3.1GHz 32GB ECC RAM.

  • I created the docker right from the UI (I've actually never done it via script). I apologize if that doesn't answer your question - my knowledge is limited in this area.


    This is what is in the info of the docker - is that what you are looking for?


    [

    {

    "Id": "sha256:8a6916b084c816712652f52aeecf9e76ec011e1c3801ad5d0d0eb498f56e743",

    "RepoTags": [

    "goofball222/murmur:latest"

    ],

    "RepoDigests": [

    "goofball222/murmur@sha256:c3107145eda1fc330e6252e8b552d790ab31a1fe152d0d276d2e8cea91df1f"

    ],

    "Parent": "",

    "Comment": "",

    "Created": "2019-04-01T02:00:55.103224553Z",

    "Container": "b79353794f450fccedb1b6f3acfcd19a4530d376331fc3c4a9a12bcd3cabcfeb",

    "ContainerConfig": {

    "Hostname": "b79353794f45",

    "Domainname": "",

    "User": "",

    "AttachStdin": false,

    "AttachStdout": false,

    "AttachStderr": false,

    "ExposedPorts": {

    "64738/tcp": {},

    "64738/udp": {}

    },

    "Tty": false,

    "OpenStdin": false,

    "StdinOnce": false,

    "Env": [

    "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",

    "DEBUG=false",

    "MURMUR_OPTS=",

    "PGID=999",

    "PUID=999",

    "RUN_CHOWN=true"

    ],

    "Cmd": [

    "/bin/sh",

    "-c",

    "#(nop) ",

    "CMD [\"murmur\"]"

    ],

    "ArgsEscaped": true,

    "Image": "sha256:713efeadf91b86212fe6079f7b79b2c1fc689c2b1c13c5427576dd058baa47a4",

    "Volumes": {

    "/opt/murmur/cert": {},

    "/opt/murmur/config": {},

    "/opt/murmur/data": {},

    "/opt/murmur/log": {}

    },

    "WorkingDir": "/opt/murmur",

    "Entrypoint": [

    "docker-entrypoint.sh"

    ],

    "OnBuild": null,

    "Labels": {

    "org.label-schema.build-date": "2019-04-01T02:00:28Z",

    "org.label-schema.license": "Apache-2.0",

    "org.label-schema.name": "Murmur Server",

    "org.label-schema.schema-version": "1.0",

    "org.label-schema.url": "https://github.com/goofball222/murmur",

    "org.label-schema.vcs-ref": "107157b",

    "org.label-schema.vcs-url": "https://github.com/goofball222/murmur.git",

    "org.label-schema.vendor": "The Goofball - goofball222@gmail.com",

    "org.label-schema.version": "1.2.19"

    }

    },

    "DockerVersion": "18.03.1-ee-3",

    "Author": "",

    "Config": {

    "Hostname": "",

    "Domainname": "",

    "User": "",

    "AttachStdin": false,

    "AttachStdout": false,

    "AttachStderr": false,

    "ExposedPorts": {

    "64738/tcp": {},

    "64738/udp": {}

    },

    "Tty": false,

    "OpenStdin": false,

    "StdinOnce": false,

    "Env": [

    "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",

    "DEBUG=false",

    "MURMUR_OPTS=",

    "PGID=999",

    "PUID=999",

    "RUN_CHOWN=true"

    ],

    "Cmd": [

    "murmur"

    ],

    "ArgsEscaped": true,

    "Image": "sha256:713efeadf91b86212fe6079f7b79b2c1fc689c2b1c13c5427576dd058baa47a4",

    "Volumes": {

    "/opt/murmur/cert": {},

    "/opt/murmur/config": {},

    "/opt/murmur/data": {},

    "/opt/murmur/log": {}

    },

    "WorkingDir": "/opt/murmur",

    "Entrypoint": [

    "docker-entrypoint.sh"

    ],

    "OnBuild": null,

    "Labels": {

    "org.label-schema.build-date": "2019-04-01T02:00:28Z",

    "org.label-schema.license": "Apache-2.0",

    "org.label-schema.name": "Murmur Server",

    "org.label-schema.schema-version": "1.0",

    "org.label-schema.url": "https://github.com/goofball222/murmur",

    "org.label-schema.vcs-ref": "107157b",

    "org.label-schema.vcs-url": "https://github.com/goofball222/murmur.git",

    "org.label-schema.vendor": "The Goofball - goofball222@gmail.com",

    "org.label-schema.version": "1.2.19"

    }

    },

    "Architecture": "amd64",

    "Os": "linux",

    "Size": 48127364,

    "VirtualSize": 48127364,

    "GraphDriver": {

    "Data": {

    "LowerDir": "/srv/dev-disk-by-label-Docker/Docker/overlay2/177c7bc62af1493114af63787df39b03648012865dff6db901a843f60e1b52fe/diff:/srv/dev-disk-by-label-Docker/Docker/overlay2/633b083bc085bcc132806496de7383c64eccb99e9edc893a560313631b6e865a/diff:/srv/dev-disk-by-label-Docker/Docker/overlay2/fac769420c1e8d954417c111a67bdba0d2c87624577f4e39c94db1470d366bb4/diff",

    "MergedDir": "/srv/dev-disk-by-label-Docker/Docker/overlay2/27c30b5cf559daf59412ea4215982857471ddab5307eb68554d6d73fbfd224c0/merged",

    "UpperDir": "/srv/dev-disk-by-label-Docker/Docker/overlay2/27c30b5cf559daf59412ea4215982857471ddab5307eb68554d6d73fbfd224c0/diff",

    "WorkDir": "/srv/dev-disk-by-label-Docker/Docker/overlay2/27c30b5cf559daf59412ea4215982857471ddab5307eb68554d6d73fbfd224c0/work"

    },

    "Name": "overlay2"

    },

    "RootFS": {

    "Type": "layers",

    "Layers": [

    "sha256:bcf2f368fe234217249e00ad9d762d8f1a3156d60c442ed92079fa5b120634a1",

    "sha256:9f5f37ee3a6b5fedb0d7028772e18d710003591de1017c697c63e56569b3bc8",

    "sha256:c4d4f5884b1190edbe844a063e51d3a50781af8eaf893c6c89be09b11b7e60df",

    "sha256:65beb772b41e4991604055e1246e3dfe785a9de0d9ca0c3ad5076ded9f0f5720"

    ]

    },

    "Metadata": {

    "LastTagTime": "0001-01-01T00:00:00Z"

    }

    }

    ]

  • That doesn't tell anyone how you created the container.

    --
    Google is your friend and Bob's your uncle!


    OMV AMD64 7.x on headless Chenbro NR12000 1U 1x 8m Quad Core E3-1220 3.1GHz 32GB ECC RAM.

  • This is the only way I know how to create a container, all done in the docker UI:


    1. Search for the docker you want and download it.


    2. Once downloaded, click on "Run image".


    3. Fill out the appropriate values on the next screen

  • Unfortunately, many if not most have moved on to OMV 5 that does not have that Docker interface. But if you posted screenshots it couldn't hurt.


    You still have not provided one single detail about how you configured the container when you created it. UserID, GroupID, Networking type and specifics, Volumes and Bind Mounts, etc.

    --
    Google is your friend and Bob's your uncle!


    OMV AMD64 7.x on headless Chenbro NR12000 1U 1x 8m Quad Core E3-1220 3.1GHz 32GB ECC RAM.

  • I am sorry that this isn't my area but those are the only steps that I took to create the docker. If you just tell me what else you need I'll gladly get it for you. At this point the only information I have is what is available in the Docker UI in OMV.

    Can you by any chance pass along any settings you set inside the OMV Docker UI, like gderf asked? Also, which image are you using in particular?


    Greetings

    David

    "Well... lately this forum has become support for everything except omv" [...] "And is like someone is banning Google from their browsers"


    Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.

    Upload Logfile via WebGUI/CLI
    #openmediavault on freenode IRC | German & English | GMT+1
    Absolutely no Support via PM!

  • Can you by any chance pass along any settings you set inside the OMV Docker UI, like gderf asked? Also, which image are you using in particular?


    Greetings

    David

    Thanks David, I didn't do this before because I was told they wouldn't be helpful. Anyway, here is a screenshot of the UI. By default it put 0.0.0.0 as the IP - I later tried with the actual IP but that did not have any effect on external access. Internal access is fine.


    Murmer docker: https://hub.docker.com/r/goofball222/murmur/dockerfile

  • Do you have ssh access? Whats the output of docker ps -a?


    Greetings

    David

    "Well... lately this forum has become support for everything except omv" [...] "And is like someone is banning Google from their browsers"


    Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.

    Upload Logfile via WebGUI/CLI
    #openmediavault on freenode IRC | German & English | GMT+1
    Absolutely no Support via PM!

  • Ports look fine, but maybe go back to 0.0.0.0 and lets investigate further from that.


    Greetings

    David

    "Well... lately this forum has become support for everything except omv" [...] "And is like someone is banning Google from their browsers"


    Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.

    Upload Logfile via WebGUI/CLI
    #openmediavault on freenode IRC | German & English | GMT+1
    Absolutely no Support via PM!

  • Ports look fine, but maybe go back to 0.0.0.0 and lets investigate further from that.


    Greetings

    David

    Thanks again, I have done this:

    <W>2020-08-18 09:50:47.360 1 => Server listening on 0.0.0.0:64738


    I also verified that mumble still works internally and that the port is still showing as not available on canyouseeme.org. The port forward for 80 is still working to the windows box running inside of omv virtualbox.

  • Use Host Networking where possible in dockers unless there are reasons not to.


    Did you forward TCP port 64738 in your router to the IP address of your OMV machine?

    --
    Google is your friend and Bob's your uncle!


    OMV AMD64 7.x on headless Chenbro NR12000 1U 1x 8m Quad Core E3-1220 3.1GHz 32GB ECC RAM.

  • Thank you for that. Unfortunately when I change to host mode the port forwarding section goes away in the UI.

    That's the purpose of using Host mode networking. You do not have to declare any port forwards yourself.

    --
    Google is your friend and Bob's your uncle!


    OMV AMD64 7.x on headless Chenbro NR12000 1U 1x 8m Quad Core E3-1220 3.1GHz 32GB ECC RAM.

  • That's the purpose of using Host mode networking. You do not have to declare any port forwards yourself.

    Ah, that is so simple and makes a ton of sense. I removed but unfortunately canyouseeme.org is still reporting the port as not open. Any other ideas?


    "NetworkMode": "host",

    "PortBindings": {},

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!