Skip to content

Commit 8bf6859

Browse files
committed
1 parent 45c2dfc commit 8bf6859

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/Virtualmin/Config/Plugin/Fail2ban.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ my $mini_stack =
128128
($self->bundle() =~ /LEMP/i ? 'LEMP' : 'LAMP') : 0;
129129
my $proftpd_block = $mini_stack ? '' :
130130
"[proftpd]\n" .
131-
"enabled = true$proftpd_jail_extra\n\n";
131+
"enabled = true\nport = ftp,ftp-data,ftps,ftps-data,2222$proftpd_jail_extra\n\n";
132132

133133
open(my $JAIL_LOCAL, '>', '/etc/fail2ban/jail.local');
134134
print $JAIL_LOCAL <<EOF;

lib/Virtualmin/Config/Plugin/Fail2banFirewalld.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ my $mini_stack =
133133
($self->bundle() =~ /LEMP/i ? 'LEMP' : 'LAMP') : 0;
134134
my $proftpd_block = $mini_stack ? '' :
135135
"[proftpd]\n" .
136-
"enabled = true$proftpd_jail_extra\n\n";
136+
"enabled = true\nport = ftp,ftp-data,ftps,ftps-data,2222$proftpd_jail_extra\n\n";
137137

138138
open(my $JAIL_LOCAL, '>', '/etc/fail2ban/jail.local');
139139
print $JAIL_LOCAL <<EOF;

0 commit comments

Comments
 (0)