vsftp IPv4、IPv6 Support
vsftp IPv4、IPv6 Support
OS:Oracle Enterprise Linux 6.2 64bit
安裝 vsftpd,放入光碟。
# mount /dev/cdrom /media
# cd /media/Server/Pageages/
# rpm -ivh vsftpd-2.2.2-6.el6_0.1.x86_64.rpm
根據以下的說明,想要IPv4與IPv6共存的話,必須使用兩個設定檔,listen與listen_ipv6只能啟用一個。
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.
This directive enables listening on IPv6 sockets. To listen on IPv4 and IPv6
sockets, you must run two copies of vsftpd with two configuration files.
Make sure, that one of the listen options is commented !!
複製vsftpd.conf
# cp /etc/vsftpd/vsftpd.conf /etc/vsftpd/vsftpd_ipv6.conf
修改 /etc/vsftpd/vsftpd_ipv6.conf,將 listen=YES 改為 listen_ipv6=YES
現在我們有兩個設定檔,vsftpd.conf、vsftpd_ipv6.conf:
vsftpd.conf --> listen=YES
vsftpd_ipv6.conf --> listen_ipv6=YES
重新啟用 vsftpd :
# service vsftpd restart
Shutting down vsftpd: [ OK ]
Starting vsftpd for vsftpd: [ OK ]
Starting vsftpd for vsftpd_ipv6: [ OK ]
測試:
# ftp 127.0.0.1
Connected to 127.0.0.1 (127.0.0.1).
220 (vsFTPd 2.2.2)
Name (127.0.0.1:root):
ftp ::1
Connected to ::1 (::1).
220 (vsFTPd 2.2.2)
Name (::1:root):
::1 是一個特殊IP,其功能與 127.0.0.1一樣
剛開始測試時,IPv6的FTP一直無法連線成功,後來發現是ip6tables的緣故:
iptables --> IPv4
ip6tables --> IPv6
將它關閉之後就可以正常登入:
# service ip6tables stop
-
在電腦版的Line輸入文字時,遇到需要換行的情形時,我都是用記事本先寫好再複製上去,這樣就可以有換行的效果,可是這樣的做法好像失去Line的便利性。 於是查了一下,原來有一個設定可以指定Enter換行,而不是發訊息出去。 完成設定之後,要發送訊息就改用Al...
-
因為春節剛過,迎來的就是元宵節,但是元宵節為什麼要猜燈謎呢? 相傳,兩千多年前,就有了猜謎這種活動。如下這首詩就是一個謎語,謎底是「猜謎」。 「一時歡樂一時愁,想起千般不對頭。 如若想得千般到,自解憂來自解愁。」 但是,猜謎又怎麼會變成燈謎呢? 據說以前一位姓胡的大地主...
-
Windows7 / Windows8 kill process Linux下要刪除某個程序通常會使用 ps 配合 kill 來刪除程序。 例如:ps -ef |grep [PROCESS NAME] kill -9 [PID] 在Windows下,通常是...