Comments (13)
目前我看到包含这两个参数的状态是注释掉的,是不是解除注释后重新构建容器就能生效?
from safeline.
websocket并没有正常。故障依旧
from safeline.
我在用的版本是2.5版本,这个版本的配置文件里多了一个 include custom_params/backend_x;
看起来可以在这个文件里自定义一些配置
from safeline.
OK these params will be added in the next release.
from safeline.
诶刚看了下 nginx conf,目前是已经有这两个参数的?师傅看下 /path/to/safeline-ce/resources/nginx/proxy_params
from safeline.
XFF 在 server 中包含了,这里就注释掉了。看下 /path/to/safeline-ce/resources/nginx/site-enabled/IF_backend_xxx
from safeline.
我按照路径打开了配置文件,确实只有XFF。那如果说XFF包含了,那就有可能出现故障的是proxy_set_header Host ,我能否将其参数由$host_fixed改为$host?会不会产生其他的影响?
from safeline.
可以先把 proxy_params
改成 $host 试试,影响是说哪方面的?因为需要 nginx reload,所以有可能会断流?
from safeline.
根据您的指引,我修改了参数后重启容器,目前显示容器是健康状态的,WAF管理后台也能正常访问,但所有的代理设置均不生效,无法访问业务页面。
from safeline.
复原设置后就WAF功能就恢复正常了
from safeline.
是说,复原到默认设置的情况下,websocket 代理也正常了哈?
from safeline.
根据您的指引,我修改了参数后重启容器,目前显示容器是健康状态的,WAF管理后台也能正常访问,但所有的代理设置均不生效,无法访问业务页面。
师傅这个地方 nginx conf 改得有问题。不是 include $host,而是 proxy_set_header $host;
from safeline.
我理解可以尝试:
- 先把 proxy_params 文件中的 proxy_set_header Host 注释掉
- 在 IF_backend_2 中手动 proxy_set_header Host donn.com.cn;
- reload nginx
docker exec safeline-tengine nginx -t
docker exec safeline-tengine nginx -s reload
然后看看访问 https://:5001 是否可以请求到业务。
也确认下:我看上游服务器配置的是 192.168.11.11:5001
,WAF IP 不是 192.168.11.11
吧?换句话说,WAF 和业务服务器不在同一台机器上吧?。如果在统一台机器上的话,端口会冲突。
from safeline.
Related Issues (20)
- [Bug] 新版本一键安装后,访问9443直接就进入面板了,退出登录无反应
- [建议] 增加负载转发 HOT 2
- [建议] 是否可以推荐对arm64/arm的支持 HOT 1
- [建议] 关闭健康检查日志 HOT 2
- [建议] 建议增加每日邮件功能 HOT 1
- [建议] 希望加入访问日志查询功能 HOT 1
- [建议] 手机端totp不能输入 HOT 1
- [建议] 希望增加访问日志查询功能 HOT 2
- [建议] 防护网站可以添加多个上游服务器地址 HOT 2
- [建议] 自動申請let's encrypt HOT 1
- 雷池waf怎么设置只能127.0.0.1本地访问,不监听0.0.0.0呀? HOT 2
- [建议] 在界面中無法查看訪問日誌 HOT 2
- [建议] 站点多端口交互优化建议 HOT 2
- [建议] 强制 HTTPS 功能建议基于站点开启 HOT 4
- [Bug] 不知道是不是因为我机器内存太少的问题 HOT 1
- [建议] 关于攻击日志传递及本地日志分端口存放 HOT 2
- [建议] 加一个境外地区拦截开关 HOT 1
- [建议] 高频攻击封禁优化现有机制和选项
- 能否增加一个全量流量的日志记录,默认不开启,用户自己选择是否开启[建议] HOT 1
- 建议添加能查看当天的访问ip,和访问地址 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from safeline.