|
|
|
|
|
|
| Author |
Message |
henk@oegema.com *nix forums beginner
Joined: 05 Apr 2006
Posts: 42
|
Posted: Fri Jul 21, 2006 10:42 am Post subject:
changing port in vsftp
|
|
|
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
|
Posted: Fri Jul 21, 2006 10:50 am Post subject:
Re: changing port in vsftp
|
|
|
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
|
Posted: Fri Jul 21, 2006 11:37 am Post subject:
Re: changing port in vsftp
|
|
|
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 |
|
 |
|
|
The time now is Sun Nov 23, 2008 12:36 pm | All times are GMT
|
|
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
|
|