Re: Active mode FTP over PPP
- From: logger <grumblers@xxxxxxxxxxxxxx>
- Date: 10 May 2007 03:39:42 -0700
On May 9, 1:38 am, ibupro...@xxxxxxxxxxxxxxxxxxxxxx (Moe Trin) wrote:
On 8 May 2007, in the Usenet newsgroup alt.os.linux, in article
<1178622531.597442.94...@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> amf in the
Usenet newsgroup comp.protocols.ppp, in article
<1178623012.877758.16...@xxxxxxxxxxxxxxxxxxxxxxxxxxx>. logger wrote:
[Please don't post the same article to multiple newsgroups. If you
must, set the newsgroup header to a comma separated list, and set
a 'Followup-To:' header as I have done here.]
I wonder if somebody could shed some light on a problem I'm having
with "Active mode" FTP over a serial PPP link.
Doesn't sound like a ppp problem - routing or firewall perhaps. You
need to use a packet sniffer and look at the exchanges when the active
mode transfer is being set up.
I have three servers, which I'll call A (as mentioned above), B & C.
All have an ethernet interface each and are on the same subnet. Server
"A" has a number of modems installed all of which work just fine and
can handle local (i.e just to itself and not involving "B" or "C")
active and passive modes of FTP over the PPP link that get established
from the calling Linux or Windows clients.
This _implies_ that ppp and routing is set OK. What addresses are you
using on the Ethernet, and on the client? Same subnet? Are you using
'proxy-arp on the dialin server?
The problem:
Arises when "client" dials the PPP link to machine "A" it can't do an
"active mode" FTP to machines "B" or "C" it just bombs with errors
listed in the output below . I can do an "active mode" Ftp from
"client" to machine "A" without any problem.
Set up your favorite packet sniffer on the dialin server, and run a
packet capture of a FTP to server A (on the ppp0 side, which you say
works). Then repeat the process using sever B or C. What is different
about the active mode setup? You may need to monitor the eth0 side
of the dialin server if the ppp0 side doesn't show everything. Please
don't post the packet dumps - what you are looking for is a difference
in how the second (data) channel is being set up. Something is blocking
that - and normally that would be a packet filter, or incorrectly
configured NAT (masquerade) server.
It smells like a problem with PPP but why would PPP be causing this
problem - why should it care about active or passive
What makes you think ppp is the cause? The difference between passive
and active FTP is that in passive mode, all data and control information
use a single port pair - ephemeral (above 1025) on the client, to/from
21 on the server. In active mode, two port pairs are used, ephemeral
(above 1025) on the client, to/from 21 on the server for the control,
and a different ephemeral on the client, to/from 20 on the server for
the data. It sounds as if something is not allowing the second pair
to establish a connection. Why? Like I say, that's normally a firewall
or NAT (Network Address Translation - call it IP-Masquerade) problem.
Old guy
Hi Guys, thanks for your replies. Apologies for the multi-posting, new
to newsgroups and not too sure of the etiquette.
In response to your questions.
Moe Trin wrote ......
This _implies_ that ppp and routing is set OK. What addresses are you
using on the Ethernet, and on the client? Same subnet? Are you using
'proxy-arp on the dialin server?
The PPP client is assigned an address in the 192.168.150.* range as
defined in /etc/ppp/options.ttyG0.0x.
Proxyarp is set in /etc/ppp/options.server
Servers A, B & C reside in 192.168.100 subnet via their ethernet
cards.
Server A = 192.168.100.26
Server B = 192.168.100.31
Server C = 192.168.100.73
Moe Trin wrote ......
What makes you think ppp is the cause?
Just a guess, as all works perfectly until PPP is introduced into the
mix. Both Active and Passive mode Ftp's work just fine over the
ethernet interfaces between A,B & C. My problems begin with attempting
the active mode Ftp from client via Server A to B or C. However given
a little more thought the likely cause would appear to be some kind of
forwarding/masquerading issue.
I've just installed Ethereal and will attempt to capture something of
use.
chris
.
- Follow-Ups:
- Re: Active mode FTP over PPP
- From: Moe Trin
- Re: Active mode FTP over PPP
- From: Sybren Stuvel
- Re: Active mode FTP over PPP
- Prev by Date: Re: Distro Poll, what do you use?
- Next by Date: Re: Active mode FTP over PPP
- Previous by thread: Re: Active mode FTP over PPP
- Next by thread: Re: Active mode FTP over PPP
- Index(es):
Relevant Pages
|
Loading