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
ptables -I INPUT -p tcp --dport 25 -j ACCEPT
service iptables save
service iptables save
The service command supports only basic LSB actions (start, stop, restart, try-restart, reload, force-reload, status). For other actions, please try to use systemctl.
systemctl save iptables
Unknown operation 'save'.
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
ptables -I INPUT -p tcp --dport 25 -j ACCEPT
service iptables save
service iptables save
The service command supports only basic LSB actions (start, stop, restart, try-restart, reload, force-reload, status). For other actions, please try to use systemctl.
systemctl save iptables
Unknown operation 'save'.