Giter Site home page Giter Site logo

Comments (5)

bubuntux avatar bubuntux commented on August 11, 2024

hi @DEX3 that is already possible,
try http://172.18.0.1/ or http://172.17.0.1/
you can look for the proper ip using docker network inspect your_network that is the ip for that entire network and you can access other containers exposing ports within the same network using that ip.

from nordvpn.

bubuntux avatar bubuntux commented on August 11, 2024

also keep in mind that your current OPENVPN_OPTS may not work as you expect, since the servers push some configurations into the client, and may override some of your settings, that's why in my example i have --pull-filter ignore "ping-restart" to ignore the override of the --ping-exit parameter, please read the openvpn documentation for more information

from nordvpn.

romandecker avatar romandecker commented on August 11, 2024

Thanks, that actually works! I'm wondering if there's a nicer way to get access to these IP's? I'm running the container as part of a docker-compose setup, and I don't think there's a way to tell beforehand which IP's will be chosen, is there?

Can I somehow get the correct IP from within the container, without having to docker inspect the network from the outside after it has been created?

from nordvpn.

bubuntux avatar bubuntux commented on August 11, 2024

it depends on your setup, if the containers are using the same network, you should be able to call services from those containers using 127.0.0.1, not sure if there's a nicer way

from nordvpn.

romandecker avatar romandecker commented on August 11, 2024

Well I don't have any special network config in place other than network_mode: service:vpn, which I have set for all of them - so I guess they should be in the same network.

They do not have access via localhost though :/

from nordvpn.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.