+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Junior 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.

  2. #2
    Anime Otaku RobRich's Avatar
    Join Date
    Oct 2001
    Location
    Tampa, FL USA
    Posts
    115,836
    Blog Entries
    66
    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 Richmond
    Robert Richmond | Infinite perceptions. One reality.
    TechIMO.com Editor-in-Chief

  3. #3
    Junior 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.

  4. #4
    Anime Otaku RobRich's Avatar
    Join Date
    Oct 2001
    Location
    Tampa, FL USA
    Posts
    115,836
    Blog Entries
    66
    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 number
    Robert Richmond | Infinite perceptions. One reality.
    TechIMO.com Editor-in-Chief

  5. #5
    Junior 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.

  6. #6
    Junior 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)

Tags for this Thread

Posting Permissions

  • You may post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Recommended Sites: ResellerRatings Store Reviews