[ root]# cd /etc
[ etc]# vi rc.local
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.
touch /var/lock/subsys/local
iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 38443
iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8083
iptables -t nat -A PREROUTING -p tcp --dport 3306 -j REDIRECT --to-port 8010
iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8680