当前位置:网站首页>Apache uses setenvif to identify and release the CDN traffic according to the request header, intercept the DDoS traffic, pay attention to the security issues during CDN deployment, and bypass the CDN
Apache uses setenvif to identify and release the CDN traffic according to the request header, intercept the DDoS traffic, pay attention to the security issues during CDN deployment, and bypass the CDN
2022-06-25 21:25:00 【Deng_ Xian_ Sheng】
Origin of this paper On “ Deployed CDN Still found true IP”, There are two themes ; One is how to deploy safely CDN, The second is how to discover the deployment CDN The truth after IP. A little bit “ stultify oneself ” It smells good. .
Author's server Ubuntu Deployed Tencent cloud CDN, And pass IP Use https Back to the source , It was unexpectedly found to be true IP Exposed loopholes ( Thanks to our team of researchers Safe little spider ) He found it was ssl The truth of the certificate disclosure IP, I haven't found out the specific reason myself .
Bypass CDN Get real IP This website
Can help you
https://censys.io/ipv4?q=uosblog.top
Obvious , Found out my truth IP( But it's not that important anymore )
How to defend ?CDN Security issues to pay attention to during deployment
Above , The author's server is through IP Back to source , If you disable IP visit ( Security cannot be guaranteed , An attacker can still modify hosts The file specifies the real name corresponding to a domain name IP, be based on IP Will be bypassed ) Cannot go back to the source , So identify CDN Flow for apache distinguish .
Back to the source HTTP Request header configuration , majority CDN All manufacturers have this function 
apache To configure :
SetEnvIf, Set environment variables according to client request properties , Support regular expression matching request headers
Detailed explanation >>https://developer.aliyun.com/article/451524
Match request header xcdn: Tencent, If it matches, let go
Order allow,deny
SetEnvIf ^xcdn* ^Tencent.* local_ref=0
Allow from env=local_ref
The intercepted will return 403:
About ssl Lead to reality IP Exposed problems , I found an article saying : If do not have CDN, The server is configured https, Browser pass https visit , There's no problem with that .
however , Yes CDN Under the circumstances , The server is configured with https,CDN adopt https Back to the source , There is still no problem ; but , User pass https visit CDN;CDN Your certificate will reveal the source IP.
边栏推荐
- Volatile qualifier
- Big end and small end
- Install JDK, MySQL and nexus under Linux (tar package installation)
- Alicloud disk mounted locally
- Set eye color
- Desktop network error display red ×, Component failed to start
- Local Yum source production
- Installing and configuring redis under Linux
- 银河证券靠谱吗?开证券账户安全吗?
- [nail scenario capability package] hospital visitor verification
猜你喜欢

Canoe learning notes (2)

Must see the summary! In depth learning era, you should read 10 articles to understand image classification!

The difference between strcpy and memcpy

On ACM competition

lombok

Jmeter- (II) basic interface and common components for interface testing

109 practical shell scripts

Rounding related calculation
![[nailing scenario capability package] smart office phone](/img/ec/c2f342a54ab69d8b834a8a1c8f8a01.jpg)
[nailing scenario capability package] smart office phone

Yolov4 reading notes (with mind map)! YOLOv4: Optimal Speed and Accuracy of Object Detection
随机推荐
[nailing scenario capability package] manage the on-the-job / off-the-job situation of employees
Lesson 4 beautifulsoup
Differences between modems and routers (powercert animated videos)
启牛学堂证券开户安全嘛?
Jmeter- (II) basic interface and common components for interface testing
STM32 self balancing robot project, with code, circuit diagram and other data attached at the end (learning materials and learning group at the end)
Get parameters in URL
同花顺炒股软件开户是合法的吗?安全吗
PHP compressed file
UDP Vs TCP (Powercert animated videos)
Jmeter- (IV) regular expression for interface testing
On dynamic programming
Compile 6relayd using the cross compiler
Is it safe to fry stocks with compass or securities software? Where can I open an account and how
Command 'GCC' failed with exit status 1 when PIP install mysqlclient
Canoe learning notes (1)
What is machine learning? (Fundamentals)
Support JPEG format in GD Library in php7.4
Volatile qualifier
Robotframework rewrite framework add case control