diff --git a/roles/ifupdown2/templates/interfaces.j2 b/roles/ifupdown2/templates/interfaces.j2 index eecf4fe..4d53123 100644 --- a/roles/ifupdown2/templates/interfaces.j2 +++ b/roles/ifupdown2/templates/interfaces.j2 @@ -29,5 +29,9 @@ iface {{ name }} bridge-pvid 0 post-up bridge vlan del dev {{ name }} vid 1 self {% endif %} +{% if iface.forward | default(false) %} + ip-forward yes + ip6-forward yes +{% endif %} {% endfor %}