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

转载于:https://www.cnblogs.com/dimonchen/p/4272345.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值