Skip to content

Instantly share code, notes, and snippets.

@dRumata
Created October 5, 2022 13:12
Show Gist options
  • Save dRumata/c9a1002755a3742da20d195d982ce1b6 to your computer and use it in GitHub Desktop.
Save dRumata/c9a1002755a3742da20d195d982ce1b6 to your computer and use it in GitHub Desktop.
NAT on Fedora
#!/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