niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » *nix » Linux » Distributions » Suse
changing port in vsftp
Post new topic   Reply to topic Page 1 of 1 [3 Posts] View previous topic :: View next topic
Author Message
henk@oegema.com
*nix forums beginner


Joined: 05 Apr 2006
Posts: 42

PostPosted: Fri Jul 21, 2006 10:42 am    Post subject: changing port in vsftp Reply with quote

Since my ISP blocks all ports under 1024 (so I can't set up a ftp server in
the standard way) I made following change in /etc/vsftpd.conf:
listen_port=1025

Quesion1: In the config file is written:
#Make sure PORT transfer connections originate from port 20 (ftp-data)
connect_from_port_20=YES
Must I comment out 'connect_from_port_20=YES' to
'#connect_from_port_20=YES' ?

Question2: How do I connect now the ftp server?
Something like: ftp hostname:1025? Must I add the port number, since it is
not a standard port for ftp?

Question3: I suppose I must also forward port 1025 in my router to my ftp
server?

Question4: Other things I have to do?

Rgds
Henk
Back to top
Lawrence D'Oliveiro
*nix forums Guru


Joined: 25 Mar 2005
Posts: 723

PostPosted: Fri Jul 21, 2006 10:50 am    Post subject: Re: changing port in vsftp Reply with quote

In message <Cc2wg.548793$I31.13069442@phobos.telenet-ops.be>, Henk Oegema
wrote:

Quote:
Since my ISP blocks all ports under 1024 (so I can't set up a ftp server
in the standard way) I made following change in /etc/vsftpd.conf:
listen_port=1025

Actually, this may not be necessary (see below).

Quote:
Quesion1: In the config file is written:
#Make sure PORT transfer connections originate from port 20 (ftp-data)
connect_from_port_20=YES
Must I comment out 'connect_from_port_20=YES' to
'#connect_from_port_20=YES' ?

Yes, if you did the previous change. From the vsftpd.conf(5) man page: "for
security reasons, some clients may insist that this is the case", but of
course you have to violate that. :)

Quote:
Question2: How do I connect now the ftp server?
Something like: ftp hostname:1025? Must I add the port number, since it is
not a standard port for ftp?

Yes, if you did the above changes.

Quote:
Question3: I suppose I must also forward port 1025 in my router to my ftp
server?

Yes. In fact, you don't need to reconfigure vsftpd at all: just forward port
1025 on your router to port 20 (or is it 21?) on your server.

Quote:
Question4: Other things I have to do?

Good question. FTP uses two ports. It may be you need to set up two
port-forwarding entries, for ports 20 and 21.

Putting an FTP server behind a NAT gateway may be problematic for this
reason (I don't think I've ever done it successfully). For authenticated
file transfer, have you considered using SFTP instead?
Back to top
houghi
*nix forums Guru


Joined: 22 Feb 2005
Posts: 6233

PostPosted: Fri Jul 21, 2006 11:37 am    Post subject: Re: changing port in vsftp Reply with quote

Henk Oegema wrote:
Quote:
Since my ISP blocks all ports under 1024 (so I can't set up a ftp server in
the standard way) I made following change in /etc/vsftpd.conf:
listen_port=1025

Quesion1: In the config file is written:
#Make sure PORT transfer connections originate from port 20 (ftp-data)
connect_from_port_20=YES
Must I comment out 'connect_from_port_20=YES' to
'#connect_from_port_20=YES' ?


Sory, no idea how to do this. No experience with FTP. I use sftp, wich
runs over ssh and is easier to use, I think.

Quote:
Question2: How do I connect now the ftp server?
Something like: ftp hostname:1025? Must I add the port number, since it is
not a standard port for ftp?

Yes. On a URL: ftp://example.com:2020 (Or whatever makes it easy to
remeber. That way HTTP will become 2080 and so on.)

Quote:
Question3: I suppose I must also forward port 1025 in my router to my ftp
server?

If you have a router, it should be even easier. Do no changes on your
server. Just forward prot 2020 to 20 on your server.

Quote:
Question4: Other things I have to do?

Change providers. The limits Telenet olds are not from this day and age
anymore.

--
houghi Please do not toppost http://houghi.org
Let's not be too tough on our own ignorance. It's the thing that makes
America great. If America weren't incomparably ignorant, how could we
have tolerated the last eight years? -- Frank Zappa, in 1988
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [3 Posts] View previous topic :: View next topic
The time now is Sun Nov 23, 2008 12:36 pm | All times are GMT
navigation Forum index » *nix » Linux » Distributions » Suse
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Changing postfix's 600 chmod wdave Postfix 1 Mon Apr 14, 2008 1:23 am
No new posts does squid 2.6 support setting cache_peer port in redirec... Victor Tsang Squid 0 Fri Jul 21, 2006 8:16 am
No new posts Spontaneously changing file ownerships and permissions jwwarrenva@gmail.com Solaris 7 Fri Jul 21, 2006 12:24 am
No new posts changing inode permissions <cus@oceanwave.com> Solaris 11 Thu Jul 20, 2006 11:07 pm
No new posts changing the exe name in VC++1.5 Ray.Jaramillo@gmail.com C++ 3 Wed Jul 19, 2006 3:47 pm

Mortgages | Payday Loan | Mortgages | Apply for Credit Card | MPAA
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1255s ][ Queries: 16 (0.0413s) ][ GZIP on - Debug on ]