Skip to content

Instantly share code, notes, and snippets.

@meonkeys
Last active December 16, 2015 17:28
Show Gist options
  • Save meonkeys/5470168 to your computer and use it in GitHub Desktop.
Save meonkeys/5470168 to your computer and use it in GitHub Desktop.
Send all traffic incoming on port 443 to port 8443. Useful since I run Jenkins as a non-root user and it binds to port 8443.
iptables -t nat -A PREROUTING -p tcp --dport 443 -j REDIRECT --to-ports 8443
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment