{"id":74,"date":"2009-09-27T13:56:32","date_gmt":"2009-09-27T17:56:32","guid":{"rendered":"http:\/\/linuxhostingsupport.net\/blog\/?p=74"},"modified":"2013-03-20T08:39:37","modified_gmt":"2013-03-20T12:39:37","slug":"to-make-a-plesk-server-pci-compliance","status":"publish","type":"post","link":"https:\/\/linuxhostingsupport.net\/blog\/to-make-a-plesk-server-pci-compliance","title":{"rendered":"To make a Plesk server PCI Compliance"},"content":{"rendered":"<p><span style=\"color: #0000ff;\"><strong>How to make a Plesk server PCI Compliant?<\/strong><\/span><\/p>\n<p>Nowadays many of the <strong>Banks And Credit Card companies ask you to implement security standards<\/strong> on your server for client data protection which is known as PCI Compliance. Follow the below steps to achieve security standards on your server.<\/p>\n<p><span style=\"color: #0000ff;\"><strong>1 )<\/strong><\/span> To turn off SSLv2 for port 8443 (Plesk port), create a file <strong>\/usr\/local\/psa\/admin\/conf\/httpsd.custom.include<\/strong> and insert the following lines:<\/p>\n<blockquote><p><span style=\"color: #0000ff;\"><strong>SSLProtocol all -SSLv2<br \/>\nSSLCipherSuite ALL:!ADH:!NULL:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:-LOW:+SSLv3:+TLSv1:-SSLv2:+EXP:+eNULL<\/strong><\/span><\/p><\/blockquote>\n<p>Once you insert the above lines, restart the &#8216;psa&#8217; service and run the &#8216;openssl&#8217; command to test:<\/p>\n<blockquote><p><span style=\"color: #0000ff;\"><strong>service psa stopall<br \/>\nservice psa start all<br \/>\nopenssl s_client -connect localhost:8443 -ssl2<\/strong><\/span><\/p><\/blockquote>\n<p><strong><span style=\"color: #0000ff;\">2)<\/span> <\/strong>To turn off SSLv2 for port 443 (Apache SSL port), edit the file <strong>\/<\/strong>etc\/httpd\/conf.d\/ssl.conf and insert the following lines:<\/p>\n<blockquote><p><span style=\"color: #0000ff;\"><strong>SSLProtocol all -SSLv2<br \/>\nSSLCipherSuite ALL:!ADH:!NULL:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:-LOW:+SSLv3:+TLSv1:-SSLv2:+EXP:+eNULL<\/strong><\/span><\/p><\/blockquote>\n<p>Once you insert the lines, restart the &#8216;httpd&#8217; service and run the &#8216;openssl&#8217; command to test:<\/p>\n<blockquote><p><span style=\"color: #0000ff;\"><strong>service httpd restart<br \/>\nopenssl s_client -connect localhost:443 -ssl2<\/strong><\/span><\/p><\/blockquote>\n<p><span style=\"color: #0000ff;\"><strong>3)<\/strong><\/span> To <strong>turn off SSLv2 for 995 (POP3) and 993 (IMAP) ports<\/strong>, edit the following files<\/p>\n<blockquote><p><span style=\"color: #0000ff;\"><strong>vi \/etc\/courier-imap\/imapd-ssl<br \/>\nvi \/etc\/courier-imap\/pop3d-ssl<\/strong><\/span><\/p><\/blockquote>\n<p>comment the line which starts with &#8220;TLS_CIPHER_LIST&#8221; and insert the following line:<\/p>\n<blockquote><p><span style=\"color: #0000ff;\"><strong>TLS_CIPHER_LIST=&#8221;ALL:!ADH:RC4+RSA:!SSLv2:!LOW:@STRENGTH&#8221;<\/strong><\/span><\/p><\/blockquote>\n<p>restart the &#8216;courier-imap&#8217; service and execute the &#8216;openssl&#8217; command to test:<\/p>\n<blockquote><p><span style=\"color: #0000ff;\"><strong>service courier-imap restart<br \/>\nopenssl s_client -connect localhost:995 -ssl2<br \/>\nopenssl s_client -connect localhost:993 -ssl2<\/strong><\/span><\/p><\/blockquote>\n<p><span style=\"color: #0000ff;\"><strong>4)<\/strong><\/span> To <strong>turn off SSLv2 for port 465(SMTPS)<\/strong>, create the following files:<\/p>\n<blockquote><p><span style=\"color: #0000ff;\"><strong>vi \/var\/qmail\/control\/tlsserverciphers<br \/>\nvi \/var\/qmail\/control\/tlsclientciphers<\/strong><\/span><\/p><\/blockquote>\n<p>and insert the following code:<\/p>\n<blockquote><p><span style=\"color: #0000ff;\"><strong>ALL:!aNULL:!ADH:!eNULL:!LOW:!EXP:!SSLv2:RC4+RSA:+HIGH:+MEDIUM<\/strong><\/span><\/p><\/blockquote>\n<p>Once done, restart the &#8216;qmail&#8217; service and test the connection on SSLv2:<\/p>\n<blockquote><p><span style=\"color: #0000ff;\"><strong>service qmail restart<br \/>\nopenssl s_client -connect localhost:465 -ssl2<\/strong><\/span><\/p><\/blockquote>\n<p>This will disable SSLv2 for all the SSL ports of your server.<\/p>\n<p><strong><span style=\"color: #0000ff;\">5)<\/span> <\/strong>To <strong>disable TRACE and TRACE for Apache<\/strong>, place the following lines in the Apache configuration file + in the VirtualHost of each domain:<\/p>\n<blockquote><p><span style=\"color: #0000ff;\"><strong>RewriteEngine On<br \/>\nRewriteCond %{REQUEST_METHOD} ^TRACE|TRACK<br \/>\nRewriteRule .* &#8211; [F]<\/strong><\/span><\/p>\n<p><span style=\"color: #0000ff;\"><strong>TraceEnable off<\/strong><\/span><\/p><\/blockquote>\n<p>Save the file and restart the &#8216;httpd&#8217; service.<\/p>\n<p><span style=\"color: #0000ff;\"><strong>6)<\/strong><\/span> I would <strong>recommend to use the secure port 8443<\/strong> to access Plesk and <strong>block the non-secure one 8880<\/strong>.<\/p>\n<blockquote><p><span style=\"color: #0000ff;\"><strong>iptables -A INPUT -p tcp -s 0\/0 -\u2013dport 8880 -j DROP<\/strong><\/span><br \/>\n<span style=\"color: #0000ff;\"><strong>service iptables save<\/strong><\/span><br \/>\n<span style=\"color: #0000ff;\"><strong>service iptables restart<\/strong><\/span><\/p><\/blockquote>\n<p><span style=\"color: #0000ff;\"><strong>7)<\/strong><\/span> In order to <strong>upgrade the PHP version<\/strong>, refer the post:<\/p>\n<blockquote><p><strong><span style=\"color: #0000ff;\"><a href=\"https:\/\/linuxhostingsupport.net\/blog\/?p=218\">https:\/\/linuxhostingsupport.net\/blog\/?p=218<\/a><\/span><\/strong><\/p><\/blockquote>\n<p><span style=\"color: #0000ff;\"><strong>8 )<\/strong><\/span> To <strong>turn off recursion for the bind service<\/strong>, edit the named configuration file:<\/p>\n<blockquote><p><span style=\"color: #0000ff;\"><strong>vi \/etc\/named.conf<\/strong><\/span><\/p><\/blockquote>\n<p>add the following line in the &#8220;options&#8221; section:<\/p>\n<blockquote><p><span style=\"color: #0000ff;\"><strong>recursion no;<\/strong><\/span><\/p><\/blockquote>\n<p>Save the file and restart the &#8216;named&#8217; service.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to make a Plesk server PCI Compliant?<br \/>\nNowadays many of the Banks And Credit Card companies ask you to implement security standards on your server for client data protection which is known as PCI Compliance. Follow the below steps to achieve security standards on your server.<br \/>\n1 ) To turn off SSLv2 for port 8443 (Plesk port), create a file \/usr\/local\/psa\/admin\/conf\/httpsd.custom.include and insert the following lines:<br \/>\nSSLProtocol all -SSLv2<br \/>\nSSLCipherSuite ALL:!ADH:!NULL:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:-LOW:+SSLv3:+TLSv1:-SSLv2:+EXP:+eNULL<br \/>\nOnce you insert the above lines, restart the &#8216;psa&#8217; service and run the &#8216;openssl&#8217; command to test:<br \/>\nservice psa stopall<br \/>\nservice psa start [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[88],"tags":[134,132,133,131,340,339,473,220,475,1494,474,89,90,91,92,337,338,221],"_links":{"self":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/74"}],"collection":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/comments?post=74"}],"version-history":[{"count":23,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/74\/revisions"}],"predecessor-version":[{"id":2105,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/74\/revisions\/2105"}],"wp:attachment":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/media?parent=74"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/categories?post=74"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/tags?post=74"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}