Welcome to Centmin Mod Community
Register Now

[Solved] There must be a bug on the latest beta, in particular to CSF.IGNORE

Discussion in 'Bug Reports' started by rdan, Mar 8, 2017.

  1. rdan

    rdan Well-Known Member

    5,439
    1,397
    113
    May 25, 2014
    Ratings:
    +2,186
    Local Time:
    2:35 PM
    Mainline
    10.2
    Default File Content:
    upload_2017-3-8_2-55-0.png


    I just remove my own IP.
     
  2. eva2000

    eva2000 Administrator Staff Member

    53,191
    12,113
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,649
    Local Time:
    4:35 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    what do you mean ? centmin mod on initial install will auto insert your ISP detected ip into /etc/csf/csf.ignore to whitelist your ownISP ip address from CSF Firewall
     
  3. rdan

    rdan Well-Known Member

    5,439
    1,397
    113
    May 25, 2014
    Ratings:
    +2,186
    Local Time:
    2:35 PM
    Mainline
    10.2
    As you can see on the screenshot, installer must auto add all Cloudflare IP the same as CSF.ALLOW.
    But for CSF.IGNORE file only ip word is inserted.
     
  4. eva2000

    eva2000 Administrator Staff Member

    53,191
    12,113
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,649
    Local Time:
    4:35 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    ah i see that now.. thanks will check it out :)

    you can remove those ip entries using command
    Code (Text):
    sed -i '/^ip/d' /etc/csf/csf.ignore  
    
     
  5. rdan

    rdan Well-Known Member

    5,439
    1,397
    113
    May 25, 2014
    Ratings:
    +2,186
    Local Time:
    2:35 PM
    Mainline
    10.2
    Thanks :).
    I manually added all my backup server IP and Cloudflare also :).
     
  6. eva2000

    eva2000 Administrator Staff Member

    53,191
    12,113
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,649
    Local Time:
    4:35 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    fyi, 123.09beta01 updated with fix :D
     
  7. eva2000

    eva2000 Administrator Staff Member

    53,191
    12,113
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,649
    Local Time:
    4:35 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    ah yes tools/csfcf.sh skips add cloudflare ips to csf.ignore if the ip is already in csf.allow as it assumes it was already added. Guess i might need to double check to see if the ip address is in csf.ignore too

    edit: updated 123.09beta01 tools/csfcf.sh for this too :D