Published on: May 18, 2009 by George K.
The scenario was, Kloxo installation was completed without any errors. But still inside the server Kloxo and the stuff were working, but from a browser in the WWW, it isn’t working and how is cannot be found or page cannot be displayed errors
On further analyses we found that telnet ip.ip.ip.ip 7777 was working from inside the server, but not from outside network. It was showing,
telnet ip.ip.ip.ip 7777
telnet: Unable to connect to remote host: No route to host
It was returning the same for every port, except 22. In a normal situation, if the port 22 also was not working, the issue could have been network related, but in this case port 22 was working fine. So the issue was not related to networking, but …… ? Guess what ?
Yes. Any seasoned Linux administrator should have guessed the answer to be the firewall and yes that was right. The iptables ruleset had a line which says,
REJECT all -- 0.0.0.0/0 0.0.0.0/0 reject-with icmp-host-prohibited
Deleted that lines and things went smooth after that.
Don’t forget to run save the iptables rules, by executing the commands below,
[root@server ~]# iptables -D RH-Firewall-1-INPUT 10
[root@server ~]# /etc/init.d/iptables save
Saving firewall rules to /etc/sysconfig/iptables: [ OK ]
[root@server ~]# iptables-save
Category : Howtos, Linux, Snippets, Troubleshooting