From 45ca87fb49c61fd0603a152828a15c81d863be31 Mon Sep 17 00:00:00 2001 From: sump pump <admin@example.com> Date: Tue, 9 Jun 2020 16:28:45 +0000 Subject: [PATCH] /sbin/iptables --- tinc/tinc-down.tmpl | 4 ++-- tinc/tinc-up.tmpl | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tinc/tinc-down.tmpl b/tinc/tinc-down.tmpl index 684e7b2..5e5cc82 100644 --- a/tinc/tinc-down.tmpl +++ b/tinc/tinc-down.tmpl @@ -1,4 +1,4 @@ # Disable IPv4 kernel routing/forwarding for this network -iptables -D FORWARD -o \$INTERFACE -d ${network_address}/${global_prefix:-16} -j ACCEPT -{{ if len "${bgp_routes:-}" }}{{ range "$bgp_routes" | split "," }}iptables -D FORWARD -o ${internal_interface:-eth0} -d {{.}} -j ACCEPT +/sbin/iptables -D FORWARD -o \$INTERFACE -d ${network_address}/${global_prefix:-16} -j ACCEPT +{{ if len "${bgp_routes:-}" }}{{ range "$bgp_routes" | split "," }}/sbin/iptables -D FORWARD -o ${internal_interface:-eth0} -d {{.}} -j ACCEPT {{ end }}{{ end }} diff --git a/tinc/tinc-up.tmpl b/tinc/tinc-up.tmpl index 69f5ead..00e8235 100644 --- a/tinc/tinc-up.tmpl +++ b/tinc/tinc-up.tmpl @@ -2,6 +2,6 @@ ifconfig \$INTERFACE ${tinc_peer_address} netmask ${netmask:-255.255.255.0} # Enable IPv4 kernel routing/forwarding for this network -iptables -A FORWARD -o \$INTERFACE -d ${network_address}/${global_prefix:-16} -j ACCEPT -{{ if len "${bgp_routes:-}" }}{{ range "$bgp_routes" | split "," }}iptables -A FORWARD -o ${internal_interface:-eth0} -d {{.}} -j ACCEPT +/sbin/iptables -A FORWARD -o \$INTERFACE -d ${network_address}/${global_prefix:-16} -j ACCEPT +{{ if len "${bgp_routes:-}" }}{{ range "$bgp_routes" | split "," }}/sbin/iptables -A FORWARD -o ${internal_interface:-eth0} -d {{.}} -j ACCEPT {{ end }}{{ end }}