]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/network/networkd-link.c
networkd: add minimal IP forwarding and masquerading support to .network files
authorLennart Poettering <lennart@poettering.net>
Tue, 13 Jan 2015 12:47:08 +0000 (13:47 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 13 Jan 2015 12:55:15 +0000 (13:55 +0100)
commit5a8bcb674f71a20e95df55319b34c556638378ce
treedb1de9b03cb9bf4c017a0f620cf9d310c9de6098
parent76917807eb50ccde58901e8bec7ed3d408d1cc22
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.
Makefile.am
man/systemd.network.xml
network/80-container-ve.network
src/network/networkd-address.c
src/network/networkd-link.c
src/network/networkd-network-gperf.gperf
src/network/networkd-network.c
src/network/networkd.h
src/shared/in-addr-util.c
src/shared/in-addr-util.h