cloudflarearchive / cloudflare-tools Goto Github PK
View Code? Open in Web Editor NEWTools which enable you to get the full benefit of using the Cloudflare service.
Home Page: www.cloudflare.com
Tools which enable you to get the full benefit of using the Cloudflare service.
Home Page: www.cloudflare.com
I'm seeing a few requests coming through for the 141.101.64.0/19 ip range, which a whois tells me is CloudFlare UK. I'm sure there are other new ip ranges for other regions as well.
Please add all region ip subnets to mod_cloudflare
hello, i have copied the configuration file ( and change with my informations )
##
## CloudFlare (cloudflare.com)
##
ssl=yes
protocol=cloudflare, \
server=www.cloudflare.com, \
login=my-email, \
password=my-api-key \
myssdomain.mydomain.fr
and when i launch the tools, cloudflare send this error :
DEBUG: get_ip: using ip, ip reports
WARNING: unable to determine IP address
So with the ip_in_range functions i tested both IPv4 and IPv6 and IPv4 seems to be functioning fine but IPv6 seems to have a problem with the IP and range i provided it.
IP and range provided.
$ip = "2a02:c7f:9e03:1d00:59c2:3083:c23b:7146";
$range_ip = "2a02:c78::/29";
Also yes i did add my own function to make it easier to use for ipv4 and ipv6 so it can tell the difference between the two. (hopefully it gets added to the main script for easier use)
function ip_range_type($range_ip)
{
if (strpos($range_ip, ':') !== false) {
//if ip range provided is ipv6 then
//echo "range provided is ipv6";
return 1;
} else {
//if ip range provided is ipv4 then
//echo "range provided is ipv4";
return 2;
}
}
function ip_in_range($ip, $range_ip)
{
//only check IPv4 addresses against IPv4 ranges
if(filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4) && ip_range_type($range_ip) == 2) {
return ipv4_in_range($ip, $range_ip);
}
//only check IPv6 addresses against IPv6 ranges
if(filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_IPV6) && ip_range_type($range_ip) == 1) {
return ipv6_in_range($ip, $range_ip);
}
}
Online example :
https://3v4l.org/h5psU
I don't know why that range is incorrect if you look up the details on that users IP it provides that as a valid range.
http://ipinfo.io/2a02:c7f:9e03:1d00:59c2:3083:c23b:7146
The project can be found here: https://github.com/ioquatix/cloudflare-dns-update
Constantly getting
[Wed Nov 07 10:42:56 2012] [notice] child pid 21355 exit signal Segmentation fault (11)
in the apache error log whenever mod_cloudflare is enabled. Disapears when mod_cloudflare is disabled.
We are hosting some sites on cloudflare, some not on cloudflare. mod_remoteip
is not enabled
Linux something.com 2.6.32-44-server #98-Ubuntu SMP Mon Sep 24 17:41:33 UTC 2012 x86_64 GNU/Linux
PHP 5.3.2-1ubuntu4.18 with Suhosin-Patch (cli) (built: Sep 12 2012 19:12:47)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
with the ionCube PHP Loader v4.0.7, Copyright (c) 2002-2011, by ionCube Ltd., and
with Xdebug v2.0.5, Copyright (c) 2002-2008, by Derick Rethans
Loaded Modules:
core_module (static)
log_config_module (static)
logio_module (static)
mpm_prefork_module (static)
http_module (static)
so_module (static)
actions_module (shared)
alias_module (shared)
auth_basic_module (shared)
auth_digest_module (shared)
authn_file_module (shared)
authz_default_module (shared)
authz_groupfile_module (shared)
authz_host_module (shared)
authz_user_module (shared)
autoindex_module (shared)
cgi_module (shared)
dav_module (shared)
dav_fs_module (shared)
dav_lock_module (shared)
deflate_module (shared)
dir_module (shared)
env_module (shared)
fcgid_module (shared)
include_module (shared)
mime_module (shared)
negotiation_module (shared)
perl_module (shared)
php5_module (shared)
python_module (shared)
reqtimeout_module (shared)
rewrite_module (shared)
setenvif_module (shared)
ssl_module (shared)
status_module (shared)
suexec_module (shared)
userdir_module (shared)
Syntax OK
ii apache2 2.2.14-5ubuntu8.9 Apache HTTP Server metapackage
ii apache2-mpm-prefork 2.2.14-5ubuntu8.9 Apache HTTP Server - traditional non-threade
ii apache2-prefork-dev 2.2.14-5ubuntu8.9 Apache development headers - non-threaded MP
ii apache2-utils 2.2.14-5ubuntu8.9 utility programs for webservers
ii apache2.2-bin 2.2.14-5ubuntu8.9 Apache HTTP Server common binary files
ii apache2.2-common 2.2.14-5ubuntu8.9 Apache HTTP Server common files
ii libapache2-mod-fcgid-psa 2.3.6-11081018 Alternative FastCGI module for Apache2
ii libapache2-mod-perl2 2.0.4-6ubuntu1 Integration of perl with the Apache2 web ser
ii libapache2-mod-php5 5.3.2-1ubuntu4.18 server-side, HTML-embedded scripting languag
ii libapache2-mod-python 3.3.1-8ubuntu2 Python-embedding module for Apache 2
ii libapache2-reload-perl 0.10-2 Reload Perl modules when changed on disk
Hello.
I run "perl cloudflare.pl install" command but it gives an error:
Failed to download: [https://raw.github.com/cloudflare/CloudFlare-Tools/master/mod_cloudflare.c] at cloudflare.pl line 40.
I'm on CentOS 5.9, using Cpanel/WHM.
I can download it with wget but why can't this script download the file?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.