-
January 29th, 2004, 01:29 PM #1Junior Member
- Join Date
- Jan 2004
- Posts
- 5
Changing the default port 21 for vsftpd?
Hi readers....
I have a problem with my internet provider. They block all ports
<1024 with exception of port 25 for smtp.
My provider advised me to use a different port for FTP but I have
no idea how to change it.
/etc/vsftpd/vsftpd.conf does not provide any entry except for:
connect_from_port_20=YES
but this does not specify which port to use instead.
Then I tried changing the /etc/services file to redefine the ports
for ftp from 20 to 8020 and from 21 to 8021
Changed
connect_from_port_20=NO
But to no avail, still connecting on port 21
8021 grants no connection... Isn't even found.
Any one of you out there that have a solution?Last edited by TVScoundrel; January 29th, 2004 at 02:36 PM.
-
January 29th, 2004, 01:52 PM #2
You need to specify the ftp_data_port variable. More information is available here....
http://www.redhat.com/docs/manuals/e...-vsftpd-conf.h
Hope this helps,
Robert RichmondRobert Richmond | Infinite perceptions. One reality.
TechIMO.com Editor-in-Chief
-
January 29th, 2004, 07:43 PM #3Junior Member
- Join Date
- Jan 2004
- Posts
- 5
Wow quick response!!!
Thanks dude... But the page is expired apparently so can't find the info there either...
Searched on the redhat site though... found nothing.
But maybe it is the way I'm searching that's wrong...
anywayz... anything else I might try?Last edited by TVScoundrel; January 29th, 2004 at 07:49 PM.
-
January 29th, 2004, 09:02 PM #4
The link became truncated for some reason. Here it is, correctly formatted this time...

http://www.redhat.com/docs/manuals/e...ftpd-conf.html
---
connect_from_port_20=YES
ftp_data_port=X
---
X = the port numberRobert Richmond | Infinite perceptions. One reality.
TechIMO.com Editor-in-Chief
-
January 30th, 2004, 04:32 AM #5Junior Member
- Join Date
- Jan 2004
- Posts
- 5
Yeah,
I'm allready very happy I have registered on this forum.
Thanks RobRich!!Last edited by TVScoundrel; January 30th, 2004 at 06:12 AM.
-
January 30th, 2004, 06:08 AM #6Junior Member
- Join Date
- Jan 2004
- Posts
- 5
For everyone with the same problem....
The exact solution to this problem:
in /etc/vsftpd/vsftpd.conf
connect_from_port_20=NO
ftp_data_port=8020
listen_port=8021
And it should work... It does for me!
Cheers,
Scoundrel.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)



LinkBack URL
About LinkBacks



Reply With Quote

I need to borrow some of my nieces and nephews for a while, and teach them about taxes. ;)
Is It Just Me? v233893843