Can't keep listener going on CentOS

The Knowledgebase provides a database of answers to many Technical questions.

Can't keep listener going on CentOS

Postby FTP » Fri May 28, 2010 5:40 am

CentOS will open firwall "iptables" by default, so you need to add some rules for your listener ports, do it like this:

Code: Select all
su -
/sbin/iptables -I INPUT -p tcp --dport 80 -j ACCEPT
/sbin/iptables -I INPUT -p tcp --dport 21 -j ACCEPT
/sbin/iptables -I INPUT -p tcp --dport 5466 -j ACCEPT
/etc/rc.d/init.d/iptables save
/etc/init.d/iptables restart



And for CentOS 8.0+, you can use the below commands:

Code: Select all
su -
firewall-cmd --zone=public --permanent --add-port 80/tcp
firewall-cmd --zone=public --permanent --add-port 21/tcp
firewall-cmd --zone=public --permanent --add-port 5466/tcp
firewall-cmd --reload
FTP
Site Admin
 
1747
 
Tue Sep 29, 2009 6:09 am

Return to Knowledgebase

Who is online

Users browsing this forum: Google [Bot] and 2 guests

cron