Created
July 11, 2011 18:38
-
-
Save bobisme/1076485 to your computer and use it in GitHub Desktop.
Redirect one IP to another with iptables.
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
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