Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 11-15-2003, 05:25 PM   #1
LQ Newbie
Registered: Oct 2003
Location: Atlanta, GA and Dallas, TX
Posts: 23

Rep: Reputation: 15
vsFTPd: change listening port

I've sorta got a problem. My ftp server is getting scanned about 100+ times a day, so I want to change the port on which it listens. I found another thread that says to change the /etc/xinetd.d/vsftpd and add the line:
port = whatever

also the /etc/services should be edited, but I'm not sure how to edit this (well, what to change rather). Plus, I don't even know if this will work with vsFTPd, for the other thread was for another protocol, but as far as I know, it should be the same thing for all protocols.

Thanks for your help
Old 11-15-2003, 07:13 PM   #2
Registered: Feb 2003
Location: Atlanta, GA
Distribution: RHAS 2.1, RHEL3, RHEL4, SLES 8.3, SLES 9, SLES9_64, SuSE 9.3 Pro, Ubuntu, Gentoo
Posts: 335

Rep: Reputation: 32
from the VSFTPD FAQ :

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)
Old 11-15-2003, 08:35 PM   #3
LQ Newbie
Registered: Oct 2003
Location: Atlanta, GA and Dallas, TX
Posts: 23

Original Poster
Rep: Reputation: 15
don't you just love to be made to feel a fool? I sure do :-D

thanks. I'll do it that way then (the xinetd way)
haha... yeaaah.....


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
Change VSFTPD Port Fedora 2 br00tal Linux - Networking 3 04-09-2005 10:35 AM
2 servers listening on port 80 possible? scrawl Linux - Software 1 03-13-2005 06:06 PM
Listening on a serial port calebsg Linux - General 2 10-13-2004 11:45 AM
ssh listening on port 22 sharpie Linux - Security 9 06-08-2004 04:28 PM
How to change listening port of echo server [RH9]? immer Linux - Networking 5 11-29-2003 05:30 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:15 PM.

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