Created
August 12, 2021 12:31
-
-
Save mklooss/8202d510a0259ac5a22b21c3c4cc0af2 to your computer and use it in GitHub Desktop.
Force Route all Port Traffic Thouth defined IP
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 POSTROUTING -m mark --mark 0x0050/0xFFFFFFFF -j SNAT --to-source xxx.xxx.xxx.xxx | |
#Hex = Decimal | |
#0x0050 = 80 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment