Want to subscribe to topics you're interested in?
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:
    4:53 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

    54,906
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,811
    Local Time:
    1:53 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    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:
    4:53 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

    54,906
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,811
    Local Time:
    1:53 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    csfcf.sh will get updated via cmupdate command so will overwrite your changes right now.