Created
November 5, 2015 17:23
-
-
Save didip/533a3a76abba0b6404d9 to your computer and use it in GitHub Desktop.
Redirect outbound traffic to another ip:port
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
sudo iptables -t nat -A OUTPUT -p tcp --dport 80 -j DNAT --to-destination IP:80 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you. I'm totally forget about nat output rules. It helps me a lot.