Learn about Centmin Mod LEMP Stack today
Become a Member

centmin.sh /inc/cpcheck.inc disabling ipset

Discussion in 'Bug Reports' started by jcat, Jan 9, 2024.

  1. jcat

    jcat Member

    147
    22
    18
    Jun 21, 2015
    New Jersey
    Ratings:
    +62
    Local Time:
    6:47 AM
    Can you apply a similar IPSET check you have here and check for the module?

    centminmod/inc/csftweaks.inc at master · centminmod/centminmod

    Example

    Code:
    # KERNEL_NUMERICVER=$(uname -r | awk -F. '{ printf("%d%03d%03d%03d\n", $1,$2,$3,$4); }')
    # [[ -f /proc/user_beancounters && "$KERNEL_NUMERICVER" -ge '3000000000' && "$(lsmod | grep ip_set)" ]] && echo "good in the hood"
    good in the hood
    
    to fix the check here:

    centminmod/inc/cpcheck.inc at master · centminmod/centminmod


    we need ipset! :p

    also if it could be applied to earlier branches 123.08stable/123.09beta01
     
  2. eva2000

    eva2000 Administrator Staff Member

    52,159
    11,995
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,498
    Local Time:
    8:47 PM
    Nginx 1.25.x
    MariaDB 10.x
    A CentOS 7, EL8 or EL9 issue? What is your server install environment? dedicated, KVM, OpenVZ ? Kernel versions

    Output for
    Code (Text):
    uname -r
     
  3. jcat

    jcat Member

    147
    22
    18
    Jun 21, 2015
    New Jersey
    Ratings:
    +62
    Local Time:
    6:47 AM
    Centos7
    OpenVZ7
    Code:
    # uname -r
    3.10.0
    
    ipset is supported and working on OpenVZ7
     
  4. eva2000

    eva2000 Administrator Staff Member

    52,159
    11,995
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,498
    Local Time:
    8:47 PM
    Nginx 1.25.x
    MariaDB 10.x
  5. jcat

    jcat Member

    147
    22
    18
    Jun 21, 2015
    New Jersey
    Ratings:
    +62
    Local Time:
    6:47 AM
    Copy, thank you!
     
  6. jcat

    jcat Member

    147
    22
    18
    Jun 21, 2015
    New Jersey
    Ratings:
    +62
    Local Time:
    6:47 AM
    Will need to request a further change as lxc actually gets outputted from virt-what

    Code:
    [15:06][root@wpo123456.bigscoots-wpo.com centminmod]# virt-what
    openvz
    lxc
    
    so still failing :(

    Code:
    [14:59][root@wpo123456.bigscoots-wpo.com centminmod]# [[ "$(virt-what | grep -o lxc)" != 'lxc' ]]
    [15:05][root@wpo123456.bigscoots-wpo.com centminmod]# echo $?
    1
    
     
  7. eva2000

    eva2000 Administrator Staff Member

    52,159
    11,995
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,498
    Local Time:
    8:47 PM
    Nginx 1.25.x
    MariaDB 10.x
    What about output from command below on your OpenVZ7 system
    Code (Text):
    systemd-detect-virt
     
  8. jcat

    jcat Member

    147
    22
    18
    Jun 21, 2015
    New Jersey
    Ratings:
    +62
    Local Time:
    6:47 AM
    Code:
    # systemd-detect-virt
    openvz
     
  9. eva2000

    eva2000 Administrator Staff Member

    52,159
    11,995
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,498
    Local Time:
    8:47 PM
    Nginx 1.25.x
    MariaDB 10.x
    Looks like that command reports correctly. Anyway, updated 124.00stable and 130.00beta01 with fixed up lxc detection so openvz will work properly :)