SYSTEM INFORMATION | |
---|---|
OS type and version | CentOS Stream Linux 9 |
Virtualmin version | 7.5 |
Hi, so this has been bothering me for quite some time now and i cannot find any information on what could be the root cause of this behavior. Don’t judge me, but i am really green in this field.
When trying to connect to the ftp 21 port server drops the connection. Telnet to port 21 works fine. The log from FileZilla is below.
Status: Connecting to 111.11.11.11:21...
Status: Connection established, waiting for welcome message...
Error: Connection closed by server
Error: Could not connect to server
proftpd status right after server starts below:
[root@web ~]# systemctl status proftpd
● proftpd.service - ProFTPD FTP Server
Loaded: loaded (/usr/lib/systemd/system/proftpd.service; enabled; preset: disabled)
Active: active (running) since Wed 2023-01-11 16:30:45 EST; 1min 9s ago
Process: 1446 ExecStartPre=/usr/sbin/proftpd --configtest (code=exited, status=0/SUCCESS)
Main PID: 1508 (proftpd)
Tasks: 1 (limit: 10889)
Memory: 6.3M
CPU: 91ms
CGroup: /system.slice/proftpd.service
└─1508 "proftpd: (accepting connections)"
Jan 11 16:30:44 sub.domain.com proftpd[1446]: daemon[1446]: mod_dso/0.5: unable to load 'mod_tls.c'; check to see if '/usr/libexec/proftpd/mod_tls.la' exists
Jan 11 16:30:44 sub.domain.com proftpd[1446]: daemon[1446]: mod_dso/0.5: module 'mod_tls.c' already loaded
Jan 11 16:30:44 sub.domain.com proftpd[1446]: daemon[1446]: fatal: TLSOptions: : unknown TLSOption 'NoCertRequest' on line 10 of '/etc/proftpd/conf.d/virtualmi>
Jan 11 16:30:44 sub.domain.com proftpd[1446]: daemon[1446]: error: unable to open parse file '/etc/proftpd/conf.d/virtualmin.conf': Operation not permitted
Jan 11 16:30:45 sub.domain.com systemd[1]: Started ProFTPD FTP Server.
Jan 11 16:30:45 sub.domain.com proftpd[1508]: daemon[1508]: mod_dso/0.5: unable to load 'mod_tls.c'; check to see if '/usr/libexec/proftpd/mod_tls.la' exists
Jan 11 16:30:45 sub.domain.com proftpd[1508]: daemon[1508]: mod_dso/0.5: module 'mod_tls.c' already loaded
Jan 11 16:30:45 sub.domain.com proftpd[1508]: daemon[1508]: fatal: TLSOptions: : unknown TLSOption 'NoCertRequest' on line 10 of '/etc/proftpd/conf.d/virtualmi>
Jan 11 16:30:45 sub.domain.com proftpd[1508]: daemon[1508]: error: unable to open parse file '/etc/proftpd/conf.d/virtualmin.conf': Operation not permitted
Jan 11 16:30:45 sub.domain.com proftpd[1508]: daemon[1508] 111.11.11.11: ProFTPD 1.3.8 (stable) (built Mon Dec 5 2022 00:00:00 UTC) standalone mode STARTUP
proftpd status after i try to connect with FileZilla below:
● proftpd.service - ProFTPD FTP Server
Loaded: loaded (/usr/lib/systemd/system/proftpd.service; enabled; preset: disabled)
Active: active (running) since Wed 2023-01-11 16:30:45 EST; 2min 38s ago
Process: 1446 ExecStartPre=/usr/sbin/proftpd --configtest (code=exited, status=0/SUCCESS)
Main PID: 1508 (proftpd)
Tasks: 1 (limit: 10889)
Memory: 6.3M
CPU: 102ms
CGroup: /system.slice/proftpd.service
└─1508 "proftpd: (accepting connections)"
Jan 11 16:33:01 sub.domain.com proftpd[2348]: session[2348] 111.11.111.11 (111.11.222.22[111.11.222.22]): [3] proftpd: (accepting connections)(modules_session_init+0x57) [0x55601d687727]
Jan 11 16:33:01 sub.domain.com proftpd[2348]: session[2348] 111.11.111.11 (111.11.222.22[111.11.222.22]): [4] proftpd: (accepting connections)(+0x3419e) [0x55601d66019e]
Jan 11 16:33:01 sub.domain.com proftpd[2348]: session[2348] 111.11.111.11 (111.11.222.22[111.11.222.22]): [5] proftpd: (accepting connections)(+0x34d59) [0x55601d660d59]
Jan 11 16:33:01 sub.domain.com proftpd[2348]: session[2348] 111.11.111.11 (111.11.222.22[111.11.222.22]): [6] proftpd: (accepting connections)(main+0x618) [0x55601d656318]
Jan 11 16:33:01 sub.domain.com proftpd[2348]: session[2348] 111.11.111.11 (111.11.222.22[111.11.222.22]): [7] /lib64/libc.so.6(+0x3feb0) [0x7f20b563feb0]
Jan 11 16:33:01 sub.domain.com proftpd[2348]: session[2348] 111.11.111.11 (111.11.222.22[111.11.222.22]): [8] /lib64/libc.so.6(__libc_start_main+0x80) [0x7f20b563ff60]
Jan 11 16:33:01 sub.domain.com proftpd[2348]: session[2348] 111.11.111.11 (111.11.222.22[111.11.222.22]): [9] proftpd: (accepting connections)(_start+0x25) [0x55601d656935]
Jan 11 16:33:01 sub.domain.com proftpd[2348]: session[2348] 111.11.111.11 (111.11.222.22[111.11.222.22]): -----END STACK TRACE-----
Jan 11 16:33:01 sub.domain.com proftpd[2348]: session[2348] 111.11.111.11 (111.11.222.22[111.11.222.22]): ProFTPD terminating (signal 11)
Jan 11 16:33:01 sub.domain.com proftpd[2348]: session[2348] 111.11.111.11 (111.11.222.22[111.11.222.22]): FTP session closed.