aboutsummaryrefslogtreecommitdiff
path: root/personal_infra/puppet/modules/proxmox/templates
diff options
context:
space:
mode:
authoralex <alex@pdp7.net>2025-10-07 20:10:33 +0200
committeralexpdp7 <alex@corcoles.net>2025-10-07 20:11:24 +0200
commitba29593ea456737a40ecad3d077185d859d51215 (patch)
treeaf54c10b43b75c816ced5bc70e824d73182b24a3 /personal_infra/puppet/modules/proxmox/templates
parent7b710a78c7368601c7d764fb9a0a0c87e6b2decd (diff)
Align, try to fix rules accumulating
Diffstat (limited to 'personal_infra/puppet/modules/proxmox/templates')
-rw-r--r--personal_infra/puppet/modules/proxmox/templates/interfaces.epp5
1 files changed, 3 insertions, 2 deletions
diff --git a/personal_infra/puppet/modules/proxmox/templates/interfaces.epp b/personal_infra/puppet/modules/proxmox/templates/interfaces.epp
index ccfe1b21..809c7dc4 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'] %>