vsftpd를 IPv4로 변경하는 방법은 무엇입니까?

vsftpd를 IPv4로 변경하는 방법은 무엇입니까?

포트 21과 포트 990에서 실행되는 두 개의 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을 비활성화하지 않는 한 아무것도 변경할 필요가 없습니다.

관련 정보