Coder Social home page Coder Social logo

Comments (7)

davidwadden avatar davidwadden commented on July 19, 2024

thanks for opening this. we'll take a look at it. this one actually ought to work on AWS, but won't on VirtualBox or VMware due to differences in network configuration.

i don't have an estimate when we'll get to this, i have a feeling this is not a quick fix

from pcfdev.

dwu-pivotal avatar dwu-pivotal commented on July 19, 2024

Looks this is caused by iptables setting in the vm, after I removed two REJECT item in iptables, it works.

from pcfdev.

sclevine avatar sclevine commented on July 19, 2024

The following adjustment to the iptables rules should enable container-to-container networking (via the public app route) in microPCF for VMWare and Virtualbox:

iptables -D w--input -j REJECT --reject-with icmp-host-prohibited
iptables -A w--input -d 192.168.11.11/32 -p tcp -m tcp --dport 80 -j ACCEPT
iptables -A w--input -d 192.168.11.11/32 -p tcp -m tcp --dport 443 -j ACCEPT
iptables -A w--input -j REJECT --reject-with icmp-host-prohibited

(Removing all of the REJECT rules will definitely break security groups and may introduce some unexpected behavior.)

@davidwadden After tracing an app to app connection, this ended up being more simple than I first thought.

from pcfdev.

davidwadden avatar davidwadden commented on July 19, 2024

@dwu-pivotal our latest nightly build supports container-to-router and container-to-host network access. this will allow apps to connect to one another via the router address. please try that and let us know if you have any issues

from pcfdev.

sergiubodiu avatar sergiubodiu commented on July 19, 2024

@davidwadden I've tested a mongod instance
so my changes were minimal:
added iptables -A w--input -d 192.168.11.11/32 -p tcp -m tcp --dport 27017 -j ACCEPT
and the on the vbox added port forwarding on 27017 for localhost

from pcfdev.

davidwadden avatar davidwadden commented on July 19, 2024

thanks @sbodiu-pivotal, i realized my term "container-to-host" is ambiguous here. you're running mongodb on your actual physical host (where virtualbox is running), but we enabled traffic to the VM itself (the host from the container POV).

we don't support container-to-host routing and your workaround is appropriate (probably a bit trickier to tweak the iptables to allow forwarding to 192.168.11.1). i'll change the phrasing on what we've actually enabled to "container-to-vm" routing instead

from pcfdev.

davidwadden avatar davidwadden commented on July 19, 2024

this was released with v0.4.1 -- re-open if this doesn't work!

@davidwadden

from pcfdev.

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.