Answer the question
In order to leave comments, you need to log in
How to open port 25 in Centos?
I want to open port 25 (smtp) for Postfix.
Did it like this:
iptables -A INPUT -p tcp --dport 25 -m state --state NEW,ESTABLISHED -j ACCEPT
firewall-cmd --permanent --add-port=25/tcp --zone=public
firewall-cmd --permanent --zone public --add-service smtp
firewall-cmd --reload
map 172.21.164.11
...
PORT STATE SERVICE
22/tcp open ssh
25/tcp closed smtp
80/tcp open http
443/tcp closed https
Answer the question
In order to leave comments, you need to log in
iptables -I INPUT -p tcp --dport 25 -j ACCEPT
service iptables save
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question