zoukankan      html  css  js  c++  java
  • vsftpd同时支持IPv6 and IPv4

    vsftpd的配置文件/etc/vsftpd.conf把中"listen=YES"和"listen_ipv6=YES"是不能同时开启。 默认配置下"listen=YES"开启,"listen_ipv6=YES"被注释掉了,此时vsftpd只能监听到IPv4的FTP请求,不能监听到IPv6的FTP请求。怎样让vsftpd同时支持IPv4和IPv6哪?经过测试发现只要把'/etc/vsftpd.conf'配置文件中listen=YES"注释掉,,"listen_ipv6=YES"开启,保存配置文件。

     1 root@dimon-HP-dx2718-MT-KM255AV:/home# cat /etc/vsftpd.conf 
     2 # Example config file /etc/vsftpd.conf
     3 #
     4 # The default compiled in settings are fairly paranoid. This sample file
     5 # loosens things up a bit, to make the ftp daemon more usable.
     6 # Please see vsftpd.conf.5 for all compiled in defaults.
     7 #
     8 # READ THIS: This example file is NOT an exhaustive list of vsftpd options.
     9 # Please read the vsftpd.conf.5 manual page to get a full idea of vsftpd's
    10 # capabilities.
    11 #
    12 #
    13 # Run standalone?  vsftpd can run either from an inetd or as a standalone
    14 # daemon started from an initscript.
    15 #listen=YES
    16 #
    17 # Run standalone with IPv6?
    18 # Like the listen parameter, except vsftpd will listen on an IPv6 socket
    19 # instead of an IPv4 one. This parameter and the listen parameter are mutually
    20 # exclusive.
    21 listen_ipv6=YES
    22 #
    23 # Allow anonymous FTP? (Disabled by default)
    24 anonymous_enable=NO

    然后重启vsftpd service,重启完成后vsftpd就可以同时监听IPv4和IPv6的FTP请求了。

     1 service vsftpd restart 

    我PC的配置是X86, Ununtu14.x, vsftpd的版本是vsfptd-2.3.5

  • 相关阅读:
    【CSS学习】--- 背景
    线程运行诊断
    Mysql变量、存储过程、函数、流程控制
    设计模式之外观模式(门面模式)
    Spring的JdbcTemplate使用教程
    @AspectJ注解的value属性
    自定义Yaml解析器替换Properties文件
    @Import导入自定义选择器
    Spring中Bean命名源码分析
    Java操作fastDFS
  • 原文地址:https://www.cnblogs.com/dimonchen/p/4272345.html
Copyright © 2011-2022 走看看