Friday, April 7, 2017

How to add redirects for Web and SSL ports

iptables -F

iptables -t nat -I PREROUTING -p tcp --dport 80 -j REDIRECT --to-ports 8080

iptables -t nat -I OUTPUT -p tcp --dport 80 -j REDIRECT --to-ports 8080

iptables -t nat -I PREROUTING -p tcp -m tcp --dport 443 -j REDIRECT --to-ports 8181

iptables -t nat -I OUTPUT -p tcp --dport 443 -j REDIRECT --to-ports 8181

No comments:

Post a Comment

Landing Spicoli in the Wind

Many know by now that I have three Blade 200 S RC helicopters in my fleet: Speck - for training Spot - for maintenance exercises Spicol...