tencent cloud

Web Application Firewall

Release Notes and Announcements
Release Notes
Product Announcement
Security Advisory
Product Introduction
Overview
Product Category
Strengths
Scenarios
Plans and Editions
Supported Regions
Basic Concepts
Getting Started
Getting Started
FAQs for Beginners
Operation Guide
Overview
Connection Management
Security Operations
Protection Policies
Service Settings
사례 튜토리얼
WAF CCP Overview
Bot Management
API Security
Integration
Protection Configuration
FAQS
Product Consultation
Connection
Usage
Permissions
Sandbox Isolation Status
WAF 정책
개인 정보 보호 정책
데이터 처리 및 보안 계약

Step 2. Perform Local Testing

PDF
포커스 모드
폰트 크기
마지막 업데이트 시간: 2024-09-12 16:59:06
This document describes how to perform local testing before modifying DNS records to ensure the service availability.

Directions

DNS resolution is required when a local server accesses a website. Before DNS resolution, the IP address of the destination domain name will be obtained from the local hosts file. Therefore, you can modify the hosts file to direct local access traffic to WAF to test the connectivity between the website and WAF. This avoids direct modification of DNS records that may affect Internet users' access to the website.
1. Log in to the WAF console, select Asset Center > Domain Name List on the left sidebar. You can check the CNAME address of saas.technicalsupport.cn.

If you need to get the VIP address of the corresponding domain name, you can get it by pinging the CNAME address. i. In Windows, open Command Prompt. ii. Run the command: ping <WAF CNAME address>.

iii. The ping command output will record the WAF IP address of the domain name, which is required for subsequent operations.
2. Modify hosts file.
In Windows, modify C:\\Windows\\System32\\drivers\\etc\\hosts by adding the following entry. Format: VIP address + Domain name added to WAF
Note:
Here, 1.1.1.1 is a test address, and it should be the VIP address in actual use.

In Linux, modify /etc/hosts by adding the following entry. Format: VIP address + Domain name added to WAF

3. Test access. Access the website from your local computer. If the website can be opened properly, the connectivity between the origin server and WAF is normal. i. Enter the following URL in your browser to access:
http://saas.technicalsupport.cn/?test=alert(123)
ii. If the browser returns a block page, the WAF is working properly.
Note:
To view the block page, you can access the default WAF prompt.


Subsequent Operations

After performing the local test, you can proceed as follows:

도움말 및 지원

문제 해결에 도움이 되었나요?

피드백