diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-01-13 13:47:08 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-01-13 13:55:15 +0100 |
commit | 5a8bcb674f71a20e95df55319b34c556638378ce (patch) | |
tree | db1de9b03cb9bf4c017a0f620cf9d310c9de6098 /network | |
parent | 76917807eb50ccde58901e8bec7ed3d408d1cc22 (diff) |
networkd: add minimal IP forwarding and masquerading support to .network files
This adds two new settings to networkd's .network files:
IPForwarding=yes and IPMasquerade=yes. The former controls the
"forwarding" sysctl setting of the interface, thus controlling whether
IP forwarding shall be enabled on the specific interface. The latter
controls whether a firewall rule shall be installed that exposes traffic
coming from the interface as coming from the local host to all other
interfaces.
This also enables both options by default for container network
interfaces, thus making "systemd-nspawn --network-veth" have network
connectivity out of the box.
Diffstat (limited to 'network')
-rw-r--r-- | network/80-container-ve.network | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/network/80-container-ve.network b/network/80-container-ve.network index cb04c7cb3d..fe24eb45f8 100644 --- a/network/80-container-ve.network +++ b/network/80-container-ve.network @@ -13,3 +13,5 @@ Driver=veth Address=0.0.0.0/28 IPv4LL=yes DHCPServer=yes +IPForward=yes +IPMasquerade=yes |