Created
October 5, 2022 13:12
-
-
Save dRumata/c9a1002755a3742da20d195d982ce1b6 to your computer and use it in GitHub Desktop.
NAT on Fedora
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
#!/bin/bash | |
echo 1 > /proc/sys/net/ipv4/ip_forward | |
sysctl -w net.ipv4.ip_forward=1 | |
firewall-cmd --add-masquerade --permanent | |
firewall-cmd --add-forward --permanent | |
firewall-cmd --reload |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment