»
 

Go Back   ResellerRatings Store Ratings > ResellerRatings Forums > Tech Support

Reply
 
LinkBack Thread Tools Display Modes
Old 10-27-2003, 01:24 PM   #1 (permalink)
Registered User
 
Join Date: Jul 2003
Location: Blacksburg, VA
Posts: 20
VTScotty is on a distinguished road
Changing FTP port in Linux

I have recently configured an FTP server on Redhat 9.0 using vsftpd. Everything runs well but I wanted to use different ports than the typical FTP ports of 20 and 21. How would I go about configuring vsftpd to use alternate ports instead of these defaults? I was checking vsftpd.conf and saw a line that said connect_from_port_20=YES. Should I add something here?

VTScotty is offline   Reply With Quote
Old 10-27-2003, 02:12 PM   #2 (permalink)
Registered User
 
CMonster's Avatar
 
Join Date: Oct 2001
Location: Sunny, smogy Southern California
Posts: 5,350
CMonster is on a distinguished road
At Home

I think you can do it in /etc/services and then you have to restart xinetd or inetd & vsftpd -a reboot should do it for sure.
CMonster is offline   Reply With Quote
Old 10-27-2003, 02:15 PM   #3 (permalink)
Registered User
 
nukes's Avatar
 
Join Date: Oct 2002
Location: Scotland, UK
Posts: 2,946
nukes is on a distinguished road
Send a message via AIM to nukes Send a message via Yahoo to nukes
I think you could just edit /etc/services and change the port number. I'm unsure as to this though.
__________________
_____
NuKeS
nukes is offline   Reply With Quote
Old 10-27-2003, 02:55 PM   #4 (permalink)
Registered User
 
Join Date: Jul 2003
Location: Blacksburg, VA
Posts: 20
VTScotty is on a distinguished road
Thanks guys, I will have to check that when I get home!
VTScotty is offline   Reply With Quote
Old 10-28-2003, 10:16 AM   #5 (permalink)
Registered User
 
nukes's Avatar
 
Join Date: Oct 2002
Location: Scotland, UK
Posts: 2,946
nukes is on a distinguished road
Send a message via AIM to nukes Send a message via Yahoo to nukes
MAke sure that the port you're using isn't set to some other service. You may also have to mess with inetd.conf or xinetd.conf, I'm not sure.
man services should be your first stop.
__________________
_____
NuKeS
nukes is offline   Reply With Quote
Old 11-02-2003, 05:36 PM   #6 (permalink)
Registered User
 
Scott Tiger's Avatar
 
Join Date: Mar 2002
Location: Roanoke, VA
Posts: 3,379
Scott Tiger is on a distinguished road
Well I'm trying to do the same thing he is and am not having much luck at all.

Here's a small shot of my /etc/services file

ftp-data 64123/tcp
ftp-data 64123/udp
# 21 is registered to ftp, but also used by fsp
ftp 64123/tcp
ftp 64123/udp fsp fspd

I've made the change, restarted both xinetd and vsftp but have had no luck. I even restarted the box and still vsftp uses port 21. Anyone have any suggestions? Man services isn't a very user friendly Manual Page and I haven't been able to find much help with Google.
__________________
Registered Linux User: 288411
Licensed Windows XP User
Scott Tiger is offline   Reply With Quote
Old 11-04-2003, 04:40 PM   #7 (permalink)
Registered User
 
Scott Tiger's Avatar
 
Join Date: Mar 2002
Location: Roanoke, VA
Posts: 3,379
Scott Tiger is on a distinguished road
Bump for some help...
__________________
Registered Linux User: 288411
Licensed Windows XP User
Scott Tiger is offline   Reply With Quote
Old 11-04-2003, 10:22 PM   #8 (permalink)
Registered User
 
Epyon9283's Avatar
 
Join Date: Mar 2002
Location: South Brunswick, NJ, USA
Posts: 783
Epyon9283 is on a distinguished road
Send a message via ICQ to Epyon9283 Send a message via AIM to Epyon9283 Send a message via Yahoo to Epyon9283
Try adding "port = 64123" in /etc/xinetd.d/vsftpd
Epyon9283 is offline   Reply With Quote
Old 11-05-2003, 11:03 PM   #9 (permalink)
Registered User
 
Scott Tiger's Avatar
 
Join Date: Mar 2002
Location: Roanoke, VA
Posts: 3,379
Scott Tiger is on a distinguished road
Thanks Epyon9283. I'll give that a try.
__________________
Registered Linux User: 288411
Licensed Windows XP User
Scott Tiger is offline   Reply With Quote
Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Most Active Discussions

Recent Discussions

All times are GMT -6. The time now is 06:52 AM.