صفحه 2 از 2 نخستنخست 12
نمایش نتایج: از شماره 11 تا 12 , از مجموع 12

موضوع: نصب CSF روی openVZ

  1. #11
    عضو دائم
    تاریخ عضویت
    Jan 2009
    محل سکونت
    یزد
    نوشته ها
    2,773
    تشکر تشکر کرده 
    914
    تشکر تشکر شده 
    2,780
    تشکر شده در
    1,757 پست

    پیش فرض پاسخ : نصب CSF روی openVZ

    2 : آموزش نصب CSF هست که اینم بدرتون میخوره
    http://www.sherin.co.in/csf-lfd-fire...tuozzo-openvz/

    Introduction:

    In general csf is giving good compatibility with cpanel servers . But in a vps (openvz or Virtuzzo) the csf configuration is something different.

    Sometimes you may get an error as follow after the csf installation in vps

    ————–

    Error: iptables command [/sbin/iptables -v -A LOGDROPIN -p tcp -m limit --limit 30/m --limit-burst 5 -j LOG --log-prefix 'Firewall: *TCP_IN Blocked* '] failed, at line 196

    —————

    So how to resolve this issue. Let us do it as follows,

    There are two steps to configure the csf in vps

    i)Main vps server ( The host server ,in which the vps nodes are running) configuration

    ii) Vps node configuration.

    Main vps serverconfiguration

    Before starting the csf installation in a node login to the main server (host server) and check whether the following modules are inserted in to the kernel

    ———
    ipt_conntrack
    ipt_LOG
    ipt_owner
    ipt_state
    ip_conntrack_ftp
    ———

    You can check it as follows

    —————
    # lsmod |grep -i <module-name>
    —————

    If not please insert these modules into the kernel.

    ————
    #modprob <module-name>
    eg: modprob ipt_conntrack
    ————-

    Now add these modules to iptable configuration as follows.

    ———–
    # vi /etc/sysconfig/iptables-config
    Add the following in this file
    IPTABLES_MODULES=”ipt_conntrack ipt_LOG ipt_owner ipt_state ip_conntrack_ftp”
    ———–

    Now edit the vps configuration file from /etc/sysconfig/vz-scripts/ Let 101 is the VEID, add the above inserted modules in to the IPTABLE section in this configuration file.

    ———-
    # vi /etc/sysconfig/vz-scripts/101.conf
    IPTABLES=”iptable_filter iptable_mangle ipt_limit ipt_multiport ipt_tos ipt_TOS ipt_REJECT ipt_TCPMSS ipt_tcpmss ipt_ttl ipt_LOG ipt_length ip_conntrack ipt_state
    iptable_nat ip_nat_ftp ipt_owner ip_conntrack_ftp”
    ————-

    Here we completed the main vps server configuration . So now reboot the child node (not main server) as follows

    —————

    # vzctl restart <veid>

    eg: vzctl restart 101

    ——————-

    ii) Vps node configuration.

    Now ssh /enter your child vps node

    Now download and install the csf . You can download the csf fromhere

    Before restarting the csf let us do some configurations as follows , Edit the file /etc/csf/csf.conf .Then set the following variables

    ——–
    ETH_DEVICE = “venet0″ #from ifconfig you can see the n/w device
    MONOLITHIC_KERNEL = “1″
    VERBOSE = “0″ # will disable the verbose output during start
    ———
    Now start the csf and lfd .

    ———–

    /etc/init.d/csf start

    /etc/init.d/lfd start

    ———–

    Note: If it is cpanel server go to whm and configure the firewall settings

    Enjoy it


  2. # ADS




     

  3. #12
    عضو انجمن Desperados آواتار ها
    تاریخ عضویت
    Oct 2009
    نوشته ها
    219
    تشکر تشکر کرده 
    138
    تشکر تشکر شده 
    388
    تشکر شده در
    195 پست

    پیش فرض پاسخ : نصب CSF روی openVZ

    مدیر سرور اصلی خودم هستم
    و این 2 تا آموزش رو دقیقاً انجام دادم قبلاً که الان فقط یکی از IPTABLE ها Failed هست و اینو نمی دونم چکار کنم !
    به خود دیتاسنتر گفتم روی یکی دیگر از VPS ها انجام دادند و خیلی عالی کار میکنه اینم مثل اینکه باید به دیتاسنتر بگم ردیف کنند.

صفحه 2 از 2 نخستنخست 12

اطلاعات موضوع

کاربرانی که در حال مشاهده این موضوع هستند

در حال حاضر 1 کاربر در حال مشاهده این موضوع است. (0 کاربران و 1 مهمان ها)

موضوعات مشابه

  1. فیلم آموزشی نصب Openvz بر روی centos 6
    توسط ourweb در انجمن اوپن وی زد OpenVZ
    پاسخ ها: 3
    آخرين نوشته: October 3rd, 2015, 13:10
  2. یک اوپن وی زد OpenVZ دارم می خوام با ssh....
    توسط hanavar در انجمن اوپن وی زد OpenVZ
    پاسخ ها: 2
    آخرين نوشته: January 10th, 2015, 02:18
  3. دستورات اپن وی زد (OpenVZ Commands)
    توسط MizbanVps در انجمن اوپن وی زد OpenVZ
    پاسخ ها: 1
    آخرين نوشته: November 10th, 2013, 14:30
  4. درخواست وی پی اس openvz
    توسط sina sina در انجمن درخواست سرور مجازی
    پاسخ ها: 5
    آخرين نوشته: September 9th, 2011, 13:45
  5. ایا IBSng تنها روی openvz نصب میشه ؟
    توسط asusonline در انجمن اوپن وی زد OpenVZ
    پاسخ ها: 17
    آخرين نوشته: July 29th, 2011, 18:08

مجوز های ارسال و ویرایش

  • شما نمیتوانید موضوع جدیدی ارسال کنید
  • شما امکان ارسال پاسخ را ندارید
  • شما نمیتوانید فایل پیوست کنید.
  • شما نمیتوانید پست های خود را ویرایش کنید
  •