From 3ec9ba08521f64bcec2137e5e48f648017d5eb5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Wed, 20 Oct 2021 10:57:17 +0200 Subject: Configure vsftpd --- etc/npf.conf | 1 + etc/rc.conf | 1 + usr/pkg/etc/vsftpd/vsftpd.conf | 15 +++++++++++++-- 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/etc/npf.conf b/etc/npf.conf index 70729b0..595a06a 100644 --- a/etc/npf.conf +++ b/etc/npf.conf @@ -3,6 +3,7 @@ group default { pass stateful on lo0 all pass stateful out all pass stateful in proto icmp all + pass stateful in from any to any port 21 pass stateful in from any to any port 22 pass stateful in from any to any port 80 pass stateful in from any to any port 443 diff --git a/etc/rc.conf b/etc/rc.conf index e933092..0231edc 100644 --- a/etc/rc.conf +++ b/etc/rc.conf @@ -32,3 +32,4 @@ raidframe=NO wscons=YES apache=YES umurmurd=YES +vsftpd=YES diff --git a/usr/pkg/etc/vsftpd/vsftpd.conf b/usr/pkg/etc/vsftpd/vsftpd.conf index d089825..f9fcc0a 100644 --- a/usr/pkg/etc/vsftpd/vsftpd.conf +++ b/usr/pkg/etc/vsftpd/vsftpd.conf @@ -43,5 +43,16 @@ userlist_enable=YES userlist_file=/usr/pkg/etc/vsftpd/userlist userlist_deny=NO -#log_ftp_protocol=YES - +log_ftp_protocol=YES +vsftpd_log_file=/var/log/vsftpd.log +dual_log_enable=YES + +ssl_enable=YES +allow_anon_ssl=NO +force_local_data_ssl=NO +force_local_logins_ssl=NO +ssl_tlsv1=YES +ssl_sslv2=YES +ssl_sslv3=YES +rsa_cert_file=/usr/pkg/etc/vsftpd/vsftpd.crt +rsa_private_key_file=/usr/pkg/etc/vsftpd/vsftpd.key -- cgit v1.2.3