Merge "firewall/masquerading: configure state and proto"
This commit is contained in:
commit
89a57833b3
@ -33,12 +33,16 @@ class tripleo::masquerade_networks (
|
|||||||
'destination' => $destinations,
|
'destination' => $destinations,
|
||||||
'jump' => 'RETURN',
|
'jump' => 'RETURN',
|
||||||
'chain' => 'POSTROUTING',
|
'chain' => 'POSTROUTING',
|
||||||
|
'proto' => 'all',
|
||||||
|
'state' => ['ESTABLISHED', 'NEW', 'RELATED'],
|
||||||
},
|
},
|
||||||
"138 routed_network masquerade ${source}" => {
|
"138 routed_network masquerade ${source}" => {
|
||||||
'table' => 'nat',
|
'table' => 'nat',
|
||||||
'source' => $source,
|
'source' => $source,
|
||||||
'jump' => 'MASQUERADE',
|
'jump' => 'MASQUERADE',
|
||||||
'chain' => 'POSTROUTING',
|
'chain' => 'POSTROUTING',
|
||||||
|
'proto' => 'all',
|
||||||
|
'state' => ['ESTABLISHED', 'NEW', 'RELATED'],
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
@ -40,6 +40,8 @@ describe 'tripleo::masquerade_networks' do
|
|||||||
:destination => ['192.168.24.0/24', '192.168.25.0/24'],
|
:destination => ['192.168.24.0/24', '192.168.25.0/24'],
|
||||||
:jump => 'RETURN',
|
:jump => 'RETURN',
|
||||||
:chain => 'POSTROUTING',
|
:chain => 'POSTROUTING',
|
||||||
|
:proto => 'all',
|
||||||
|
:state => ['ESTABLISHED', 'NEW', 'RELATED'],
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -49,6 +51,8 @@ describe 'tripleo::masquerade_networks' do
|
|||||||
:source => '192.168.24.0/24',
|
:source => '192.168.24.0/24',
|
||||||
:jump => 'MASQUERADE',
|
:jump => 'MASQUERADE',
|
||||||
:chain => 'POSTROUTING',
|
:chain => 'POSTROUTING',
|
||||||
|
:proto => 'all',
|
||||||
|
:state => ['ESTABLISHED', 'NEW', 'RELATED'],
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user