Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Iptables rules causes site to be really slow
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Iptables rules causes site to be really slow

gowtham101gowtham101 Member
edited August 2012 in General

This is my iptable rules, this causes my site to crawl especially when I log into wp :'(

*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:fail2ban-ssh - [0:0]
-A INPUT -p tcp -m tcp --dport 80 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 2012 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 1194 -j ACCEPT
-A INPUT -p icmp -m icmp --icmp-type 8 -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -j DROP
-A FORWARD -j DROP
-A OUTPUT -j ACCEPT
COMMIT

Comments

  • JacobJacob Member
    edited August 2012

    Use CSF and then within that conf file you can open all the ports you require, I'm not sure about these rules, but 10 lines of IPTables rules should not affect your performance.

    More likely it is WordPress being a hog, or something that is holding everything else behind.

  • prometeusprometeus Member, Host Rep

    I think you are dropping dns udp traffic...

  • RandyRandy Member
    edited August 2012

    /flush your ip tables. and get CSF its better

  • TazTaz Member
    edited August 2012

    @Randy what are you talking about? If not mistaking, csf USE iptables.

  • RandyRandy Member
    edited August 2012

    ,sorry i meant flush and get CSF to manage CSF is easy to manage the iptables

  • ztecztec Member

    Please allow me to go a little off-topic.
    But how can I speed up my wordpress admin area?
    I got a dedicated server which is pretty OK, Q6600 from kimsufi.
    Admin area speed is good but it's not SUPER fast like I had with my previous servers.

  • TazTaz Member

    @ztec ping and traceroute. Long distance relationship tends to break most of the time ;)

  • ztecztec Member
    edited August 2012

    I live in The Netherlands and the server is in France, pretty good ping. 18ms.

    Maybe I'm just spoiled.

Sign In or Register to comment.