Please note the new address for this forum : forum.excito.org. The old address redirects here but I don't know for how long. Thanks !
New user's registration have been closed due to high spamming and low trafic on this forum. Please contact forum admins directly if you need an account. Thanks !
FTP port (21) not accessible [SOLVED]
-
- Posts: 56
- Joined: 03 Jan 2012, 18:17
FTP port (21) not accessible [SOLVED]
Hello all,
I have a problem with port 21 (FTP). I just can't get it open. In the Firewall settings it shows as "on", but when I run a port scanner it states it is closed. Then I switch it off and try again... closed again. I turn it on again and try again... still closed. I called my ISP if by any chance they are keeping this port closed, but they told me since I have a static IP address all the ports are open.
FTP service is turned on (but anonymous access is not enabled). I don't know how else to check this or how to turn it on. I am not even sure if FTP is running properly, because I was yet unable to connect to FTP (I tried to make a connection to network location... ftp://b3.domain-name.com or ftp://b3.local).
Any suggestions on how should I go about?
I have a problem with port 21 (FTP). I just can't get it open. In the Firewall settings it shows as "on", but when I run a port scanner it states it is closed. Then I switch it off and try again... closed again. I turn it on again and try again... still closed. I called my ISP if by any chance they are keeping this port closed, but they told me since I have a static IP address all the ports are open.
FTP service is turned on (but anonymous access is not enabled). I don't know how else to check this or how to turn it on. I am not even sure if FTP is running properly, because I was yet unable to connect to FTP (I tried to make a connection to network location... ftp://b3.domain-name.com or ftp://b3.local).
Any suggestions on how should I go about?
Last edited by GodfatherB on 20 Jan 2012, 04:28, edited 1 time in total.
Re: FTP port (21) not accessible
Can you ssh into the B3 and state the result of the following command?
Chances are that the service is only exposing itself on IPV6
Code: Select all
netstat -an | grep ":21"
-
- Posts: 56
- Joined: 03 Jan 2012, 18:17
Re: FTP port (21) not accessible
This is the result...
I don't know how to interpret this so I will be most grateful for a crash course explanation...
Code: Select all
tcp 0 0 84.255.231.53:52747 213.107.90.241:21161 ESTABLISHED
tcp 0 0 84.255.231.53:46982 220.245.53.224:21197 ESTABLISHED
Re: FTP port (21) not accessible
I did the same but saw only
And i can connect with ftp with no problems.
Rene
Code: Select all
rene@SERVER9:~$ netstat -an | grep :21
tcp6 0 0 :::21 :::* LISTEN
Rene
Last edited by pcrene on 20 Jan 2012, 10:50, edited 1 time in total.
B3 1T + B-Stor 2T, B2 1T as backup
40 users active....
Opensat4all.Com
40 users active....
Opensat4all.Com
Re: FTP port (21) not accessible
It means ftp is not running
try
try
Code: Select all
/etc/init.d/proftpd start
cheers
Eek
Eek
-
- Posts: 56
- Joined: 03 Jan 2012, 18:17
Re: FTP port (21) not accessible
Tried this, and got the following result...
As I said... under services FTP is turned on and Firewall is set to open port 21.
Code: Select all
Starting ftp server: proftpd - warning: unable to determine IP address of 'B3'
- error: no valid servers configured
- Fatal: error processing configuration file '/etc/proftpd/proftpd.conf'
failed!
Re: FTP port (21) not accessible
Strange...
Actually what Rene is seeing would be more what I expected. The fix might be the same though and involves editing the config file /etc/proftpd/proftpd.conf. Somewhere at the top, probably lines 9 and 10 (difference might apply because of B3 software version) it sais:
Do what the comment line hints and change that setting to 'off'.
Actually what Rene is seeing would be more what I expected. The fix might be the same though and involves editing the config file /etc/proftpd/proftpd.conf. Somewhere at the top, probably lines 9 and 10 (difference might apply because of B3 software version) it sais:
Code: Select all
# Set off to disable IPv6 support which is annoying on IPv4 only boxes.
UseIPv6 on
Re: FTP port (21) not accessible
from another thread:GodfatherB wrote:As I said... under services FTP is turned on and Firewall is set to open port 21.
Code: Select all
echo "UseIPv6 off" >> /etc/proftpd/proftpd.conf
-
- Posts: 56
- Joined: 03 Jan 2012, 18:17
Re: FTP port (21) not accessible
I changed the "UseIPv6" to off but still get the same message
And I don't think IPv6 should be the problem... all of my equipment is IPv6 compliant and also my ISP is already on IPv6 as well (as far as I know).
When I run the "hostname" I get out... "B3" (which is the name of my unit).
Any other ideas, things that I could try?
Code: Select all
Starting ftp server: proftpd - warning: unable to determine IP address of 'B3'
- error: no valid servers configured
- Fatal: error processing configuration file '/etc/proftpd/proftpd.conf'
failed!
When I run the "hostname" I get out... "B3" (which is the name of my unit).
Any other ideas, things that I could try?
Re: FTP port (21) not accessible
It looks to be the same problem as:
http://forum.excito.net/viewtopic.php?f ... ftp#p16799
can you do a
http://forum.excito.net/viewtopic.php?f ... ftp#p16799
can you do a
Code: Select all
cat /etc/hosts
cheers
Eek
Eek
-
- Posts: 56
- Joined: 03 Jan 2012, 18:17
Re: FTP port (21) not accessible
Yes, there was a line missing in the /etc/hosts. I added the B3.localdomain like it said in the other post (http://forum.excito.net/viewtopic.php?f ... ftp#p16799), now it works just fine.
It's funny though, I remember going through those posts when I tried to solve the problem on my own, but apparently I skipped a few important ones. And I saw it as a port problem, not ftp server problem.
Thank you all for your help.
It's funny though, I remember going through those posts when I tried to solve the problem on my own, but apparently I skipped a few important ones. And I saw it as a port problem, not ftp server problem.

Thank you all for your help.