Learn about Centmin Mod LEMP Stack today
Become a Member

Cloudflare.conf and ipv6

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

  1. Mr. Jinx

    Mr. Jinx New Member

    29
    8
    3
    Apr 18, 2021
    Ratings:
    +15
    Local Time:
    1:03 PM
    • 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,898
    10,930
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,985
    Local Time:
    10:03 PM
    Nginx 1.21.x
    MariaDB 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

    29
    8
    3
    Apr 18, 2021
    Ratings:
    +15
    Local Time:
    1:03 PM
    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,898
    10,930
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,985
    Local Time:
    10:03 PM
    Nginx 1.21.x
    MariaDB 10.x
    csfcf.sh will get updated via cmupdate command so will overwrite your changes right now.