How to unblock port 25 in IpTables?

Posted September 20, 2013 27.9k views
Hello Can someone please tell me how i can unblock port 25 in IpTables ?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
6 answers
iptables -I INPUT -p tcp -m tcp --dport 25 -j ACCEPT
Thank you. Will that also save, so when i reboot it remembers it ?
Not by default. What OS are you using?
Run these commands:

sudo apt-get install iptables-persistent

iptables-save | sudo tee /etc/iptables/rules.v4
  • This doesnt appear to work. It still says connection refuses. Bad part about it is, my port 993 was working now that doesnt appear to work either after installing the iptables persistent