External access to docker contrainer

  • TL;DR need external access to a specific docker container, running on my OMV.


    I have a ghost blog installed in a docker contrainer (192.168.1.149:2368)


    I'm messing around with JAMstack and Netlify to get a static front-end running on GitHub (using my own domain name).


    Essentially, everything else is setup, but Netlify needs the address of where my ghost back-end is located (my docker container) for every time it rebuilds.


    I can't figure out how to give it access through to that container with port-forwarding etc.


    So far, all I have been able to do is get a ddns up and running, which taken me to my router login page.


    NB: using DD-WRT router firmware, so should be able to do just about anything needed. Also have OpenVPN policy routing so all external traffic to OMV (192.168.1.149) goes through VPN.


    Thanks! :cursing:

  • in your dd-wrt router, redirect all traficc to port 2368 to the same port and use IP of your NAS


    eg: if your NAS is 192.168.0.10 redirect 2368 to 192.168.0.10:2368



    PD: This is for a normal connetion, not sure if works ina VPN connection.

  • No dice on this unfortunately.


    Tried with and without the VPN setup - not sure why it's blocking


    ApplicationProtocolSource NetPort fromIP AddressPort toEnable

    NameTCP UDP BothSource NetPort FromIP AddressPort toEnable
    GhostBoth2368192.168.1.1492368X
  • I could be wrong, but I thought Docker had it's own unique IP? I know when I ipconfig....


    so I wonder if you were to forward to (in my example..) 172.17.0.1:2368.. if that would work? (I highly doubt it, but I've noticed that in my ipconfig before.


    (Edit: FWIW though, I've forwarded ports or Calibre, which I have running on Docker, and it works fine with just IPaddress:calibre port.)

  • I could be wrong, but I thought Docker had it's own unique IP? I know when I ipconfig....


    so I wonder if you were to forward to (in my example..) 172.17.0.1:2368.. if that would work? (I highly doubt it, but I've noticed that in my ipconfig before.


    (Edit: FWIW though, I've forwarded ports or Calibre, which I have running on Docker, and it works fine with just IPaddress:calibre port.)

    How are you running ipconfig? I ssh in and altried sheelInABox - ipconfig and ifconfig are both 'command not found'

  • How are you running ipconfig? I ssh in and altried sheelInABox - ipconfig and ifconfig are both 'command not found'

    Ok so i get the below when running ip a



    at line 13 - i port-forwarded (like in my earlier post) using the 172.12.0.1 IP, but it's a no-go too, as you expected.


    There must be something else happening here. Even with a policy rounding my OMV server traffic through a VPN, it should still be accessible - it's downloading /uploading data 24/7 afterall. Not sure what I'm missing.

Participate now!

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