Code Monkey home page Code Monkey logo

Comments (5)

t-woerner avatar t-woerner commented on May 20, 2024 1

Only dhcpdv6-client is enabled by default in the firewall, as this is essential for mostly all clients using IPv6.
You can simply enable the dhcp service in your configuration to allow access to the dhcp server provided by systemd-networkd. If systemd-networkd is also providing a dhcpv6 server, then also enable dhcpv6.

from firewalld.

npmccallum avatar npmccallum commented on May 20, 2024

The problem is that this breaks systemd-nspwan containers:
systemd/systemd#2552

The default policy needs to not break systemd on ve-* interfaces.

from firewalld.

sourcejedi avatar sourcejedi commented on May 20, 2024

I agree there's a conflict, but I'd like to note it goes beyond DHCP. Containers launched with systemd-nspawn -n are also intended to have internet access, e.g. for dnf.

(The default config for systemd-networkd enables ipv4 masquerading for this).

After allowing access to DHCP in firewalld, you get an address, but internet-bound packets are rejected as "administratively prohibited":

# traceroute 8.8.8.8   
traceroute to 8.8.8.8 (8.8.8.8), 30 hops max, 60 byte packets
 1  gateway (10.0.0.1)  0.091 ms  0.031 ms  0.026 ms
 2  gateway (10.0.0.1)  0.033 ms !X  0.028 ms !X  0.028 ms !X

from firewalld.

SadPencil avatar SadPencil commented on May 20, 2024
sudo firewall-cmd --add-service=dhcp

I think this issue could be closed.

from firewalld.

erig0 avatar erig0 commented on May 20, 2024

The default policy needs to not break systemd on ve-* interfaces.

Firewalld upstream is not going to allow DHCP server by default. That can either be done statically by the distribution, or at runtime by the container startup.

After allowing access to DHCP in firewalld, you get an address, but internet-bound packets are rejected as "administratively prohibited":

Firewalld filters forwarded packets by default. You can add the container's interface to the trusted zone to remedy this.

from firewalld.

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.