Comments (5)
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.
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.
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.
sudo firewall-cmd --add-service=dhcp
I think this issue could be closed.
from firewalld.
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)
- firewall-offline-cmd ignores the IP family when creating a new IP set HOT 3
- Firewalld only assigns interface zone in NetworkManager in the CLI script HOT 3
- Deprecate and Drop Lockdown Feature
- Various test suite failure on Debian sid HOT 5
- Firewalld is blocking Network/Samba Client in KDE/Dolphin HOT 4
- Firewalld 2.0: Error from removeSource Call HOT 9
- Doc: Include better explainations of the effects various configurations (i.e. what does the setting do?)
- ipset: config checks should verify that the number of elements does not exceed ipset size
- firewall-config doesn't show policy objects
- Render, but don't apply, rules - for debugging
- In rocky8, I have a question about firewall. Can't iptables command see firewall rules? HOT 4
- Preserve source IP when using masquerade + rich-rule port-forwading
- Policy and IPv6 HOT 3
- Add port forwarding to firewalld doesn't take effect actually HOT 4
- Applet icon missing in the tray but randomly appears after relog HOT 3
- Add SCTP for DLM
- --runtime-to-permanent removing public zone from active zones HOT 2
- Should `https.xml` include `http3.xml`? HOT 1
- Bug in `wrong_args_for_callable()` causes firewall-applet to crash (regression introduced in 2.1.0) HOT 1
- rework D-Bus bindings and move away from deprecated python-dbus
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from firewalld.