With systemd in version 219 IP forwarding should be forced in the interface configuration file.
Signed-off-by: yyekhlef <yyekhlef@gmail.com>
| ... | ... |
@@ -208,7 +208,7 @@ learn how to [customize your Systemd Docker daemon options](/articles/systemd/). |
| 208 | 208 |
|
| 209 | 209 |
## Running Docker with a manually-defined network |
| 210 | 210 |
|
| 211 |
-If you manually configure your network using `systemd-network` with fedora version 22, containers you start with Docker may be unable to access your network. |
|
| 211 |
+If you manually configure your network using `systemd-network` with `systemd` version 219 or higher, containers you start with Docker may be unable to access your network. |
|
| 212 | 212 |
Beginning with version 220, the forwarding setting for a given network (`net.ipv4.conf.<interface>.forwarding`) defaults to *off*. This setting prevents IP forwarding. It also conflicts with Docker which enables the `net.ipv4.conf.all.forwarding` setting within a container. |
| 213 | 213 |
|
| 214 | 214 |
To work around this, edit the `<interface>.network` file in |
| ... | ... |
@@ -218,6 +218,8 @@ To work around this, edit the `<interface>.network` file in |
| 218 | 218 |
[Network] |
| 219 | 219 |
... |
| 220 | 220 |
IPForward=kernel |
| 221 |
+# OR |
|
| 222 |
+IPForward=true |
|
| 221 | 223 |
... |
| 222 | 224 |
``` |
| 223 | 225 |
|