vsftpdをIPv4に変更するには?

vsftpdをIPv4に変更するには?

私はポート21とポート990で実行される2つのvsftpサービスを設定しています。誰かがこれを現在のIPv6ではなくIPv4に変更する方法を教えてもらえますか?設定をIPv4に変更する方法が見つかりません。以下はスクリーンショットです。

ここに画像の説明を入力してください。

ベストアンサー1

vsftpd.confから

# This directive enables listening on IPv6 sockets. By default, listening
# on the IPv6 "any" address (::) will accept connections from both IPv6
# and IPv4 clients. It is not necessary to listen on *both* IPv4 and IPv6
# sockets. If you want that (perhaps because you want to listen on specific
# addresses) then you must run two copies of vsftpd with two configuration
# files.
# Make sure, that one of the listen options is commented !!
listen_ipv6=YES

IOW IPv6を無効にしない限り、何も変更する必要はありません。

おすすめ記事