> For the complete documentation index, see [llms.txt](https://waf-doc.inext.checkpoint.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://waf-doc.inext.checkpoint.com/how-to/restrict-access-to-backend-servers-from-cloudguard-waf-as-a-service-ips-only.md).

# Restrict Access to Backend Servers from CloudGuard WAF as a Service IPs Only

### Risks of Not Restricting Backend Servers to Receive Traffic Only from WAF

Leaving backend servers open to traffic from sources other than Web Application Firewalls (WAF) exposes them to cyber threats. Without WAF protection, attackers can directly target these servers, leading to risks such as denial-of-service (DoS) attacks, ransomware infections, and full application compromises.

### Steps to Restrict Backend Servers to Receive Traffic Only from CloudGuard WAF SaaS IPs

To ensure backend servers only receive traffic from CloudGuard WAF as a Service IPs, follow these steps:

1. **Identify CloudGuard WAF SaaS IPs**: Log in to your Infinity Portal account and navigate to the Profile page to find the list of authorized IP addresses.
2. **Update Firewall Rules**: Configure your network firewall to allow incoming traffic only from the identified CloudGuard WAF SaaS IPs. This can typically be done through your firewall’s management console.
3. **Modify Server Access Control Lists (ACLs)**: Update the ACLs on your backend servers to permit traffic exclusively from the CloudGuard WAF IP addresses. This ensures that any traffic not routed through the WAF is blocked.
4. **Test Configuration**: After updating the firewall rules and ACLs, conduct thorough testing to verify that only traffic from the CloudGuard WAF is reaching your backend servers.
5. **Monitor and Audit**: Continuously monitor network traffic and audit logs to ensure compliance with the new configuration and to detect any unauthorized access attempts.

By implementing these steps, you can significantly enhance the security of your backend servers and protect them from potential cyber threats.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://waf-doc.inext.checkpoint.com/how-to/restrict-access-to-backend-servers-from-cloudguard-waf-as-a-service-ips-only.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
