FTP only binds to IPv6 when configured over GUI

  • Hi,


    if I'm activating the FTP service it's only binding to IPv6 instead of binding to IPv4 and IPv6.


    A netstat on the open ports is only showing IPv6 as well

    Code
    netstat -tulpn | grep :21
    tcp6       0      0 :::21                   :::*                    LISTEN      192222/proftpd: (ac


    when looking into proftpd.conf in /etc/proftpd/proftpd.conf the second line is

    Code
    UseIPv6 on


    If I'm setting it to off and restart the service service is only listening on IPv4

    Code
    netstat -tulpn | grep :21
    tcp        0      0 0.0.0.0:21              0.0.0.0:*               LISTEN      192616/proftpd: (ac


    Also in both cases (starting with UseIPv6 on and off) I'm getting the following errors in journalctl

    Code
    Oct 15 17:28:58 odroidhc4 systemd[1]: Starting ProFTPD FTP Server...
    Oct 15 17:28:58 odroidhc4 proftpd[193129]: Checking syntax of configuration file
    Oct 15 17:28:58 odroidhc4 proftpd[193129]: 2021-10-15 17:28:58,051 odroidhc4 proftpd[193129] 127.0.1.1: mod_ctrls/0.9.5: error: unable to bind to local socket: No such file or directory
    Oct 15 17:28:58 odroidhc4 proftpd[193130]: 2021-10-15 17:28:58,084 odroidhc4 proftpd[193130] 127.0.1.1: mod_ctrls/0.9.5: error: unable to bind to local socket: No such file or directory
    Oct 15 17:28:58 odroidhc4 proftpd[193131]: 127.0.1.1 - ProFTPD 1.3.7a (maint) (built Sat Sep 18 2021 21:42:19 UTC) standalone mode STARTUP
    Oct 15 17:28:58 odroidhc4 systemd[1]: Started ProFTPD FTP Server.


    Is someone else also experiencing this issue?


    Thanks for your help,Schilli

  • Ok,


    just found it out myself that it's not a problem with the port and the application as tcp6 is also listening on tcp.

    For whatever reason my printer and my windows pc was not successfully connecting to it if it was not explicitly opened on IPv4 :-/

    Don't know what changed, but now it's working with the default settings.


    Thanks

    Schilli

  • schilli

    Hat das Label gelöst hinzugefügt.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!