cloudsigma2022
2022-07-08 17:28:25 +08:00
# block camera ip connect internet
```
iptables -I FORWARD -s 192.168.1.26 -p udp -j REJECT
iptables -I FORWARD -s 192.168.1.26 -p tcp -j REJECT
iptables -I INPUT -s 192.168.1.26 -p udp --dport 123 -j ACCEPT
iptables -I INPUT -s 192.168.1.26 -p udp --dport 53 -j ACCEPT
```
# use ha show on local
```
camera:
- platform: ffmpeg
input: -rtsp_transport tcp -i rtsp://admin:password@192.168.1.26:554/h264/ch1/main/av_stream
name: ezviz
extra_arguments: -pred 1 -q:v 2 -s 1280x720
```