KS-Soft. Network Management Solutions
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister    ProfileProfile    Log inLog in 

URL test on CDN (Cloudflare) hosted domains

 
Post new topic   Reply to topic    KS-Soft Forum Index -> Configuration, Maintenance, Troubleshooting
View previous topic :: View next topic  
Author Message
steffen



Joined: 25 Jun 2019
Posts: 3

PostPosted: Tue Jun 25, 2019 7:09 am    Post subject: URL test on CDN (Cloudflare) hosted domains Reply with quote

I find that websites running behind Cloudflare are not easily setup with URL tests.
Are there any special configuration in regards to monitor websites using CDN services?
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12790
Location: USA

PostPosted: Tue Jun 25, 2019 7:25 am    Post subject: Reply with quote

Not sure I understand the question.
I think there is no problem to setup URL test.
But you may want to setup several URL tests, e.g.
- check URL using hostname
- check URL using several IP addresses provided by Cloudflare
- check URL using real IP address of your server
This way you will be sure Cloudflare service works and your web site works fine.

Regards
Alex
Back to top
View user's profile Send private message Visit poster's website
steffen



Joined: 25 Jun 2019
Posts: 3

PostPosted: Tue Jun 25, 2019 11:08 am    Post subject: Reply with quote

KS-Soft wrote:
Not sure I understand the question.
I think there is no problem to setup URL test.
But you may want to setup several URL tests, e.g.
- check URL using hostname
- check URL using several IP addresses provided by Cloudflare
- check URL using real IP address of your server
This way you will be sure Cloudflare service works and your web site works fine.

Regards
Alex


Hi Alex,

Thank you for answering and your thoughts of adding additional tests. Your answer seems to be sufficient as I just wanted to hear from you, if any special configuration was needed or known in case of using CDNs.

Digging a little more and I find some WAF events at Cloudflare as follows. After whitelisting the IP address of our monitor, the tests are now passing. I'm not sure how to pass the WAF rule, but it seem like the header needs adjustment of some sort. Do you have any clue?

Code:
{
  "id": "4ec87d54099ad881",
  "country": "DK",
  "ip": "...",
  "protocol": "HTTP/1.1",
  "method": "GET",
  "host": "...",
  "user_agent": "Mozilla/4.0 (compatible; MSIE 6.0)",
  "uri": "/",
  "request_duration": 36999936,
  "triggered_rule_ids": [
    "100043A"
  ],
  "action": "challenge",
  "cloudflare_location": "CPH",
  "occurred_at": "2019-06-25T16:59:01.12Z",
  "rule_detail": [
    {
      "id": "",
      "description": "REQUEST_HEADERS:HOST"
    }
  ],
  "rule_message": "Anomaly:Header:User-Agent",
  "type": "waf",
  "rule_id": "100043A",
  "zone_id": "c73baeafc85f1e0995b4a2a5ec1749fb",
  "cookie": ""
}
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12790
Location: USA

PostPosted: Tue Jun 25, 2019 1:08 pm    Post subject: Reply with quote

Looks like server (WAF) does not like value set in User-Agent field.
You may change this field on Misc page in HostMonitor Options dialog (Options->Misc->Settings for URL tests).

E.g. set agent name to
Mozilla/5.0 (Windows NT 10.0; Win64; x64)
or
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:15.0) Gecko/20100101 Firefox/15.0.1
or
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.111 Safari/537.36

Regards
Alex
Back to top
View user's profile Send private message Visit poster's website
steffen



Joined: 25 Jun 2019
Posts: 3

PostPosted: Wed Jun 26, 2019 12:30 am    Post subject: Reply with quote

Thank you very much Alex!

Changing the User Agent under the misc options made the URL test pass through Cloudflare.
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12790
Location: USA

PostPosted: Wed Jun 26, 2019 6:17 am    Post subject: Reply with quote

You are welcome

Regards
Alex
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    KS-Soft Forum Index -> Configuration, Maintenance, Troubleshooting All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

KS-Soft Forum Index