Skip to content

Instantly share code, notes, and snippets.

@alexbartsch
Created November 11, 2014 13:38
Show Gist options
  • Save alexbartsch/5a3f8782069f3aa31ee0 to your computer and use it in GitHub Desktop.
Save alexbartsch/5a3f8782069f3aa31ee0 to your computer and use it in GitHub Desktop.
Forward incoming traffic off specific port
/etc/rc.local
iptables -F FORWARD
iptables -t nat -A PREROUTING -p tcp --dport 80 -j DNAT --to-destination 192.168.122.10:80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment