Skip to content

Instantly share code, notes, and snippets.

@un4ckn0wl3z
Created December 28, 2016 01:24
Show Gist options
  • Save un4ckn0wl3z/d2c0c231a3af8c529a5b8dfe17591158 to your computer and use it in GitHub Desktop.
Save un4ckn0wl3z/d2c0c231a3af8c529a5b8dfe17591158 to your computer and use it in GitHub Desktop.
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport $srcPortNumber -j REDIRECT --to-port $dstPortNumber
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment