Skip to content

Instantly share code, notes, and snippets.

@bobisme
Created July 11, 2011 18:38
Show Gist options
  • Save bobisme/1076485 to your computer and use it in GitHub Desktop.
Save bobisme/1076485 to your computer and use it in GitHub Desktop.
Redirect one IP to another with iptables.
iptables -t nat -A OUTPUT -p all -d XXX.XXX.XXX.XXX -j DNAT --to-destination YYY.YYY.YYY.YYY
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment