There is one parameter and two opinions from two different proxmox packages on its value:
One value is (theoretically) only at boot and the other one from the running firewall (updates it regulary in case someone modified it). However, exceptions apply:
The systemd posinst hook is actually part of Debian. It is a trigger that is triggered by changes to /usr/lib/sysctl.d. Who triggers it?
The effect? The Firewall is off for a moment for bridged interfaces after an proxmox update. Ignoring the other possible implications, this highly impacts the availability of the services in the VM. The default configuration of the firewall drops invalid connections. By not seeing a part of an existing connection or the start of new connections, they are considered invalid as soon as the parameter is back to 1. This breaks connections from the VM to a ceph installation and iSCSI connections from VMs.
Code:
# grep -r bridge-nf-call-iptables /usr
/usr/share/perl5/PVE/Firewall.pm: PVE::ProcFSTools::write_proc_entry("/proc/sys/net/bridge/bridge-nf-call-iptables", "1");
/usr/lib/sysctl.d/10-pve.conf:net.bridge.bridge-nf-call-iptables = 0
# dpkg --search /usr/share/perl5/PVE/Firewall.pm
pve-firewall: /usr/share/perl5/PVE/Firewall.pm
# dpkg --search /usr/lib/sysctl.d/10-pve.conf
pve-cluster: /usr/lib/sysctl.d/10-pve.conf
# md5sum /usr/share/perl5/PVE/Firewall.pm /usr/lib/sysctl.d/10-pve.conf
6e1e8cf7dd107a88fb2446a237651d61 /usr/share/perl5/PVE/Firewall.pm
92a397aceeb6a0a5d3c588949a09521f /usr/lib/sysctl.d/10-pve.conf
# grep -rE '6e1e8cf7dd107a88fb2446a237651d61|92a397aceeb6a0a5d3c588949a09521f' /var/lib/dpkg/
/var/lib/dpkg/info/pve-cluster.md5sums:92a397aceeb6a0a5d3c588949a09521f usr/lib/sysctl.d/10-pve.conf
/var/lib/dpkg/info/pve-firewall.md5sums:6e1e8cf7dd107a88fb2446a237651d61 usr/share/perl5/PVE/Firewall.pm
One value is (theoretically) only at boot and the other one from the running firewall (updates it regulary in case someone modified it). However, exceptions apply:
Code:
# grep -r systemd-sysctl /var/lib/dpkg//info/*.postinst
/var/lib/dpkg//info/ceph-osd.postinst: /lib/systemd/systemd-sysctl /etc/sysctl.d/30-ceph-osd.conf \
/var/lib/dpkg//info/systemd.postinst: if [ "$(_systemctl show -P LoadState systemd-sysctl.service)" != "masked" ]; then
/var/lib/dpkg//info/systemd.postinst: _systemctl restart systemd-sysctl.service || true
The systemd posinst hook is actually part of Debian. It is a trigger that is triggered by changes to /usr/lib/sysctl.d. Who triggers it?
Code:
# grep /usr/lib/sysctl.d /var/lib/dpkg/info/*.list | grep pve
/var/lib/dpkg/info/pve-cluster.list:/usr/lib/sysctl.d
/var/lib/dpkg/info/pve-cluster.list:/usr/lib/sysctl.d/10-pve.conf
/var/lib/dpkg/info/pve-container.list:/usr/lib/sysctl.d
/var/lib/dpkg/info/pve-container.list:/usr/lib/sysctl.d/10-pve-ct-inotify-limits.conf
/var/lib/dpkg/info/pve-firewall.list:/usr/lib/sysctl.d
/var/lib/dpkg/info/pve-firewall.list:/usr/lib/sysctl.d/pve-firewall.conf
The effect? The Firewall is off for a moment for bridged interfaces after an proxmox update. Ignoring the other possible implications, this highly impacts the availability of the services in the VM. The default configuration of the firewall drops invalid connections. By not seeing a part of an existing connection or the start of new connections, they are considered invalid as soon as the parameter is back to 1. This breaks connections from the VM to a ceph installation and iSCSI connections from VMs.
Last edited: