LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-01-2010, 10:00 AM   #1
mohdayadd
LQ Newbie
 
Registered: Nov 2009
Posts: 4

Rep: Reputation: 0
running two vsFTPd in the same server


Hi,
iam trying to run two different copies of vsFTPd service in the same server, one for IPv4 and the other one for IPv6. because as i know that you cant run one vsFTPd server for IPv4 and IPv6 in the same time.
any suggestions ?
 
Old 12-01-2010, 10:05 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,491

Rep: Reputation: 8123Reputation: 8123Reputation: 8123Reputation: 8123Reputation: 8123Reputation: 8123Reputation: 8123Reputation: 8123Reputation: 8123Reputation: 8123Reputation: 8123
Quote:
Originally Posted by mohdayadd View Post
Hi,
iam trying to run two different copies of vsFTPd service in the same server, one for IPv4 and the other one for IPv6. because as i know that you cant run one vsFTPd server for IPv4 and IPv6 in the same time.
any suggestions ?
Perhaps, if you told us what the actual problem you're having is. Have you done/tried it? What version/distro of Linux? Only thing I can think to do to alleviate any potential problems, would be to put one instance on a different port.
 
Old 12-01-2010, 10:15 AM   #3
mohdayadd
LQ Newbie
 
Registered: Nov 2009
Posts: 4

Original Poster
Rep: Reputation: 0
hi..
iam using CentOS 5.5 ,, the actual problem that the vsftpd stop working when u active the listing for both of IPv4 and IPv6 in the same time.

error message --> Starting vsftpd for vsftpd: 500 OOPS: run two copies of vsftpd for IPv4 and IPv6

i tried to download another vsftpd to have one for IPv6 and one for IPv4 access.
my question is how i could run two copies of vsftpd ?
 
Old 12-01-2010, 10:27 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,491

Rep: Reputation: 8123Reputation: 8123Reputation: 8123Reputation: 8123Reputation: 8123Reputation: 8123Reputation: 8123Reputation: 8123Reputation: 8123Reputation: 8123Reputation: 8123
Quote:
Originally Posted by mohdayadd View Post
hi..
iam using CentOS 5.5 ,, the actual problem that the vsftpd stop working when u active the listing for both of IPv4 and IPv6 in the same time.

error message --> Starting vsftpd for vsftpd: 500 OOPS: run two copies of vsftpd for IPv4 and IPv6

i tried to download another vsftpd to have one for IPv6 and one for IPv4 access.
my question is how i could run two copies of vsftpd ?
Spell your words out.

And why did you download another vsftpd? You only need one copy of the software, but at worst, need two configuration files. However, if you checked the documentation on vsftpd, you'd see options to put into your vsftpd config file.
Code:
#enable for standalone mode and ipv4-only.  Set "listen=YES" for IPV4 Only.
listen=NO

#IPv6 support requires listen=NO above to kill IPv4-only and enable dual IPv6 and IPv4
listen_ipv6=YES
 
1 members found this post helpful.
Old 12-01-2010, 02:54 PM   #5
mohdayadd
LQ Newbie
 
Registered: Nov 2009
Posts: 4

Original Poster
Rep: Reputation: 0
sorry .. iam kinda weak in english.
i want vsFTPd to serve both of IPv4 and IPv6 in the same time.
the documentation said that to do that you should run two different copies of the vsFTP.
in my case I just got one server [hardware] and i want to run the two copies of the vsFTP as the documentation said.
so how i could run two different of the vsFTPd in the same server ?
or i should run the other vsFTPd in other server ?
 
Old 12-01-2010, 03:04 PM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,491

Rep: Reputation: 8123Reputation: 8123Reputation: 8123Reputation: 8123Reputation: 8123Reputation: 8123Reputation: 8123Reputation: 8123Reputation: 8123Reputation: 8123Reputation: 8123
Quote:
Originally Posted by mohdayadd View Post
sorry .. iam kinda weak in english.
i want vsFTPd to serve both of IPv4 and IPv6 in the same time.
the documentation said that to do that you should run two different copies of the vsFTP.
in my case I just got one server [hardware] and i want to run the two copies of the vsFTP as the documentation said.
so how i could run two different of the vsFTPd in the same server ?
or i should run the other vsFTPd in other server ?
Did you not read what I posted????
Quote:
#enable for standalone mode and ipv4-only. Set "listen=YES" for IPV4 Only.
listen=NO

#IPv6 support requires listen=NO above to kill IPv4-only and enable dual IPv6 and IPv4
listen_ipv6=YES
How much more clear does it need to be? To enable vsftpd over IPv4 and IPv6, you set the lines in your config file, to match what's above. It's even in the vsftpd configuration documents, and commented in the file. Read what was posted. And what documentation did you read?


And again, if you want to run two different instances of vsftpd, that's fine. You then need two config files, and tell each instance to use a different config. Read the man pages on vsftpd and vsftpd.conf. You'd also have to run them in stand-alone mode, rather than through xinetd.

Last edited by TB0ne; 12-01-2010 at 03:08 PM.
 
Old 12-02-2010, 12:43 AM   #7
mohdayadd
LQ Newbie
 
Registered: Nov 2009
Posts: 4

Original Poster
Rep: Reputation: 0
thanks for your patience

i used two config files for two run levels and thats worked with me.

Last edited by mohdayadd; 12-02-2010 at 12:44 AM.
 
Old 12-02-2010, 08:35 AM   #8
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,491

Rep: Reputation: 8123Reputation: 8123Reputation: 8123Reputation: 8123Reputation: 8123Reputation: 8123Reputation: 8123Reputation: 8123Reputation: 8123Reputation: 8123Reputation: 8123
Quote:
Originally Posted by mohdayadd View Post
thanks for your patience

i used two config files for two run levels and thats worked with me.
Great, glad you got it going. Please mark this thread as SOLVED, and consider giving some reputation, please.
 
Old 01-19-2011, 03:49 AM   #9
ananku
LQ Newbie
 
Registered: Jan 2011
Location: Chennai, India
Distribution: Fedora, Ubuntu
Posts: 2

Rep: Reputation: 0
Quote:
Originally Posted by TB0ne View Post
Code:
#enable for standalone mode and ipv4-only.  Set "listen=YES" for IPV4 Only.
listen=NO

#IPv6 support requires listen=NO above to kill IPv4-only and enable dual IPv6 and IPv4
listen_ipv6=YES
Its a bit tricky to get this right at first attempt. The default vsftpd conf file in FC10 had the "listen_ipv6" commented out. The logical choice here is to uncomment that line and comment the "listen" line to have the IPv6 enabled. We need to RTFM, to know that "listen" is YES by default and "listen_ipv6" is NO by default. Hence we had to say "listen=NO", and commenting that line doesn't help. Everyone tends to go by the logical choice to make things work quickly, and that may not be the correct one always. As always, reading the manual is the fastest method to make anything work. This is what my vsftpd.conf says and it really doesn't reflect what needs to be done
Code:
# When "listen" directive is enabled, vsftpd runs in standalone mode and 
# listens on IPv4 sockets. This directive cannot be used in conjunction 
# with the listen_ipv6 directive.
listen=NO
#
# This directive enables listening on IPv6 sockets. To listen on IPv4 and IPv6
# sockets, you must run two copies of vsftpd whith two configuration files.
# Make sure, that one of the listen options is commented !!
listen_ipv6=YES

Last edited by ananku; 01-19-2011 at 03:51 AM. Reason: new code addition
 
Old 01-19-2011, 09:53 AM   #10
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,491

Rep: Reputation: 8123Reputation: 8123Reputation: 8123Reputation: 8123Reputation: 8123Reputation: 8123Reputation: 8123Reputation: 8123Reputation: 8123Reputation: 8123Reputation: 8123
Quote:
Originally Posted by ananku View Post
Its a bit tricky to get this right at first attempt. The default vsftpd conf file in FC10 had the "listen_ipv6" commented out. The logical choice here is to uncomment that line and comment the "listen" line to have the IPv6 enabled. We need to RTFM, to know that "listen" is YES by default and "listen_ipv6" is NO by default. Hence we had to say "listen=NO", and commenting that line doesn't help. Everyone tends to go by the logical choice to make things work quickly, and that may not be the correct one always. As always, reading the manual is the fastest method to make anything work. This is what my vsftpd.conf says and it really doesn't reflect what needs to be done
Code:
# When "listen" directive is enabled, vsftpd runs in standalone mode and 
# listens on IPv4 sockets. This directive cannot be used in conjunction 
# with the listen_ipv6 directive.
listen=NO
#
# This directive enables listening on IPv6 sockets. To listen on IPv4 and IPv6
# sockets, you must run two copies of vsftpd whith two configuration files.
# Make sure, that one of the listen options is commented !!
listen_ipv6=YES
Right...that's what I posted the first time.
 
Old 01-20-2011, 12:40 AM   #11
ananku
LQ Newbie
 
Registered: Jan 2011
Location: Chennai, India
Distribution: Fedora, Ubuntu
Posts: 2

Rep: Reputation: 0
Quote:
Originally Posted by TB0ne View Post
Right...that's what I posted the first time.
Sure. You are spot on with your solution. In fact I got mine to be working after reading your posts. I posted this because the comments in vsftpd.conf of FC10 is not correct and misleading
Code:
# Make sure, that one of the listen options is commented !!
 
  


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
[SOLVED] vsftpd not running sheelavantar Linux - Networking 7 09-09-2010 03:56 AM
Can't connect to FTP server running vsftpd eswafford Linux - Software 1 07-19-2007 09:56 AM
Running VSFTPD under RH 9.0 - how to? ivj Linux - Networking 1 09-12-2004 08:44 AM
Unable to login as local user with vsftpd running on the server kairamr Linux - Newbie 1 06-09-2004 03:25 PM
how would I check to see if vsftpd is running? mehesque Linux - Newbie 6 10-07-2003 10:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:31 AM.

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