Skip to content
Snippets Groups Projects
Commit 5fdd7b13 authored by Torbjörn Lönnemark's avatar Torbjörn Lönnemark
Browse files

Ensure IP forwarding is enabled on required interfaces

parent 4282cd21
Branches
Tags
No related merge requests found
......@@ -28,6 +28,19 @@ class analysator::system::nat {
value => '1',
}
[
$analysator::system::internal_iface,
$analysator::system::public_iface,
$analysator::system::ib_iface,
].each |$iface| {
['4', '6'].each |$family| {
sysctl { "net.ipv${family}.conf.${iface}.forwarding":
ensure => present,
value => '1',
}
}
}
firewall { '200 forward internal':
chain => 'FORWARD',
iniface => $analysator::system::internal_iface,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment