Giter VIP home page Giter VIP logo

Comments (8)

stenya avatar stenya commented on May 31, 2024 1

Custom Firewall exceptions are implemented in v3.8.7.
Now, there is the possibility to exclude addresses or subnets that will be allowed through the firewall when enabled.

Example how to allow communication through exposed ports of docker container:

  1. Check the local IP address of the docker interface:
    image

  2. Add docker interface IP to IVPN Firewall exceptions (the local IP of the default network interface can be added too)
    Image 2022-04-28 at 11 18 09 AM

from desktop-app.

stenya avatar stenya commented on May 31, 2024 1

You can statically exclude the local network interface if you have problems with the "Allow LAN" functionality.
It is not required for solving Docker problems.

from desktop-app.

samsapti avatar samsapti commented on May 31, 2024 1

@stenya I have a different, but kinda similar issue. I am able start/stop Docker containers, but if I start a container with an exposed port, I am unable to connect to it via localhost. Only after running ivpn firewall -lan_allow (which is already enabled) again am I able to connect to my Docker services. This is on Fedora Workstation 35 and Artix Linux.

For anyone else having the above problem:
I've managed to fix it by setting a persistent IP range in /etc/docker/daemon.json like so:

{
  "default-address-pools": [
    {
      "base": "172.17.0.0/16",
      "size": 24
    }
  ],
  "other_settings": "..."
}

And adding 172.17.0.0/16 to IVPN firewall exceptions as described by @stenya above.

This will make sure that all new containers, and the docker daemon itself (the docker0 interface), will have an IP address in that range. Make sure to restart docker daemon for it to take effect.

from desktop-app.

samsapti avatar samsapti commented on May 31, 2024

@stenya I have a different, but kinda similar issue. I am able start/stop Docker containers, but if I start a container with an exposed port, I am unable to connect to it via localhost. Only after running ivpn firewall -lan_allow (which is already enabled) again am I able to connect to my Docker services. This is on Fedora Workstation 35 and Artix Linux.

from desktop-app.

stenya avatar stenya commented on May 31, 2024

@theanonymousexyz Which IVPN Client version do you use?

from desktop-app.

samsapti avatar samsapti commented on May 31, 2024

@theanonymousexyz Which IVPN Client version do you use?

@stenya CLI v3.7.0 on both distros. Installed from official channels.

from desktop-app.

samsapti avatar samsapti commented on May 31, 2024

@stenya thanks for the fix. I which cases would you exclude the default network interface?

from desktop-app.

samsapti avatar samsapti commented on May 31, 2024

Bonus tip: If you want IPv6 connectivity for Docker, make sure to add the fixed IPv6 CIDR from Docker config to IVPN exceptions. In my case, I have the following in /etc/docker/daemon.json:

{
  "ipv6": true,
  "fixed-cidr-v6": "fd00::/80"
}

So I added fd00::/80 to IVPN exceptions.

from desktop-app.

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.