Wednesday, 31 October 2012

How to enable vsftpd( ftp server) for IPV6 and IPv4

1) yum install vsftpd

2) vim /etc/vsftpd/vsftpd.conf
     change :
         listen_ipv6= YES
     For anonymous upload/dwnload

        anon_mkdir_write_enable= YES
        anon_other_write_enable= YES
          anon_upload_enable= YES

3)  service vsftpd start
4) Default path for upload /download directory


5) The Linux native client (ftp) does not support IPv6, so use "lftp" to test the server.

6) Windows 7/ Windows 2008 Server ftp client will work so you can use "ftp ipv4/ipv6" command.


1 comment:

  1. I'm having problems. I want to run FTP on both IPv4 and IPv6 at the same time. I am running vsftpd 3.0.2 on Ubuntu 14.04

    I am told that I have to have 2 copies of vsftpd running, one for IPv4 and one for IPv6. Fine. Here is IPv4, no problems.
    root@jsilverman-vagrant:~# vsftpd /etc/vsftpd4.conf

    Here is IPv6, big problem:
    root@jsilverman-vagrant:~# vsftpd /etc/vsftpd6.conf
    500 OOPS: could not bind listening IPv6 socket

    I have RTFMed, and I think I have the two configuration files done correctly:

    root@jsilverman-vagrant:~# diff /etc/vsftpd4.conf /etc/vsftpd6.conf
    < listen=YES
    > listen=NO
    < # listen_ipv6=YES
    > listen_ipv6=YES

    If I turn off the IPv4 version, then the IPv6 version works correctly:

    root@jsilverman-vagrant:~# netstat -plnt
    Active Internet connections (only servers)
    Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
    tcp 0 0* LISTEN 760/rpc.statd
    tcp 0 0* LISTEN 1236/git-daemon
    tcp 0 0* LISTEN 693/rpcbind
    tcp 0 0* LISTEN 1306/sshd
    tcp 0 0* LISTEN 3264/cupsd
    tcp 0 0* LISTEN 4197/python
    tcp6 0 0 :::9418 :::* LISTEN 1236/git-daemon
    tcp6 0 0 :::44526 :::* LISTEN 760/rpc.statd
    tcp6 0 0 :::111 :::* LISTEN 693/rpcbind
    tcp6 0 0 :::80 :::* LISTEN 3367/apache2
    tcp6 0 0 :::21 :::* LISTEN 4860/vsftpd
    tcp6 0 0 :::22 :::* LISTEN 1306/sshd
    tcp6 0 0 ::1:631 :::* LISTEN 3264/cupsd

    But now the IPv4 server can't start:
    root@jsilverman-vagrant:~# vsftpd /etc/vsftpd4.conf
    500 OOPS: could not bind listening IPv4 socket



Related Posts Plugin for WordPress, Blogger...