<?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: port forwarding with iptables in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/port-forwarding-with-iptables/m-p/2813268#M2608</link>
    <description>boooo, (kinda cool moniker...) &lt;BR /&gt;&lt;BR /&gt;the log in question would be&lt;BR /&gt;&lt;BR /&gt;/var/log/messages&lt;BR /&gt;&lt;BR /&gt;unless you've set up your iptables to log elsewhere. &lt;BR /&gt;&lt;BR /&gt;It might be instructive to run a packet sniffer (like ethereal) to watch what happens on the interfaces when ftp connections are attempted.&lt;BR /&gt;&lt;BR /&gt;Best Regards, &lt;BR /&gt;Mark</description>
    <pubDate>Fri, 27 Sep 2002 23:42:15 GMT</pubDate>
    <dc:creator>Mark Fenton</dc:creator>
    <dc:date>2002-09-27T23:42:15Z</dc:date>
    <item>
      <title>port forwarding with iptables</title>
      <link>https://community.hpe.com/t5/operating-system-linux/port-forwarding-with-iptables/m-p/2813265#M2605</link>
      <description>i have setup linux box with redhat 7.2 as a router.  it has 2 nics, eth1 is the net nic and eth0 is the lan nic.&lt;BR /&gt;im running an ftp on a machine on the lan but i also want it to be available through the net.  so i just want to forward the port from the router to the internal machine.  and i havent been able to get an iptables rule(s) setup to do it. i also chose to accept connections be default and only drop those connections to specific ports that i choose, rather than close everything and only open those that i chose....&lt;BR /&gt;heres what i tried&lt;BR /&gt;&lt;BR /&gt;iptables -t nat -A PREROUTING -p tcp --dport 21 -j DNAT --to-dest 192.168.1.10:21&lt;BR /&gt;iptables -A FORWARD -p tcp -i eth1 --dport 21 -d 192.168.1.10 -j ACCEPT&lt;BR /&gt;&lt;BR /&gt;i dont think i should need the second line since i have chosen to accept all connections except those speicified, but i figured it was worth a shot anyway...&lt;BR /&gt;&lt;BR /&gt;anyone have any ideas?</description>
      <pubDate>Wed, 25 Sep 2002 14:18:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/port-forwarding-with-iptables/m-p/2813265#M2605</guid>
      <dc:creator>boooo radly</dc:creator>
      <dc:date>2002-09-25T14:18:51Z</dc:date>
    </item>
    <item>
      <title>Re: port forwarding with iptables</title>
      <link>https://community.hpe.com/t5/operating-system-linux/port-forwarding-with-iptables/m-p/2813266#M2606</link>
      <description>Hi,&lt;BR /&gt;ftp is a specific protocol, because it's storing in the datas during connection the port on each side to established data tranfer.&lt;BR /&gt;the ftp-data  (port 20) is also used !!&lt;BR /&gt;There's a passive mode which permit to avoid the port in data described bellow.&lt;BR /&gt;THe best thing is to authorize to go outside any ports gt 1024, and inside the port 20.&lt;BR /&gt;If you need ftp from both side, then you will have to open much more other ports.....&lt;BR /&gt;See your deny tcp packets from the log to see all what is needed when you try an ftp session...&lt;BR /&gt;&lt;BR /&gt;hope it will help&lt;BR /&gt;Benoit</description>
      <pubDate>Thu, 26 Sep 2002 08:53:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/port-forwarding-with-iptables/m-p/2813266#M2606</guid>
      <dc:creator>benoit Bruckert</dc:creator>
      <dc:date>2002-09-26T08:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: port forwarding with iptables</title>
      <link>https://community.hpe.com/t5/operating-system-linux/port-forwarding-with-iptables/m-p/2813267#M2607</link>
      <description>where would i find the logs for my tcp connections?  i looked and couldnt find anything....but im not exactly sure what file(s) im looking for...&lt;BR /&gt;&lt;BR /&gt;thanks for the help</description>
      <pubDate>Thu, 26 Sep 2002 16:12:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/port-forwarding-with-iptables/m-p/2813267#M2607</guid>
      <dc:creator>boooo radly</dc:creator>
      <dc:date>2002-09-26T16:12:34Z</dc:date>
    </item>
    <item>
      <title>Re: port forwarding with iptables</title>
      <link>https://community.hpe.com/t5/operating-system-linux/port-forwarding-with-iptables/m-p/2813268#M2608</link>
      <description>boooo, (kinda cool moniker...) &lt;BR /&gt;&lt;BR /&gt;the log in question would be&lt;BR /&gt;&lt;BR /&gt;/var/log/messages&lt;BR /&gt;&lt;BR /&gt;unless you've set up your iptables to log elsewhere. &lt;BR /&gt;&lt;BR /&gt;It might be instructive to run a packet sniffer (like ethereal) to watch what happens on the interfaces when ftp connections are attempted.&lt;BR /&gt;&lt;BR /&gt;Best Regards, &lt;BR /&gt;Mark</description>
      <pubDate>Fri, 27 Sep 2002 23:42:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/port-forwarding-with-iptables/m-p/2813268#M2608</guid>
      <dc:creator>Mark Fenton</dc:creator>
      <dc:date>2002-09-27T23:42:15Z</dc:date>
    </item>
  </channel>
</rss>

