Created
May 4, 2020 02:07
-
-
Save we4tech/c8f71eaa83edc859d87042bae239bd54 to your computer and use it in GitHub Desktop.
Iptables to forward egress (outbound) request to another IP and port
This file contains hidden or 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
## | |
# Redirect all outbound requests from port 80 to a specific IP and port. | |
# | |
iptables -t nat -A OUTPUT -p tcp --dport 80 -j DNAT --to-destination $DEST_SERVER:$DEST_PORT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment