-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
docker SRS Security deny/allow IP not work #3890
Comments
I need to clearify that it works on RTMP but not work for HLS. |
I have reviewed the code, and currently only the RTMP protocol supports security and refer. Other protocols have not yet been implemented. I will make time to add this functionality. |
Security is very effective in simpler IP whitelist scenarios. Please ensure that other protocols are also implemented, not just RTMP and HLS.
|
Firstly, it must be clarified that there is a conflict in your configuration.
Within this context, the 'deny' directive will override the preceding 'allow'. This means that with such a configuration, all publish attempts will be blocked. Based on your description, if you want to fulfill the requirement of allowing only the local network to publish, you simply need to remove the line
|
Describe the bug
I need to set up my system so that only the localhost IP can publish and play SRS. However, it appears that I can't use "allow IP" and "allow all" simultaneously.
"deny IP" and "deny all" can't be used at the same time, either.
My conf is:
`vhost defaultVhost {
}
`
Version
Docker ossrs/srs:latest
Expected behavior
The config will allow all IP to play and deny all IP to publish.
TRANS_BY_GPT4
The text was updated successfully, but these errors were encountered: