
In Progress
Posted
Paid on delivery
I need add ips to clouudflare whitelist from txt. This is the code but it's not working: #!/bin/bash # cloudflare email CFEMAIL="example@[login to view URL]" # cloudflare API key CFAPIKEY="daa17ddc630c8ae4d059459514ea7ac16ab32" cd /tmp # grab current red5 IP list wget [login to view URL] -qO /tmp/red5 # Turn text file into array red5IPS=$(</tmp/red5) # Loop through array and add IPs to Cloudflare whitelist for red5IP in ${red5IPS[@]}; do # trim the \r or it breaks the JSON format red5IP=$(echo $red5IP| sed "s#\r##g") echo $red5IP curl -s -X POST "[login to view URL]" \ -H "X-Auth-Email: $CFEMAIL" \ -H "X-Auth-Key: $CFAPIKEY" \ -H "Content-Type: application/json" \ --data '{"mode":"whitelist","configuration":{"target":"ip","value":"'"${red5IP}"'"},"notes":"red5 Ips"}' done # delete the temporary red5 IPs file rm -rf /tmp/red5 I need someone who can fix this or remake one for me. Please write (Cloud) so that i know that you have read the description.
Project ID: 24257515
2 proposals
Remote project
Active 6 yrs ago
Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs

I have experience in PHP, Linux, GIT, SQL, Laravel, Angular in addition, I have too experience of 10 years in micro computing and infrastructure and computer networks. I love so much PHP, Linux and web development.
$20 USD in 7 days
0.0
0.0
2 freelancers are bidding on average $27 USD for this job

Hi dear client, i had seen your job post in freelancer.com it's well explained. I will need proper information about your project so I can give you quality work done. I will share URL for the same during project discussion. Looking forward to start work together. Thank you, Rajni
$33 USD in 2 days
3.7
3.7

London, United Kingdom
Member since Nov 15, 2018
$3000-5000 USD
$50-100 USD
$3000-5000 USD
£20-250 GBP
$2-8 USD / hour
₹600-1500 INR
₹75000-150000 INR
$10-50 USD
$250-750 USD
₹37500-75000 INR
₹1500-12500 INR
₹12500-37500 INR
₹600-1500 INR
$8-10 USD / hour
$15-25 USD / hour
₹750-1250 INR / hour
$25-50 USD / hour
₹1500-12500 INR
₹400-750 INR / hour
$30-250 USD
$250-750 USD
$250-750 AUD
$30-250 USD
€250-750 EUR
$10-30 USD