[root@ns1 ~]# telnet gmail-smtp-in.l.google.com 25
telnet: connect to address Connection timed out
Trying 2607:f8b0:400d:c0f::1b…
telnet: connect to address 2607:f8b0:400d:c0f::1b: Network is unreachable

please help

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
1 answer

Hi @eleetgeeks,

It’s possible you you need to allow outgoing TCP traffic on port 25

iptables -I INPUT -p tcp -m tcp --dport 25 -j ACCEPT

Additionally, you can further read this DigitalOcean article explaining more about Iptables and what they are - https://www.digitalocean.com/community/tutorials/iptables-essentials-common-firewall-rules-and-commands


by Mitchell Anicas
Iptables is the software firewall that is included with most Linux distributions by default. This cheat sheet-style guide provides a quick reference to iptables commands that will create firewall rules are useful in common, everyday scenarios. This includes iptables examples of allowing and blocking various services by port, network interface, and source IP address.