[Feature Request]: 能否给SSRF防护做一个选项
Do you need to file a feature request?
- [ ] I have searched the existing feature request and this feature request is not already filed.
- [ ] I believe this is a legitimate feature request, not just a question or bug.
Feature Request Description
一旦本地开了代理,会导致所有的DNS解析返回Fake-IP,此时SSRF防护会拒绝所有网站的访问申请。 希望能给是否开启SSRF防护做一个选项,或者做单独IP放行的选项
Related Module
Dashboard
Use Case
No response
Additional Context
No response
Fixed in #2911: https://github.com/HKUDS/DeepTutor/pull/2911
The SSRF guards now accept two operator settings instead of only the hard-coded private-range list. Both are on Settings → Network → Outbound requests (below CORS origins), and both apply immediately — no restart:
network_synthetic_ranges(orDEEPTUTOR_SSRF_SYNTHETIC_RANGES): list the CIDRs your proxy synthesises for public hostnames — for Loon the IPv6 pool (fd27:712::/32), for Clash/Mihomo198.18.0.0/15. A hostname resolving into one of those ranges is treated as public again. IP-literal URLs, loopback, link-local and cloud-metadata answers are still refused, and a second genuine private record for the same hostname still fails the gate.ssrf_protection_enabled(orDEEPTUTOR_SSRF_PROTECTION_ENABLED): setfalseto allow LAN/intranet targets (RFC1918 / CGNAT / ULA) for self-hosted setups. Loopback, link-local and metadata answers stay blocked, so it is not a way to reach the app process or a cloud credential endpoint.
The same policy covers MCP servers, web_fetch and partner-channel media, so one setting fixes every surface a Fake-IP proxy breaks (this issue, #2789, #2739). The previous DEEPTUTOR_MCP_FAKE_IP_RANGES name from #2857 keeps working as an alias.
The PR description has the reproduction (stubbed resolver returning fd27:712::c600:116b) and the test results.
Fix is in #2911 (open against dev), which also covers #2739, #2789 and #2822. This can close when it merges.