<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: iptables nat stream video in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/iptables-nat-stream-video/m-p/3464377#M15938</link>
    <description>Hi sep,&lt;BR /&gt;&lt;BR /&gt;On the firewall, just under the nat rules i put a line that logs everything coming from internet.&lt;BR /&gt;&lt;BR /&gt;ther's something strange:&lt;BR /&gt;&lt;BR /&gt;the url I request is http://xxxxxxxx/xxx.mp4&lt;BR /&gt;&lt;BR /&gt;If i send this request with my browser, it doesn't work, and i don't see any log line in firewall /var/log/messages&lt;BR /&gt;&lt;BR /&gt;if I open my quicktime client and I send the same request with it, but with rtsp protocol (rtsp://xxxxxxxx/xxx.mp4)&lt;BR /&gt;it works, and i see the log lines on the firewall!!&lt;BR /&gt;&lt;BR /&gt;Suggestions?&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Mon, 17 Jan 2005 10:31:03 GMT</pubDate>
    <dc:creator>Marco_113</dc:creator>
    <dc:date>2005-01-17T10:31:03Z</dc:date>
    <item>
      <title>iptables nat stream video</title>
      <link>https://community.hpe.com/t5/operating-system-linux/iptables-nat-stream-video/m-p/3464375#M15936</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;i've aproblem with iptables NAT.&lt;BR /&gt;&lt;BR /&gt;I have an internal server with some file video mp4. I want to see from internet those stream video.&lt;BR /&gt;&lt;BR /&gt;the rules i've applied&lt;BR /&gt;iptables -A PREROUTING -t nat -p tcp -d ${OUTSIDE_IP} --dport 554&lt;BR /&gt;    -j DNAT --to ${SERVER_IP1}:554&lt;BR /&gt;iptables -A FORWARD -p tcp -d ${SERVER_IP1} --dport 554 -o&lt;BR /&gt;    ${INSIDE_DEVICE} -j ACCEPT&lt;BR /&gt;iptables -A PREROUTING -t nat -p tcp -d ${OUTSIDE_IP} --dport 7070&lt;BR /&gt;    -j DNAT --to ${SERVER_IP1}:7070&lt;BR /&gt;iptables -A FORWARD -p tcp -d ${SERVER_IP1} --dport 7070 -o&lt;BR /&gt;    ${INSIDE_DEVICE} -j ACCEPT&lt;BR /&gt;iptables -A PREROUTING -t nat -p tcp -d ${OUTSIDE_IP} --dport 6970:6999&lt;BR /&gt;    -j DNAT --to ${SERVER_IP1}:6970-6999&lt;BR /&gt;iptables -A FORWARD -p tcp -d ${SERVER_IP1} --dport 6970:6999 -o&lt;BR /&gt;    ${INSIDE_DEVICE} -j ACCEPT&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;And the same for udp protocol, but it does not work.&lt;BR /&gt;I don't see any drop in the log and my quick time client says error 10060.&lt;BR /&gt;&lt;BR /&gt;My network has 4 lans, so if i try to get stream video from another lan (not the same of the server one) i can see the video.&lt;BR /&gt;&lt;BR /&gt;From internet it does not work.&lt;BR /&gt;Any suggestion?&lt;BR /&gt;Thanks&lt;BR /&gt;</description>
      <pubDate>Mon, 17 Jan 2005 05:56:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/iptables-nat-stream-video/m-p/3464375#M15936</guid>
      <dc:creator>Marco_113</dc:creator>
      <dc:date>2005-01-17T05:56:27Z</dc:date>
    </item>
    <item>
      <title>Re: iptables nat stream video</title>
      <link>https://community.hpe.com/t5/operating-system-linux/iptables-nat-stream-video/m-p/3464376#M15937</link>
      <description>I doubt its a problem with iptables nat, its probably a configuration probelm. You may have certain ip addresses or ports blocked elsewhere in your iptabels file. &lt;BR /&gt;&lt;BR /&gt;I know you are trying to protect your internal ip configuration, but it would be easier to help if you attached your /etc/sysconfig/iptables configuration file.&lt;BR /&gt;&lt;BR /&gt;One thing that jumps out at me is this:&lt;BR /&gt;&lt;BR /&gt;iptables -A PREROUTING -t nat -p tcp -d ${OUTSIDE_IP} --dport 6970:6999&lt;BR /&gt;-j DNAT --to ${SERVER_IP1}:6970-6999&lt;BR /&gt;&lt;BR /&gt;this 6970-6999 methodology. I'm not saying its wrong, I'm just saying I experimented with this for a while and never got it working to my satisfaction.&lt;BR /&gt;&lt;BR /&gt;If you don't have a set configuration file than iptables -L output after the configuration is applied would be helpful.&lt;BR /&gt;&lt;BR /&gt;After each line of code, you might want this little diagnostic:&lt;BR /&gt;&lt;BR /&gt;iptables -A PREROUTING -t nat -p tcp -d ${OUTSIDE_IP} --dport 6970:6999&lt;BR /&gt;-j DNAT --to ${SERVER_IP1}:6970-6999&lt;BR /&gt;rc=$?&lt;BR /&gt;&lt;BR /&gt;echo "return code: $rc"&lt;BR /&gt;&lt;BR /&gt;If you get a non-zero return code you know you have a problematic line of code.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Mon, 17 Jan 2005 08:40:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/iptables-nat-stream-video/m-p/3464376#M15937</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2005-01-17T08:40:14Z</dc:date>
    </item>
    <item>
      <title>Re: iptables nat stream video</title>
      <link>https://community.hpe.com/t5/operating-system-linux/iptables-nat-stream-video/m-p/3464377#M15938</link>
      <description>Hi sep,&lt;BR /&gt;&lt;BR /&gt;On the firewall, just under the nat rules i put a line that logs everything coming from internet.&lt;BR /&gt;&lt;BR /&gt;ther's something strange:&lt;BR /&gt;&lt;BR /&gt;the url I request is http://xxxxxxxx/xxx.mp4&lt;BR /&gt;&lt;BR /&gt;If i send this request with my browser, it doesn't work, and i don't see any log line in firewall /var/log/messages&lt;BR /&gt;&lt;BR /&gt;if I open my quicktime client and I send the same request with it, but with rtsp protocol (rtsp://xxxxxxxx/xxx.mp4)&lt;BR /&gt;it works, and i see the log lines on the firewall!!&lt;BR /&gt;&lt;BR /&gt;Suggestions?&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 17 Jan 2005 10:31:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/iptables-nat-stream-video/m-p/3464377#M15938</guid>
      <dc:creator>Marco_113</dc:creator>
      <dc:date>2005-01-17T10:31:03Z</dc:date>
    </item>
    <item>
      <title>Re: iptables nat stream video</title>
      <link>https://community.hpe.com/t5/operating-system-linux/iptables-nat-stream-video/m-p/3464378#M15939</link>
      <description>hello,&lt;BR /&gt;&lt;BR /&gt;You have to install NetFilter Patch-o-Matic "Extras" for iptables; this adds CONFIG_IP_NF_RTSP module for RTSP protocol.&lt;BR /&gt;&lt;BR /&gt;check out the following link:&lt;BR /&gt;&lt;A href="http://www.netfilter.org/patch-o-matic/pom-extra.html#pom-extra-rtsp-conntrack" target="_blank"&gt;http://www.netfilter.org/patch-o-matic/pom-extra.html#pom-extra-rtsp-conntrack&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Sergejs</description>
      <pubDate>Mon, 17 Jan 2005 11:15:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/iptables-nat-stream-video/m-p/3464378#M15939</guid>
      <dc:creator>Sergejs Svitnevs</dc:creator>
      <dc:date>2005-01-17T11:15:02Z</dc:date>
    </item>
  </channel>
</rss>

