Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Thanks dbaxps,
I managed to enable DHCP with firewalld, barely..

I successfully allowd dhcp request from virtual instance, and dhcp offer between tenantRouter and tenantDHCPd with following rules.

firewall-cmd             --direct --add-rule ipv4 filter INPUT   0 -s 0.0.0.0/32 -d 255.255.255.255/32 -p udp --sport 68 --dport 67 -j ACCEPT
firewall-cmd             --direct --add-rule ipv4 filter FORWARD 0 -s 0.0.0.0/32 -d 255.255.255.255/32 -p udp --sport 68 --dport 67 -j ACCEPT
firewall-cmd             --direct --add-rule ipv4 filter FORWARD 1                                     -p udp --sport 67 --dport 68 -j ACCEPT

firewall-cmd --permanent --direct --add-rule ipv4 filter INPUT   0 -s 0.0.0.0/32 -d 255.255.255.255/32 -p udp --sport 68 --dport 67 -j ACCEPT
firewall-cmd --permanent --direct --add-rule ipv4 filter FORWARD 0 -s 0.0.0.0/32 -d 255.255.255.255/32 -p udp --sport 68 --dport 67 -j ACCEPT
firewall-cmd --permanent --direct --add-rule ipv4 filter FORWARD 1                                     -p udp --sport 67 --dport 68 -j ACCEPT

I tried to implement rich rules, but its gonna take a while due to its complexity. So far, those rules work :), Thanks!