From: alex Date: Tue, 7 Oct 2025 18:10:33 +0000 (+0200) Subject: Align, try to fix rules accumulating X-Git-Url: https://xn--ix-yja.es/gitweb/?a=commitdiff_plain;h=ba29593ea456737a40ecad3d077185d859d51215;p=alex.git Align, try to fix rules accumulating --- diff --git a/personal_infra/puppet/modules/proxmox/templates/interfaces.epp b/personal_infra/puppet/modules/proxmox/templates/interfaces.epp index ccfe1b2..809c7dc 100644 --- a/personal_infra/puppet/modules/proxmox/templates/interfaces.epp +++ b/personal_infra/puppet/modules/proxmox/templates/interfaces.epp @@ -14,6 +14,7 @@ iface vmbr0 inet static bridge_ports none bridge_stp off bridge_fd 0 - post-up echo 1 > /proc/sys/net/ipv4/ip_forward - post-up iptables -t nat -A POSTROUTING -s '<%= $network['proxmox']['network'] %>' -o eno1 -j MASQUERADE + post-up echo 1 > /proc/sys/net/ipv4/ip_forward + post-up iptables -t nat -A POSTROUTING -s '<%= $network['proxmox']['network'] %>' -o eno1 -j MASQUERADE + post-down iptables -t nat -D POSTROUTING -s '<%= $network['proxmox']['network'] %>' -o eno1 -j MASQUERADE <%= $network['proxmox']['extra_interfaces_content'] %>