RTSP IP tables

by on under networking
1 minute read

RTSP forwarding

Enable IP forward in Linux.

echo 1 > /proc/sys/net/ipv4/ip_forward

Allow traffic to be NAT to dest device.

We specify the port the firewall is listening on with --dport

Then we specify the device behind the firewall and what port it’s listening on with --to-detination

iptables -t nat -A PREROUTING -p tcp --dport 80 -j DNAT --to-destination

Use MPV to try connect through firewall. Generally RTSP is TCP.

We use the firewalls IP here.

mpv rtsp://admin:password@

firewall, security, ip-tables, Linux, networking
comments powered by Disqus