LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 03-01-2005, 04:13 AM   #1
vipspark
LQ Newbie
 
Registered: Jan 2005
Location: New Delhi
Posts: 17

Rep: Reputation: 0
Ftp port change


Hello all

Can we change the port of ftp... i mean can we change the default port of ftp that is 21???

thnku
KeepsmilinG
 
Old 03-01-2005, 04:31 AM   #2
anon237
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

Most (all?) major ftp servers can be set up to listen to any port you want (if not conflicting with other programs that are bound/listen to choosen port).

Take a look at you ftpd configuration file (to name just 2 - proftpd: proftpd.conf, pure ftpd: pure-ftpd.conf).

Hope this helps.
 
Old 03-01-2005, 04:49 AM   #3
vipspark
LQ Newbie
 
Registered: Jan 2005
Location: New Delhi
Posts: 17

Original Poster
Rep: Reputation: 0
Hello

Thanks for your reply but i am on Linux and using vsftpd and its configuration file is vsftpd.conf. I serched whole file but i sm not able to find any interesting which can help me.
Please guide me more if u can.
Thanku
KeepsmilinG
 
Old 03-01-2005, 04:59 AM   #4
anon237
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

I don't use vsftpd, but a little search on the net (!!!) gives the answer:

vsftpd faq

Especially these 2:

Q) Help! Can I change the port that vsftpd runs on?
A1) Yes. If you are running vsftpd in standalone mode, use the "listen_port"
directive in vsftpd.conf.
A2) Yes. If you are running vsftpd from an inetd or xinetd program, this
becomes an inetd or xinetd problem. You must change the inetd or xinetd
configuration files (perhaps /etc/inetd.conf or /etc/xinetd.d/vsftpd)

Q) Help! Can I restrict vsftpd data connections to a specific range of ports?
A) Yes. See the config settings "pasv_min_port" and "pasv_max_port".
 
Old 03-01-2005, 05:05 AM   #5
vipspark
LQ Newbie
 
Registered: Jan 2005
Location: New Delhi
Posts: 17

Original Poster
Rep: Reputation: 0
Thanks a lot

First option worked easily.
Thanku very much

KeepsmilinG
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
PLESK [Solution] Change port to 23 (telnet) instead of default port 8443 x5452 Linux - Software 6 05-10-2009 05:58 AM
Change ftp data port? RoaCh Of DisCor Linux - Networking 5 03-04-2005 05:50 PM
SuSE 9.2 - FTP Port open with no FTP service?!?! don_wombat Linux - Security 12 12-01-2004 03:14 PM
Outside FTP Port 21 redirect to different port inside LAN??? hendrixx Linux - Security 5 06-05-2004 06:42 PM
how to change wu-ftp listen port? jamil5454 Linux - Networking 3 01-05-2004 07:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 11:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration