SpareNet Servers Advertising & Link Exchange

اطلاعیه

بستن
هیچ اطلاعیه ای هنوز ایجاد نشده است .

آموزش کانفیگ امنیتی

بستن
X
 
  • فیلتر
  • زمان
  • نمایش
پاک کردن همه
نوشته‌های جدید

  • آموزش کانفیگ امنیتی

    موارد زیر را به صورتی که اعلام میشه تغییر بدید برید به :

    کد:
      nano /etc/ssh/sshd_config
    و Protocol 2 را فعال کنید و UseDNS no به این صورت تغییر بدید


    کد:
    Change #Port 22 to some other port and uncomment it
    برداشتن # و همچنین باز کردن پورت دلخواه در فایروال سرور


    موارد زیر را دقیقا مانند دستور تغییر بدید تمامی این موارد از منوی سمت چپ cPanel یافت میشوند

    کد:
    Enable open_basedir protection
    Disable Compilers for all accounts(except root)
    Enable Shell Bomb/memory Protection
    Enable cPHulk Brute Force Protection

    در قسمت Main >> Service Configuration >> Apache Configuration >> Global Configuration

    کد:
    TraceEnable Off
    ServerSignature Off
    ServerTokens ProductOnly
    FileETag None
    و در Main >> Security Center >> Apache mod_userdir Tweak

    کد:
    Enable mod_userdir Protection
    را تیک بزنید


    در قسمت Main >> Service Configuration >> Configure PHP and SuExec
    به این صورت انجام شود

    کد:
    Default PHP Version (.php files) 5
    PHP 5 Handler suphp
    PHP 4 Handler none
    Apache suEXEC on
    Apache Ruid2 off
    در nano /usr/local/lib/php.ini

    کد:
    enable_dl = Off
    disable_functions
    symlink, show_source, passthru, exec, fpassthru, popen, crack_check, crack_closedict, proc_open, crack_getlastmessage, crack_opendict, psockopen, php_ini_scanned_files, shell-exec, system, dl, tmp, safe_mode, systemroot, server_software, get_current_user, ini_restore, popen, pclose, exec, shell_exec, suExec, proc_open, proc_nice, proc_terminate, proc_get_status, proc_close, pfsockopen, leak, apache_child_terminate, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid, posix_setuid, escapeshellcmd, escapeshellarg, posix_ctermid, posix_getcwd, posix_getegid, posix_geteuid, posix_getgid, posix_getgrgid, posix_getgrnam, posix_getgroups, posix_getlogin, posix_getpgid, posix_getpgrp, posix_getpid, posix_getppid, posix_getpwnam, posix_getpwuid, posix_getrlimit, posix_getsid, posix_getuid, posix_isatty, posix_setegid, posix_seteuid, posix_setgid, posix_times, posix_ttyname, posix_uname, posix_access, posix_get_last_error, posix_mknod, posix_strerror, posix_initgroups, posix_setsid, posix_setuid, perl, rsync, wget, ./, python, whoami, cat, perm, find, phpinfo, php_uname, c99_buff_prepare, c99_sess_put, c99getsource, c99sh_getupdate, c99fsearch, c99shexit, c99ftpbrutecheck, fpassthru
    register_globals = Off
    safe_mode = On
    expose_php = Off
    magic_quotes = On
    display errors = Off
    در Main >> Security Center >> PHP open_basedir Tweak

    کد:
    Enable php open_basedir Protection
    را تیک بزنید


    حتما Suhosin را نصب کنید اگر آموزش نصب این مورد هم نیاز بود بفرمایید تا آموزششو بدم ولی از طریق easy apache قابل نصبه با یه تیک و یه تغییر کوچیک در فایل php.ini . :3:

    در قسمت Main >> Server Configuration >> Tweak Settings این تغییرات را اعمال کنید

    کد:
    Enable BoxTrapper spam trap off
    Email password reset off
    SSL Support for cPanel daemons (no stunnel) on
    Allow Remote Domains off
    ***** subdomains off
    ***** subdomain override off
    در قسمت Main >> Security Center >> Compiler Access

    کد:
    Compiler Access
    را Disable کنید

    در قسمت Main >> Service Configuration >> FTP Server Configuration

    کد:
    iguration
    Allow Anonymous Logins no
    Allow Anonymous Uploads no
    Allow Logins with Root Password no
    Broken Clients Compatibility no
    اینها مباحث اولیه بود
    ادامه دارد ...

  • #2
    RE: آموزش کانفیگ امنیتی

    آموزش نصب هم قرار دهید تا کاربران استفاده نمایند .
    [align=center][/align]

    نظر


    • #3
      RE: آموزش کانفیگ امنیتی

      سلام.

      این الان کانفیگ چی بود؟؟

      میشه آموزش کانفیگ فایروال ها رو هم بزارید؟؟

      نظر


      • #4
        RE: آموزش کانفیگ امنیتی

        آموزش نصب Suhosin

        Download latest version of Suhosin, enter:

        # cd /opt
        # wget http://download.suhosin.org/suhosin-0.9.27.tgz

        Make sure you have php-devel installed:

        # yum install php-devel

        Compile Suhosin under PHP 5 and RHEL / CentOS Linux

        Type the following commands:

        # cd suhosin-0.9.27
        # phpize
        #./configure
        # make
        # make install
        Configure Suhosin

        Type the following command to create Suhosin configuration file:

        # echo 'extension=suhosin.so' > /etc/php.d/suhosin.ini

        Restart web server




        Type the following command to restart httpd:

        # service httpd restart

        If you are using lighttpd, enter:

        # service lighttpd restart

        Verify Suhosin installation

        Type the following command:
        $ php -v

        Sample output:

        PHP 5.1.6 (cli) (built: Jun 12 2008 05:02:36)
        Copyright (c) 1997-2006 The PHP Group
        Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies
        with XCache v1.2.2, Copyright (c) 2005-2007, by mOo
        with Suhosin v0.9.27, Copyright (c) 2007, by SektionEins GmbH

        You can find more information by running phpinfo():

        <?php
        phpinfo();
        ?>

        Sample output:
        Fig.01: Suhosin information and settings displayed by phpinfo().


        عکس :

        http://files.cyberciti.biz/uploads/faq/2008/09/suhosin-php-security.png



        موفق و سربلند
        [align=center]ما جایی زندگی می کنیم که

        هرزگی : مد

        بی آبرویی : کلاس

        مستی و دود : تفریح

        و لاشخوری و گرگ بودن

        رمـز موفقیته !!!
        [/align]

        نظر

        صبر کنید ..
        X