Commit aff92777 authored by Cool Fire's avatar Cool Fire

Allow configuration of IPv6 port forwards

parent 25cf27b5
Pipeline #2224 passed with stages
in 4 minutes and 11 seconds
......@@ -93,6 +93,32 @@ class profile::router (
},
todest => $forward['destination'],
}
if has_key($forward, 'destination6') {
firewall { "200 ${name} v6":
table => 'nat',
chain => 'PREROUTING',
jump => 'DNAT',
iniface => has_key($forward, 'interface') ? {
true => $forward['interface'],
default => $wan
},
proto => has_key($forward, 'protocol') ? {
true => $forward['protocol'],
default => 'tcp'
},
source => has_key($forward, 'source') ? {
true => $forward['source'],
default => '::/0'
},
dport => has_key($forward, 'port') ? {
true => $forward['port'],
default => undef
},
todest => $forward['destination6'],
provider => 'ip6tables',
}
}
}
# Block certain hops from appearing for specific traceroute destinations
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment