Closed lck1115 closed 6 months ago
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.
TRANS_BY_GPT4
Firstly, it must be clarified that there is a conflict in your configuration.
allow publish 172.17.0.0/24;
allow publish 127.0.0.0/24;
deny publish all;
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 deny publish all;
.
TRANS_BY_GPT4
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