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 {
min_latency off;
tcp_nodelay off;
chunk_size 128;
in_ack_size 0;
out_ack_size 2500000;
publish {
mr off;
mr_latency 350;
firstpkt_timeout 20000;
normal_timeout 7000;
parse_sps on;
try_annexb_first on;
kickoff_for_idle 0;
}
play {
gop_cache off;
gop_cache_max_frames 2500;
queue_length 10;
time_jitter off;
atc off;
mix_correct off;
atc_auto off;
mw_latency 350;
mw_msgs 8;
send_min_interval 10.0;
reduce_sequence_header on;
}
hls {
# whether the hls is enabled.
# if off, do not write hls(ts and m3u8) when publish.
# Overwrite by env SRS_VHOST_HLS_ENABLED for all vhosts.
# default: off
enabled on;
}
# security for host to allow or deny clients.
# @see https://github.com/ossrs/srs/issues/211
security {
# whether enable the security for vhost.
# default: off
enabled on;
allow play 127.0.0.0/24;
allow play 172.17.0.0/24;
deny play all;
allow publish 172.17.0.0/24;
allow publish 127.0.0.0/24;
deny publish all;
}
}
`
Version
Docker ossrs/srs:latest
Expected behavior
The config will allow all IP to play and deny all IP to publish.
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