enable IPv4 forwarding

This commit is contained in:
unclejack 2013-06-20 20:30:28 +03:00
parent 5eb00202e0
commit 9bf1948e3f

View File

@ -1,6 +1,9 @@
[Service]
Type=forking
ExecStartPre=/bin/mount --make-rprivate /
# Enable forwarding to allow NAT to work
# TODO: Move this to sysctl.conf
ExecStartPre=/sbin/sysctl -w net.ipv4.ip_forward=1
# HACK: for some reason docker is crashing when exiting a container when being
# supervised by systemd. Fork out for now. Real solution should be: