Skip to content

Instantly share code, notes, and snippets.

@mklooss
Created August 12, 2021 12:31
Show Gist options
  • Save mklooss/8202d510a0259ac5a22b21c3c4cc0af2 to your computer and use it in GitHub Desktop.
Save mklooss/8202d510a0259ac5a22b21c3c4cc0af2 to your computer and use it in GitHub Desktop.
Force Route all Port Traffic Thouth defined IP
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