Mistake in DHCP option (firewall) by default

sigo

Active Member
Aug 24, 2017
23
3
43
52
I have been create a LXC container with enabled 'firewall' (attached image) and all other options by default(!). My VM.fw next:
Code:
root@pve:~# cat /etc/pve/firewall/120.fw
[OPTIONS]

enable: 1
Now, i am checking firewall rules for interfaces in this VM:
Code:
exists veth120i0-IN (MdXshSidEihaLE7OpiTgIGGldkk)
-A veth120i0-IN -p udp --dport 68 --sport 67 -j ACCEPT
-A veth120i0-IN -j PVEFW-Drop
-A veth120i0-IN -j DROP

exists veth120i0-OUT (uJMd6DURdH7pmpw+5X9q53s9WnI)
-A veth120i0-OUT -p udp --dport 67 --sport 68 -g PVEFW-SET-ACCEPT-MARK
-A veth120i0-OUT -m mac ! --mac-source 6E:14:92:52:FD:F4 -j DROP
-A veth120i0-OUT -j MARK --set-mark 0x00000000/0x80000000
-A veth120i0-OUT -g PVEFW-SET-ACCEPT-MARK
Ports 67,68??? But DHCP was disabled by default! (look at attached image)

To resolve this bug I make in GUI 'enable, OK, disable, OK' for DHCP option. Now my VM.fw has explicit definition for DHCP option:
Code:
root@pve:~# cat /etc/pve/firewall/120.fw

[OPTIONS]

dhcp: 0
enable: 1
Checking firewall rules again:
Code:
exists veth120i0-IN (GiPAm9L6UAAIxfS/Yq/45RWuA9A)
-A veth120i0-IN -j PVEFW-Drop
-A veth120i0-IN -j DROP

exists veth120i0-OUT (PMh1lDTxSDoWo94QTLonRF+LrN8)
-A veth120i0-OUT -m mac ! --mac-source 6E:14:92:52:FD:F4 -j DROP
-A veth120i0-OUT -j MARK --set-mark 0x00000000/0x80000000
-A veth120i0-OUT -g PVEFW-SET-ACCEPT-MARK
It's all right.

Is this a bug?
 

Attachments

  • Снимок экрана 2017-10-30 в 16.39.26.png
    Снимок экрана 2017-10-30 в 16.39.26.png
    71.5 KB · Views: 10