IPtables firewall blocking cpanel news

Hi Guys,

I have installed a basic iptables firewall, everything is fine apart from when I log into the homepage of WHM the cpanel news which is normally at the top of the page says -

Timeout while trying to fetch web.cpanel.net/whmnews/nph-secindex.cgi?version=9.9.9-S15&os=Linux&osver=2.4.20-021stab022.6.777-enterprise...[an error or timeout occurred while processing this directive]Unable to fetch Web Host Manager Security News. The News server may be down or unreachable.

when I stop the Iptables its fine again, I have unblocked all of the ports as recommended by cpanel.

here's my iptables file - see if you can see the problem :

*filter
:INPUT ACCEPT [707:52298]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [439:51178]

#only enter the ports you don't want to block#


-A INPUT -p tcp -m tcp --dport 20 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 21 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 22 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 25 -j ACCEPT
-A INPUT -p tcp -m tcp --sport 25 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 37 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 53 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 80 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 110 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 113 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 143 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 443 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 465 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 873 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 993 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 995 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 2082:2083 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 2086:2087 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 2089 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 2095:2096 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 3306 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 8888 -j ACCEPT
-A INPUT -s 127.0.0.1 -j ACCEPT
-A INPUT -p tcp -j DROP
COMMIT



Please help it's driving me insane IPtables firewall blocking cpanel news

 

 

 

 

Top