forked from CCCHH/ansible-infra
router(host): expose public v6 networks
Also prepare for exposing public v4 networks later.
This commit is contained in:
parent
66ee44366b
commit
5f98dca56c
1 changed files with 6 additions and 0 deletions
|
|
@ -13,6 +13,8 @@ define wan_ifs = { $if_net1_v4_wan,
|
|||
$if_net2_v6_wan }
|
||||
define lan_ifs = { $if_net0_2_v4_nat,
|
||||
$if_net0_3_ci_runner }
|
||||
# define v4_exposed_ifs = { }
|
||||
define v6_exposed_ifs = { $if_net0_2_v4_nat }
|
||||
|
||||
|
||||
## Rules
|
||||
|
|
@ -69,5 +71,9 @@ table inet forward {
|
|||
# Allow internet access.
|
||||
meta nfproto ipv6 iifname $lan_ifs oifname $if_net2_v6_wan accept comment "allow v6 internet access"
|
||||
meta nfproto ipv4 iifname $lan_ifs oifname $if_net1_v4_wan accept comment "allow v4 internet access"
|
||||
|
||||
# Allow access to exposed networks from internet.
|
||||
# meta nfproto ipv4 oifname $v4_exposed_ifs accept comment "allow v4 exposed network access"
|
||||
meta nfproto ipv6 oifname $v6_exposed_ifs accept comment "allow v6 exposed network access"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue