Proxy traffic through Gateway (2)

Last updated Oct 12, 2026 With Cloudflare Gateway, you can log and filter DNS, network, and HTTP traffic from devices running the Cloudflare One Client. This includes traffic to the public Internet and traffic directed to your private network. DNS filtering is enabled by default since the Cloudflare One Client sends DNS queries to Cloudflare's public DNS resolver, 1.1.1.1. To enable network and HTTP filtering, you will need to allow Cloudflare Gateway to proxy that traffic.

Enable the proxy

  1. Go to Traffic policies > Traffic settings.
  2. Enable Allow Secure Web Gateway to proxy traffic for TCP.
  3. (Recommended) To proxy all port 443 traffic, including internal DNS queries, select UDP.
  4. (Optional) To scan file uploads and downloads for malware, enable anti-virus scanning.

Cloudflare will now proxy traffic from enrolled devices, except for the traffic excluded in your split tunnel settings. For more information on how Gateway forwards traffic, refer to Gateway proxy.

Was this helpful?

YesNo

On this page

Proxy traffic through Gateway (2) - 图1Docs

{"@context":"https://schema.org","@type":"WebPage","@id":"https://developers.cloudflare.com/learning-paths/secure-internet-traffic/configure-device-agent/enable-proxy/#page","headline":"Proxy traffic through Gateway","description":"Route device traffic through Cloudflare Gateway.","url":"https://developers.cloudflare.com/learning-paths/secure-internet-traffic/configure-device-agent/enable-proxy/","inLanguage":"en","image":"https://developers.cloudflare.com/learning-paths/secure-internet-traffic/configure-device-agent/enable-proxy/og.png?v=0b812e5e6ea5b5ac","dateModified":"2026-10-12","publisher":{"@type":"Organization","name":"Cloudflare","description":"One platform for your apps, agents, and workforce. Build, secure, and scale without managing infrastructure","url":"https://www.cloudflare.com/","sameAs":["https://github.com/cloudflare","https://www.linkedin.com/company/cloudflare","https://x.com/cloudflare"],"logo":{"@type":"ImageObject","url":"https://developers.cloudflare.com/logo.svg"},"address":{"@type":"PostalAddress","streetAddress":"101 Townsend St","addressLocality":"San Francisco","addressRegion":"CA","postalCode":"94107","addressCountry":"US"},"contactPoint":[{"@type":"ContactPoint","contactType":"Customer Support","url":"https://support.cloudflare.com/","availableLanguage":["English"]},{"@type":"ContactPoint","contactType":"Sales","url":"https://www.cloudflare.com/contact/","availableLanguage":["English"]}]},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"}}


description: Evaluate PAC files for proxy configuration. title: Determine when to use PAC files image: https://developers.cloudflare.com/learning-paths/secure-internet-traffic/configure-device-agent/pac-files/og.png?v=8e73f517367ebd5e


Skip to content

Documentation Index
Fetch the complete documentation index at: https://developers.cloudflare.com/learning-paths/llms.txt
Use this file to discover all available pages before exploring further.