配置白名单中的源IP
iptables -A whitelist -s ip1,ip2,ip3 -p all -j ACCEPT
iptables -A INPUT -i lo -j whitelist
iptables -A INPUT -p tcp -m tcp --dport 22 -j whitelist
iptables -A INPUT -p tcp -m tcp --dport 8088 -j whitelist
iptables -A INPUT -p tcp -m tcp --dport 3306 -j whitelist
iptables -A INPUT -j DROP
service iptables save
service iptables start
iptables -L -n