summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2023-06-24 00:25:47 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2023-06-24 00:25:47 +0200
commitdc320350cdd6c27030ab0aeaa7c24cce4736907c (patch)
tree46d9da3ea8eb409171638060b196357eef9d4596
parentWireguard work. (diff)
downloadprofiles-dc320350cdd6c27030ab0aeaa7c24cce4736907c.tar.gz
profiles-dc320350cdd6c27030ab0aeaa7c24cce4736907c.tar.xz
Wireguard work.
-rw-r--r--manifests/wireguard_server.pp6
1 files changed, 3 insertions, 3 deletions
diff --git a/manifests/wireguard_server.pp b/manifests/wireguard_server.pp
index 3885114..56743d4 100644
--- a/manifests/wireguard_server.pp
+++ b/manifests/wireguard_server.pp
@@ -34,14 +34,14 @@ class profiles::wireguard_server (
}
}
- ['iptables', 'ip6tables'].each |$provider| {
- firewall { '100 Forward wireguard to network':
+ ['ip', 'ip6'].each |$provider| {
+ firewall { "100 Forward ${provider} wireguard to network":
table => 'nat',
chain => 'POSTROUTING',
jump => 'MASQUERADE',
outiface => 'br0',
proto => 'all',
- provider => $provider,
+ provider => "${provider}tables",
}
}