aboutsummaryrefslogtreecommitdiff
path: root/personal_infra/puppet/modules
diff options
context:
space:
mode:
Diffstat (limited to 'personal_infra/puppet/modules')
-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'] %>