Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]After configuring CDN to obtain the real IP for multiple websites in WAF, some work while others do not #7711

Open
dark2star opened this issue Jan 13, 2025 · 6 comments
Assignees

Comments

@dark2star
Copy link

Contact Information

No response

1Panel Version

v1.10.23-lts

Problem Description

多个网站在waf中分别设置cdn获取真实IP后有的生效有的没起作用

Steps to Reproduce

在WAF全局设置“真实IP获取方式”并打开cdn开关,同时在网站设置中分别设置“真实IP获取方式”并打开cdn开关。“真实IP获取方式”全部是一致的,有的网站生效有的不生效还是获取的CDN的id地址。

The expected correct result

No response

Related log output

No response

Additional Information

No response

@wanghe-fit2cloud wanghe-fit2cloud changed the title [Bug] [Bug] Jan 13, 2025
@wanghe-fit2cloud wanghe-fit2cloud changed the title [Bug] [Bug]After configuring CDN to obtain the real IP for multiple websites in WAF, some work while others do not Jan 13, 2025
@zhengkunwang223
Copy link
Member

网站用到的 CDN 都是同一个吗?

@wanghe-fit2cloud
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Do all websites use the same CDN?

@dark2star
Copy link
Author

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿

Do all websites use the same CDN?

全部都是cloudflare的cdn,重启服务无效,反复站点的waf开关和站点的cdn开关后生效,另外发现官方的OpenResty代理的个别有nginx请求日志,数据库中没有任何记录。

@wanghe-fit2cloud
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Bot detected the issue body's language is not English, translate it automatically.

Do all websites use the same CDN?

All are cloudflare's CDNs. Restarting the service has no effect. Repeating the waf switch of the site and the cdn switch of the site will take effect. In addition, it is found that some of the official OpenResty agents have nginx request logs and no records in the database.

@zhengkunwang223
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿

Do all websites use the same CDN?

全部都是cloudflare的cdn,重启服务无效,反复站点的waf开关和站点的cdn开关后生效,另外发现官方的OpenResty代理的个别有nginx请求日志,数据库中没有任何记录。

比如什么日志?

@wanghe-fit2cloud
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Bot detected the issue body's language is not English, translate it automatically.

Do all websites use the same CDN?

All are cloudflare's cdn. Restarting the service has no effect. Repeating the waf switch of the site and the cdn switch of the site will take effect. In addition, it is found that some of the official OpenResty agents have nginx request logs and no records in the database.

For example, what kind of log?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants