It is much simpler to just set /proc/sys/net/ipv{4,6}/conf/all/forwarding to 1, as that updates all conf/iface/forwarding and /proc/sys/net/ipv4/ip_forward. I. e. we just need
for f in /proc/sys/net/ipv*/conf/all/forwarding; do echo 1 > $f done -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1500992 Title: Provide script to enable IP forwarding To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1500992/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs