Can't connect to any servers with any FTP client.
Hello.
I can't connect to any FTP server regardless of which client I am using on my Slackware box. If I go to another computer it works just fine. Code:
ftp> open ftp.start.no I am getting an IP from the router with Code:
dhcpcd -s 192.168.0.10 eth3 I can do pretty much anything except connect to FTP servers with the machine which has the issue. Is it possible that my Tilgin Vood 452w_B is the culprit? Glancing over the settings I can't see anything which should create such a block, as this machine is outside the DHCP pool (192.168.0.50-100) it could block "specific" traffic without letting me know about it. I dunno. I've been going over and over my configs and this is about to drive me insane. /etc/HOSTNAME Code:
crapola.lan Code:
nameserver 192.168.0.1 Code:
127.0.0.1 crapola.lan crapola |
It sounds like you're blocking the ftp port (port 21) outbound from your machine. The built in firewall for most Linux distros is iptables. You might try to stop iptables and test ftp. If it works then you'd need to restart iptables and add a rule to allow outbound port 21.
Most systems don't block outbound traffic - just inbound but its not impossible someone did block it outbound for some reason. |
I'm running Slackware 12.2 and the firewall was the first thing to go when I noticed that I couldn't connect to FTP servers from this machine. :)
|
So, it's either DNS or firewall trouble. Try ping ftp.start.no - if it succeeds then your DNS is working. Then, try telnet'ing to FTP port with telnet ftp.start.no 21 - if it timeouts as well or shows "connection refused" then there is a firewall somewhere on the path. It may be your router but also it might be set up by your ISP for some reason.
|
Yep, I can ping it, but telnet is denied. I think I'll have to poke about in the Tilgin settings some more. Last time I had similar issues, I didn't at all get net when I asked specifically for the 192.168.0.10 IP via dhcpcd, but when I asked for a dynamic IP; full access to the interwebs was granted.
|
As mentioned, EVERYTHING but ftp is working. I'm currently using the troubled box to write these replies. Makes no frigging sense.
|
Quote:
You can test the port by typing "telnet <ftphost> 21". That won't establish an ftp connection but will open port 21 if it isn't being blocked. Post the command and results here. By the way it worked for me: Code:
telnet ftp.start.no 21 Connected to ftp.start.no (195.159.73.78). Escape character is '^]'. 220 (vsFTPd 2.0.5) If it doesn't work for you try running "dig ftp.start.no" (or nslookup ftp.start.no if you don't have dig) and posting results. |
Let's recap - dns is OK, http is OK, ftp is not.
what's your ftp program? when I type ls /usr/bin/*ftp I get a few. And let's have the _exact_ error message you see in a terminal ncftp is nice but it does mess up the odd anonymous login. nacftp or lftp work on ftp.heanet.ie BTW this can be the server. There is a very conservayive MAXALLOWEDCLIENTS setting.Some servers only allow 5 and if you're number 6, you get the middle digit. Try off peak. |
dig ftp.start.no
Code:
; <<>> DiG 9.4.3-P1 <<>> ftp.start.no Code:
Server: 192.168.0.1 Code:
/usr/bin/gftp /usr/bin/ncftp /usr/bin/rftp /usr/bin/tftp Thanks for all suggestions so far and keep em coming. :) |
Your dig output shows you're resolving the same IP as I am here,
I don't see where you tried the telnet to port 21. Can you do that and post output? |
Quote:
Code:
telnet ftp.start.no 21 |
Well we know the port on that IP works since I could get to it from here.
That means either something in your route to host is blocking port 21 (since you can ping and do other things) or they are specifically blocking your IP (or the range it is isn) for some reason. What part of the world are you doing this in? Many people routinely block all IPs from various countries (e.g. China, North Korea, Russia) if they don't have reason to go there all the time. I see they are in Norway. |
I can connect from other machines using the same software through the very same local network. It isn't just this specific server, it's all servers. Only thing that differ is the way I get an IP from the DHCP server on my local network. *shrugs*
|
Yep, didn't bother checking wether or not this was the very same issue I had earlier. Just seemed obvious somehow.
Anyways. I told the dhcp server to give me an IP within the pool specified.. Code:
> dhcpcd -s 192.168.0.65 eth3 Code:
> dhcpcd -s 192.168.0.10 eth3 |
<deleted>
no matter it seems you tried what I was suggesting :) |
All times are GMT -5. The time now is 06:59 PM. |