8 июн. 2011 г.

CentOS: Как открыть порты

iptables -I INPUT -p tcp --dport 21 -m state --state NEW -j ACCEPT
iptables-save > /etc/sysconfig/iptables
chkconfig iptables on 

Комментариев нет:

Отправить комментарий