Hello,<br><br> This is realted to VLC streaming, but has more to do with routing. I am hoping that someone may have faced this problem before.<br><br> I have 3 devices, A which streams data over UDP, B which is a linux router, and C which is set to receive those packets. The problem is that A and B are connected using a private network, and B and C are connected over another network. Therefore B will need to do IP masquerading or SNAT in order for A to receive the packets. I am using the below configuration with iptables
<br><br>echo "1" > /proc/sys/net/ipv4/ip_forward<br>iptables -P INPUT ACCEPT<br>iptables -F INPUT<br>iptables -P OUTPUT ACCEPT<br>iptables -F OUTPUT<br>iptables -P FORWARD DROP<br>iptables -F FORWARD<br>iptables -t nat -F
<br><br>iptables -A FORWARD -i eth1 -s <a href="http://10.0.0.0/8">10.0.0.0/8</a> -o eth0 -j ACCEPT<br>iptables -t nat -A POSTROUTING -o eth0 -j SNAT --to <a href="http://192.168.1.10">192.168.1.10</a><br><br><a href="http://192.168.1.10">
192.168.1.10</a> is the IP of B, and C is in the same subnet and can successfully ping B. A and B communicate over the private network in the <a href="http://10.0.0.0/8">10.0.0.0/8</a> network, and can ping each other too. However, using this setup doesn't work, and B doesn't forward packets from eth1 to eth0. I can verify that packets from A are reaching B, but not going forward.
<br><br>iptables gives the following output<br><br>Chain INPUT (policy ACCEPT 41M packets, 48G bytes)<br> pkts bytes target prot opt in out source destination<br><br>Chain FORWARD (policy DROP 0 packets, 0 bytes)
<br> pkts bytes target prot opt in out source destination<br> 0 0 ACCEPT all -- eth1 eth3 <a href="http://10.0.0.0/8">10.0.0.0/8</a> anywhere<br><br>Chain OUTPUT (policy ACCEPT 4537K packets, 369M bytes)
<br> pkts bytes target prot opt in out source destination<br><br>Can anyone point out where I am going wrong ?<br>-- <br>Gokul