Nethserver vsftp active mode

NethServer release 7.6.1810 (final)
Name : nethserver-vsftpd
Arch : noarch
Version : 1.1.1

Hi everyone, I need to activate the active mode of vsftp on neth server as the ftp connection requires tcp ports from 30000: 30999. The server is behind a firewall, so I would like to activate the standard tcp connection with port 21 and 20 for data transfer.
Thanks for any suggestions.

I tried the following and was successful when connecting with filezilla client in active mode.

Create a custom template:

mkdir -p /etc/e-smith/templates-custom/etc/vsftpd/vsftpd.conf/

Create a file /etc/e-smith/templates-custom/etc/vsftpd/vsftpd.conf/90active with following content:

connect_from_port_20=YES
pasv_enable=NO

Apply the changes:

signal-event nethserver-vsftpd-update

Source:

Thanks markuz for your interest, as soon as possible I will try your modification on the server neth and its outcome. :pray:

1 Like

hi, I did a test on the fly, dnat from the firewall port 21 to 21server. The user is authenticated, but when browsing the directory reports permission denied, invalid port
ftp
I tried using filezilla in active mode.

Was port 20 forwarded too?

Hi, yes the ports are in dnat 20:21 to the server