Discover Centmin Mod today
Register Now

Cloudflare.conf and ipv6

Discussion in 'Add Ons' started by Mr. Jinx, Oct 2, 2021.

  1. Mr. Jinx

    Mr. Jinx New Member

    26
    8
    3
    Apr 18, 2021
    Ratings:
    +14
    Local Time:
    6:25 AM
    • CentOS Version: CentOS 7 64bit
    • Centmin Mod Version Installed: 123.09beta01
    I have csfcf.sh setup in cron.
    It generated the cloudflare.conf file, but all IPv6 ip's are disabled (comment out).


    If I remove the comment (#) and the cron runs, the IPv6 ip's are disabled again.
    Is this supposed to work this way?
     
    Last edited: Oct 3, 2021
  2. eva2000

    eva2000 Administrator Staff Member

    47,292
    10,701
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,626
    Local Time:
    2:25 PM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    In the cloudflare.conf include file there's a second include file link, copy the Ipv6 entries from Cloudflare.conf into the second include file for them to persist. It's done this way as not everyone has Ipv6 enabled.
     
  3. Mr. Jinx

    Mr. Jinx New Member

    26
    8
    3
    Apr 18, 2021
    Ratings:
    +14
    Local Time:
    6:25 AM
    That is also an option, but for now I just modified csfcf.sh:

    Code:
    echo "#set_real_ip_from $i;" >> $CFINCLUDEFILE
    to:
    Code:
    echo "set_real_ip_from $i;" >> $CFINCLUDEFILE
     
  4. eva2000

    eva2000 Administrator Staff Member

    47,292
    10,701
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,626
    Local Time:
    2:25 PM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    csfcf.sh will get updated via cmupdate command so will overwrite your changes right now.