1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Firewall

Discussion in 'Plesk 11.x for Linux' started by KamalG, Sep 30, 2012.

  1. KamalG

    KamalG Basic Pleskian

    14
    35%
    Joined:
    Jul 14, 2012
    Messages:
    98
    Likes Received:
    1
    I have setup a new plesk 11 on centos 6,

    can anyone please help me implement strong firewall to protect my vps server.

    Thank you
     
  2. DaveKay

    DaveKay Regular Pleskian

    17
    85%
    Joined:
    Jan 2, 2012
    Messages:
    226
    Likes Received:
    0
    What's wrong with the firewall module of Plesk?

    Tools & Settings > Firewall
     
  3. KamalG

    KamalG Basic Pleskian

    14
    35%
    Joined:
    Jul 14, 2012
    Messages:
    98
    Likes Received:
    1
    I dont know anything about that I just had few lines on /etc/sysconfig/iptables file is the plesk firewall module enough to keep the hackers away ? Also what port does webmail use ?? I allowed smtp pop and imap but still doesnt work
     
  4. DaveKay

    DaveKay Regular Pleskian

    17
    85%
    Joined:
    Jan 2, 2012
    Messages:
    226
    Likes Received:
    0
    I've never had any issues with it. Webmail should use port 80, under a subdomain of which ever domain you provide webmail for. The webmail software connects to the imap server internally so I don't think firewall would effect it.

    Make sure you activate the new configuration.

    Sometimes, I've had to reactivate the config after a server reboot - not sure why though!

    What are the issues you have with webmail?
     
  5. KamalG

    KamalG Basic Pleskian

    14
    35%
    Joined:
    Jul 14, 2012
    Messages:
    98
    Likes Received:
    1
    I dont use the plesk firewall module I use the iptables where I have allowed the port 80 and 8443 8447 ports ... whenever I start the firewall the webmail gives problems it says bad gateway request but the sit works fine.
     
  6. DaveKay

    DaveKay Regular Pleskian

    17
    85%
    Joined:
    Jan 2, 2012
    Messages:
    226
    Likes Received:
    0
    Are you running nginx?
     
  7. KamalG

    KamalG Basic Pleskian

    14
    35%
    Joined:
    Jul 14, 2012
    Messages:
    98
    Likes Received:
    1
    I have no idea about nginx, it's a new installation I have the following parameters in firewall..


    # Mail SMTP:25
    -A INPUT -p tcp --dport 25 -j ACCEPT
    -A OUTPUT -p tcp --dport 25 -j ACCEPT

    # Mail POP3:110
    -A INPUT -p tcp --dport 110 -j ACCEPT
    -A OUTPUT -p tcp --dport 110 -j ACCEPT

    # Mail IMAP:143
    -A INPUT -p tcp --dport 143 -j ACCEPT
    -A OUTPUT -p tcp --dport 143 -j ACCEPT

    when I start iptables service
    the webmail page gives me the following error

    504 Gateway Time-out

    nginx
     
  8. DaveKay

    DaveKay Regular Pleskian

    17
    85%
    Joined:
    Jan 2, 2012
    Messages:
    226
    Likes Received:
    0
    Try and disable nginx.

    Tools & Setting > Services Management.

    You may need to reconfigure vhosts if it doesn't work at first.

    Run the following in a root ssh (or sudo) to reconfigure vhosts.

    /usr/local/psa/admin/sbin/httpdmng --reconfigure-all
     
Loading...