Last active
February 9, 2021 19:18
-
-
Save ilyaglow/889ede3786a7c9da375f5bc3302646ec to your computer and use it in GitHub Desktop.
Turn on IP forwarding on external interface using systemd-networkd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "IPForward = yes" >> /etc/systemd/network/"$(ip route get 8.8.8.8 | head -n1 | cut -d ' ' -f5)".network && systemctl restart systemd-networkd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment