feat(net_config): support IPForward and IPMasquerade in network config
This commit is contained in:
@@ -14,6 +14,12 @@ RouteMetric={{ interface.ipv4.metric }}
|
|||||||
{% if interface.type is defined and interface.type == 'bridge' %}
|
{% if interface.type is defined and interface.type == 'bridge' %}
|
||||||
ConfigureWithoutCarrier=yes
|
ConfigureWithoutCarrier=yes
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% if interface.ipv4.forward | default(false) %}
|
||||||
|
IPForward=ipv4
|
||||||
|
{% endif %}
|
||||||
|
{% if interface.ipv4.masquerade | default(false) %}
|
||||||
|
IPMasquerade=ipv4
|
||||||
|
{% endif %}
|
||||||
{% if interface.ipv4.nameservers is defined %}
|
{% if interface.ipv4.nameservers is defined %}
|
||||||
{% for dns in interface.ipv4.nameservers %}
|
{% for dns in interface.ipv4.nameservers %}
|
||||||
DNS={{ dns }}
|
DNS={{ dns }}
|
||||||
|
|||||||
Reference in New Issue
Block a user