Skip to content

Instantly share code, notes, and snippets.

@kasramp
Created August 3, 2020 19:29
Show Gist options
  • Save kasramp/233cc6df579d93b08881296aca05badb to your computer and use it in GitHub Desktop.
Save kasramp/233cc6df579d93b08881296aca05badb to your computer and use it in GitHub Desktop.
#!/bin/bash
iptables -A POSTROUTING -t nat -j MASQUERADE
echo 1 > /proc/sys/net/ipv4/ip_forward
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment