GithubHelp home page GithubHelp logo

Access own host about ufw-docker HOT 7 OPEN

romikforest avatar romikforest commented on May 28, 2024
Access own host

from ufw-docker.

Comments (7)

romikforest avatar romikforest commented on May 28, 2024 4

You can add your host e.g. before COMMIT # BEGIN UFW AND DOCKER or somewhere or all the local network if you wish (less secure) like:

-A ufw-after-input --src 10.0.0.0/8 -j ACCEPT
-A ufw-after-input --src 172.16.0.0/12 -j ACCEPT
-A ufw-after-input --src 192.168.0.0/16 -j ACCEPT

I did this way.

from ufw-docker.

JonathanMbt avatar JonathanMbt commented on May 28, 2024

Hello, I actually encountered the same problem, ufw block every outgoing connection coming from a docker container and going to the same host. Is there a quick solution to this problem ?

from ufw-docker.

JonathanMbt avatar JonathanMbt commented on May 28, 2024

Thank you ;)

from ufw-docker.

syamsarosa avatar syamsarosa commented on May 28, 2024

@romikforest it works. thanks.

from ufw-docker.

BlueTree242 avatar BlueTree242 commented on May 28, 2024

You can add your host e.g. before COMMIT # BEGIN UFW AND DOCKER or somewhere or all the local network if you wish (less secure) like:

-A ufw-after-input --src 10.0.0.0/8 -j ACCEPT
-A ufw-after-input --src 172.16.0.0/12 -j ACCEPT
-A ufw-after-input --src 192.168.0.0/16 -j ACCEPT

I did this way.

question, what makes this less secure?

from ufw-docker.

romikforest avatar romikforest commented on May 28, 2024

question, what makes this less secure?

You have to trust your local network, it will have full access. So it's better to add a specific range of IP addresses that is used in your docker, for example, not all the local network.

from ufw-docker.

BlueTree242 avatar BlueTree242 commented on May 28, 2024

Oh, got it.

from ufw-docker.

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.