Hi dear
I have some problem.
I have installed directadmin in centos6.5
1- I changed my ssh port in :
/etc/ssh/sshd_config
but when check listening port:
netstat -ntpl | grep ssh
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 11943/sshd
tcp 0 0 :::22 :::* LISTEN 11943/sshd
2- i want add port in iptable. i stoped iptables service.
now i want enable it and add port.
but i dont know how can add port in iptables. i know this:
nano /etc/sysconfig/iptables
but i dont know how add 2222 , 3306 ......
can you help me?
I have some problem.
I have installed directadmin in centos6.5
1- I changed my ssh port in :
/etc/ssh/sshd_config
but when check listening port:
netstat -ntpl | grep ssh
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 11943/sshd
tcp 0 0 :::22 :::* LISTEN 11943/sshd
2- i want add port in iptable. i stoped iptables service.
now i want enable it and add port.
but i dont know how can add port in iptables. i know this:
nano /etc/sysconfig/iptables
but i dont know how add 2222 , 3306 ......
can you help me?
firewall
Aucun commentaire:
Enregistrer un commentaire