指定 IP: /sbin/iptables -I INPUT -p tcp -s IP -dport 21 -j ACCEPT (MYSQL): /sbin/iptables -I INPUT -p tcp -dport 3306 -j ACCEPT (MSSQL): /sbin/iptables -I INPUT -p tcp -dport 1433 -j ACCEPT (HTTP): /sbin/iptables -I INPUT -p tcp -dport 80 -j ACCEPT
(SMTP): /sbin/iptables -I INPUT -p tcp -dport 25 -j ACCEPT (SSH): /sbin/iptables -I INPUT -p tcp -dport 22 -j ACCEPT (FTP): /sbin/iptables -I INPUT -p tcp -dport 21 -j ACCEPT
Vim /etc/sysconfig/network-scripts/ifcfg-eth0įor CentOS 6 64 Bit OS ~]# wget ~]# rpm -Uvh rpmforge-release-0.5.x86_64.rpmĬentOS-Debuginfo.repo ~]# ls /etc//ĬentOS-Base.repo CentOS-Vault.repo mirrors-rpmforge-testingĬentOS-Debuginfo.repo mirrors-rpmforge rpmforge.repoĬentOS-Media.repo mirrors-rpmforge-extras