Skip to content

Instantly share code, notes, and snippets.

@un4ckn0wl3z
Created December 28, 2016 01:26
Show Gist options
  • Select an option

  • Save un4ckn0wl3z/5841cc7527ea8025e445d7070fdbb3e3 to your computer and use it in GitHub Desktop.

Select an option

Save un4ckn0wl3z/5841cc7527ea8025e445d7070fdbb3e3 to your computer and use it in GitHub Desktop.
iptables -t nat -A PREROUTING -i eth0 -p udp --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