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

https请求被waf全部拦截触发规则 #27

Open
icedrugs1989 opened this issue Aug 28, 2019 · 8 comments
Open

https请求被waf全部拦截触发规则 #27

icedrugs1989 opened this issue Aug 28, 2019 · 8 comments

Comments

@icedrugs1989
Copy link

1、http的请求访问都正常,waf拦截ok
2、线上在使用https,升级到openwaf后,https的请求全部被拦截,加入ssl_certificate_by_lua_file配置后,报ERR_SSL_PROTOCOL_ERROR500错误
3、/usr/local/src/OpenWAF/conf/twaf_access_rule.json配置如下
image

@miracleqi
Copy link
Collaborator

未使用https 时,是不是未使用 access_rule 模块?

@miracleqi
Copy link
Collaborator

试试修改,nginx配置文件,将listen 443; 改为 listen 443 default ssl;

@icedrugs1989
Copy link
Author

嗯,我先试试,http的那种没有问题,都是正常的,不会乱拦截请求

@icedrugs1989
Copy link
Author

image
不起作用,还是ERR_SSL_PROTOCOL_ERROR这个错误,如果不加ssl_certificate_by_lua_file这一项,就会全部被拦截都是触发规则的请求

@icedrugs1989
Copy link
Author

这个是被拦截的错误
image

@miracleqi
Copy link
Collaborator

有拦截,说明ssl通过了,试着将forward,forward_addr这些配置补全就好了

@icedrugs1989
Copy link
Author

forward,forward_addr 这个需要怎么配置,我们每个location转向的都不一样

@icedrugs1989
Copy link
Author

image
这样配置后,ssl的好像是可以拦截了,但是http的不生效了,完全不起作用,没有拦截

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

No branches or pull requests

2 participants