firewall

amir

New member
Joined
Jan 30, 2015
Messages
1
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?
 
Hello,
Did you removed ";" or "#" before SSH port?
And as zEitEr said you should restart ssh (service sshd restart)
Do not forget to open the port .(you can use csf)

P.S : It seams that you are Persian , If yes : You can connect me for Persian references and/or open a topic in webhostingtalk.ir for Persian help.
 
Back
Top