On Sat, 31 May 2008 20:57:25 -0500, Allen Kistler wrote:
> General Schvantzkopf wrote:
>> This might be a Comcast problem not a Linux problem. I've enabled a
>> vsftp server on a CentOS5 box. It works fine on my LAN but it doesn't
>> work over the Internet. I can log in to the FTP server so the port
>> forwarding on my Netgear router is working but I can only execute one
>> command after I've connected. For example if I do an ls it works the
>> first time, if I do an ls the second time it hangs.
>>
>> Does anyone have any theories about whats happening? Is Comcast
>> blocking FTP?
>
> It sounds to me like your router has problems keeping track of inbound
> ftp connections, although I wouldn't underestimate the possibility that
> something in Comcast's infrastructure is what's having problems keeping
> track of your ftp server, too. (Never attribute to malice those things
> which can be explained by incompetence.)
>
> Figuring out where the fault lies is probably going to take some
> creative diagnostics. If the transfer/command is passive, is there a
> way you can see packets between your modem and your router? (Probably
> not if your router IS your modem.) Use something like tcpdump (ideally
> on both client and server) to see how/if the data connection is
> getting/failing set up. Read your router docs again to see if you've
> forgotten something. Try active-only for the ftp server.
>
> In no particular order, those are the things I'd recommend to start an
> analysis.
I'm pretty sure it's my router. I mentioned the wrong brand in my
original post, I said it was a Netgear, that was my old router, this one
is the Dlink DIR-655 which has known problems with FTP. I tried defining
the passive ports with the vsftp parameters pasv_max_port and
pasv_min_port. The router has two ways of doing port forwarding, Virtual
Server and explicit port forwarding. With explicit forwarding I can't
connect at all. With Virtual Server I was able to connect once and do a
couple of ls commands, when I tried a second time it disconnected me and
said Passive mode refused.
I also tried the following things with the Router,
Disable SPI
set NAT ENDPOINT FILTERING endpoint independent
Nothing seems to work, it's probably time to shitcan this router. I've
always hated it anyway, it requires a reboot after you change the
settings which is Windows like behavior. My previous two routers, a
Linksys 802.11b router and a Netgear 802.11g router, could be
reconfigured without reboots. I bought this one because it had gigabit
ports on it and the rest of my network is gigabit. It's upload and
download speeds are faster than the old Netgear was but the router
functionality is much worse.
|