<?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: Help on iptable! ftp and OmniBack can't work! in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/help-on-iptable-ftp-and-omniback-can-t-work/m-p/2950375#M89178</link>
    <description>The way you write the filter depends on whether you will be an FTP server or a client.  (The client originates the FTP session.)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;To Serve as an FTP server you have to accept INPUT packets to destination port 21.  You Then have to reply using an OUTPUT to source port 21.  Now that you have the control connection up you have to establish a second connection with an OUTPUT source port 20 which will reply with an INPUT to source port 20.&lt;BR /&gt;&lt;BR /&gt;If you want to be an ftp client then it's backwards.  You have to pass an OUTPUT packet with destination 21 and receive an INPUT packet with source port 21.  When the data connection starts you will need to pass an INPUT packet with source port 20 and accept a reply with an OUTPUT packet of destination port 20.&lt;BR /&gt;&lt;BR /&gt;#FTP SERVER:&lt;BR /&gt;&lt;BR /&gt;iptables -A INPUT -p tcp -j ACCEPT -d $eth0IP -s $msdbeth0IP --dport 21&lt;BR /&gt;iptables -A OUTPUT -p tcp -j ACCEPT -s $eth0IP -d $msdbeth0IP --sport 21&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;iptables -A INPUT -p tcp -j ACCEPT -d $eth0IP -s $msdbeth0IP --dport 20&lt;BR /&gt;iptables -A OUTPUT -p tcp -j ACCEPT -s $eth0IP -d $msdbeth0IP --sport 20&lt;BR /&gt;&lt;BR /&gt;This is what you already have.&lt;BR /&gt;&lt;BR /&gt;If you want to FTP from the LINUX box to another FTP Server then you need:&lt;BR /&gt;&lt;BR /&gt;#FTP Client:&lt;BR /&gt;&lt;BR /&gt;iptables -A OUTPUT -p tcp -j ACCEPT -s $eth0IP -d $msdbeth0IP --dport 21&lt;BR /&gt;iptables -A INPUT -p tcp -j ACCEPT -d $eth0IP -s $msdbeth0IP --sport 21&lt;BR /&gt;&lt;BR /&gt;iptables -A INPUT -p tcp -j ACCEPT -d $eth0IP -s $msdbeth0IP --sport 20&lt;BR /&gt;iptables -A OUTPUT -p tcp -j ACCEPT -s $eth0IP -d $msdbeth0IP --dport 20&lt;BR /&gt;&lt;BR /&gt;Ron&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 15 Apr 2003 20:13:59 GMT</pubDate>
    <dc:creator>Ron Kinner</dc:creator>
    <dc:date>2003-04-15T20:13:59Z</dc:date>
    <item>
      <title>Help on iptable! ftp and OmniBack can't work!</title>
      <link>https://community.hpe.com/t5/operating-system-linux/help-on-iptable-ftp-and-omniback-can-t-work/m-p/2950371#M89174</link>
      <description>Attached is iptables rules, ftp will time out and OmniBack got inet error from Cell Manager sitting on 10.151.1.11.  But if I take out the last two "REJECT" lines then they can work, any iptables expert can advise me on how to set up iptable?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance,&lt;BR /&gt;</description>
      <pubDate>Mon, 14 Apr 2003 08:32:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/help-on-iptable-ftp-and-omniback-can-t-work/m-p/2950371#M89174</guid>
      <dc:creator>zhaogui</dc:creator>
      <dc:date>2003-04-14T08:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: Help on iptable! ftp and OmniBack can't work!</title>
      <link>https://community.hpe.com/t5/operating-system-linux/help-on-iptable-ftp-and-omniback-can-t-work/m-p/2950372#M89175</link>
      <description>Active FTP uses a control connection from the client to the server (which you've enabled in your firewall - tcp/21), and a data connection, on a non-privileged port mostly, from the server back to the client.&lt;BR /&gt;&lt;BR /&gt;I've quickly scanned your firewall, and it seems you're even blocking all non-privileged traffic?&lt;BR /&gt;Try allowing tcp traffic on ports &amp;gt; 1023, or use passive FTP, which doesn't need a callback connection.&lt;BR /&gt;&lt;BR /&gt;I don't know OmniBack, so can't help you with that.&lt;BR /&gt;&lt;BR /&gt;Good luck :)&lt;BR /&gt;&lt;BR /&gt;Erik.</description>
      <pubDate>Mon, 14 Apr 2003 21:16:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/help-on-iptable-ftp-and-omniback-can-t-work/m-p/2950372#M89175</guid>
      <dc:creator>Erik_14</dc:creator>
      <dc:date>2003-04-14T21:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: Help on iptable! ftp and OmniBack can't work!</title>
      <link>https://community.hpe.com/t5/operating-system-linux/help-on-iptable-ftp-and-omniback-can-t-work/m-p/2950373#M89176</link>
      <description>You need to set the range of ports that dataprotector is allowed to use, in the omnirc file I believe. If this is not specifies, dataprotector use any available high port.&lt;BR /&gt;&lt;BR /&gt;Rgds Jarle</description>
      <pubDate>Tue, 15 Apr 2003 05:51:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/help-on-iptable-ftp-and-omniback-can-t-work/m-p/2950373#M89176</guid>
      <dc:creator>Jarle Bjorgeengen</dc:creator>
      <dc:date>2003-04-15T05:51:48Z</dc:date>
    </item>
    <item>
      <title>Re: Help on iptable! ftp and OmniBack can't work!</title>
      <link>https://community.hpe.com/t5/operating-system-linux/help-on-iptable-ftp-and-omniback-can-t-work/m-p/2950374#M89177</link>
      <description>I think your cell manager is not getting response packets from the client (the inet error your mentioned) because packets to $msmeterp are being sent back to a port other than 5555.  Try adding the following line:&lt;BR /&gt;&lt;BR /&gt;iptables -A OUTPUT -p tcp -j ACCEPT -d $msmeterp -s $eth0IP --sport 5555&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Anything sent from client port 5555 to the cell manager will be allowed.&lt;BR /&gt;&lt;BR /&gt;I'm guessing from your iptables config that you have already configured /opt/omni/.omnirc with the following option:&lt;BR /&gt;&lt;BR /&gt;OB2PORTRANGE=50000-50050&lt;BR /&gt;&lt;BR /&gt;Hope that helps.</description>
      <pubDate>Tue, 15 Apr 2003 15:28:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/help-on-iptable-ftp-and-omniback-can-t-work/m-p/2950374#M89177</guid>
      <dc:creator>Bill Douglass</dc:creator>
      <dc:date>2003-04-15T15:28:37Z</dc:date>
    </item>
    <item>
      <title>Re: Help on iptable! ftp and OmniBack can't work!</title>
      <link>https://community.hpe.com/t5/operating-system-linux/help-on-iptable-ftp-and-omniback-can-t-work/m-p/2950375#M89178</link>
      <description>The way you write the filter depends on whether you will be an FTP server or a client.  (The client originates the FTP session.)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;To Serve as an FTP server you have to accept INPUT packets to destination port 21.  You Then have to reply using an OUTPUT to source port 21.  Now that you have the control connection up you have to establish a second connection with an OUTPUT source port 20 which will reply with an INPUT to source port 20.&lt;BR /&gt;&lt;BR /&gt;If you want to be an ftp client then it's backwards.  You have to pass an OUTPUT packet with destination 21 and receive an INPUT packet with source port 21.  When the data connection starts you will need to pass an INPUT packet with source port 20 and accept a reply with an OUTPUT packet of destination port 20.&lt;BR /&gt;&lt;BR /&gt;#FTP SERVER:&lt;BR /&gt;&lt;BR /&gt;iptables -A INPUT -p tcp -j ACCEPT -d $eth0IP -s $msdbeth0IP --dport 21&lt;BR /&gt;iptables -A OUTPUT -p tcp -j ACCEPT -s $eth0IP -d $msdbeth0IP --sport 21&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;iptables -A INPUT -p tcp -j ACCEPT -d $eth0IP -s $msdbeth0IP --dport 20&lt;BR /&gt;iptables -A OUTPUT -p tcp -j ACCEPT -s $eth0IP -d $msdbeth0IP --sport 20&lt;BR /&gt;&lt;BR /&gt;This is what you already have.&lt;BR /&gt;&lt;BR /&gt;If you want to FTP from the LINUX box to another FTP Server then you need:&lt;BR /&gt;&lt;BR /&gt;#FTP Client:&lt;BR /&gt;&lt;BR /&gt;iptables -A OUTPUT -p tcp -j ACCEPT -s $eth0IP -d $msdbeth0IP --dport 21&lt;BR /&gt;iptables -A INPUT -p tcp -j ACCEPT -d $eth0IP -s $msdbeth0IP --sport 21&lt;BR /&gt;&lt;BR /&gt;iptables -A INPUT -p tcp -j ACCEPT -d $eth0IP -s $msdbeth0IP --sport 20&lt;BR /&gt;iptables -A OUTPUT -p tcp -j ACCEPT -s $eth0IP -d $msdbeth0IP --dport 20&lt;BR /&gt;&lt;BR /&gt;Ron&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 15 Apr 2003 20:13:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/help-on-iptable-ftp-and-omniback-can-t-work/m-p/2950375#M89178</guid>
      <dc:creator>Ron Kinner</dc:creator>
      <dc:date>2003-04-15T20:13:59Z</dc:date>
    </item>
    <item>
      <title>Re: Help on iptable! ftp and OmniBack can't work!</title>
      <link>https://community.hpe.com/t5/operating-system-linux/help-on-iptable-ftp-and-omniback-can-t-work/m-p/2950376#M89179</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;It seems that you have not loaded the connection tracking modules.&lt;BR /&gt;&lt;BR /&gt;#modprobe ip_conntrack&lt;BR /&gt;#modprobe ip_conntrack_ftp&lt;BR /&gt;&lt;BR /&gt;Hope your problem is solved&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;&lt;BR /&gt;U.SivaKumar&lt;BR /&gt;   &lt;BR /&gt;</description>
      <pubDate>Wed, 16 Apr 2003 04:13:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/help-on-iptable-ftp-and-omniback-can-t-work/m-p/2950376#M89179</guid>
      <dc:creator>U.SivaKumar_2</dc:creator>
      <dc:date>2003-04-16T04:13:57Z</dc:date>
    </item>
    <item>
      <title>Re: Help on iptable! ftp and OmniBack can't work!</title>
      <link>https://community.hpe.com/t5/operating-system-linux/help-on-iptable-ftp-and-omniback-can-t-work/m-p/2950377#M89180</link>
      <description>Sorry for late reply due to some urgent things.&lt;BR /&gt;&lt;BR /&gt;Attached is my current iptables rules,&lt;BR /&gt;&lt;BR /&gt;Well, for OmniBack, I have adopted Bill Douglass's suggestion and it is making progress in the sense that I can telnet cellmgr 5555 from Linux and vise visa, but Omniback came back with a new error as below, here msmarketp2 is Linux, msmeterp is cell manager:&lt;BR /&gt;"[Critical] From: BDA-NET@msmarketp2 "/opt"  Time: 04/17/03 02:11:22&lt;BR /&gt;        Cannot connect to Media Agent on system msmeterp, port 50007 (IPC Cannot Connect&lt;BR /&gt;        System error: [110] Connection timed out&lt;BR /&gt;) =&amp;gt; aborting.&lt;BR /&gt;&lt;BR /&gt;[Critical] From: VBDA@msmarketp2 "/opt"  Time: 04/17/03 02:11:22&lt;BR /&gt;        Unexpected close reading NET message =&amp;gt; aborting. Why?&lt;BR /&gt;&lt;BR /&gt;Another strange thing is, .omnirc on this Linux, the OmniBack client did have defined OB2PORTRANGE=50000-50050, but it seems it is not working as I can see from running telnet msmeterp 5555 by running lsof -p 'telnet pid', I got the following,&lt;BR /&gt;telnet  30332 root    3u  IPv4 287282            TCP msmarketp2:32925-&amp;gt;msmeterp:omni (SYN_SENT)&lt;BR /&gt;So in my attachment I changed it to 30000:50050.&lt;BR /&gt;&lt;BR /&gt;For ftp, since I am using Linux as ftp client, then I adopted Ron Kinner's comments&lt;BR /&gt; and I managed to run ftp msmeterp but strangely I went into passive mode when I issue "DIR" or "ls" in "ftp&amp;gt;",&lt;BR /&gt;&lt;BR /&gt;Can Ron tell me how to use active mode?&lt;BR /&gt;&lt;BR /&gt;Thanks a lot,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 17 Apr 2003 01:50:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/help-on-iptable-ftp-and-omniback-can-t-work/m-p/2950377#M89180</guid>
      <dc:creator>zhaogui</dc:creator>
      <dc:date>2003-04-17T01:50:42Z</dc:date>
    </item>
    <item>
      <title>Re: Help on iptable! ftp and OmniBack can't work!</title>
      <link>https://community.hpe.com/t5/operating-system-linux/help-on-iptable-ftp-and-omniback-can-t-work/m-p/2950378#M89181</link>
      <description>Passive mode is determined by the client so you need to look in the ftp options for the client.  Since I don't know what version of LINUX or what ftp client you are using that's about all I can tell you.&lt;BR /&gt;&lt;BR /&gt;Ron&lt;BR /&gt;</description>
      <pubDate>Thu, 17 Apr 2003 12:54:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/help-on-iptable-ftp-and-omniback-can-t-work/m-p/2950378#M89181</guid>
      <dc:creator>Ron Kinner</dc:creator>
      <dc:date>2003-04-17T12:54:31Z</dc:date>
    </item>
  </channel>
</rss>

