Skip to content

Commit 3cfe05b

Browse files
committed
Merge main in to staging
2 parents 0dab50e + 4d6b74e commit 3cfe05b

File tree

20 files changed

+137
-69
lines changed

20 files changed

+137
-69
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ All notable changes to this project will be documented in this file.
9191
- Standardize headers for upgrade scripts
9292
- Improved how we handle custom themes
9393
- Refactored HMTL / PHP code WebUI
94+
- Updated ClamAV configuration
9495
- Fixed issue where file manger key got the wrong permissions
9596
- Update version Laveral @mariojgt
9697

bin/v-backup-user

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ if [ ! -z "$MAIL_SYSTEM" ] && [ "$MAIL" != '*' ]; then
390390
accounts=()
391391
for account in $(ls); do
392392
exclusion=$(echo "$MAIL" |tr ',' '\n' |grep "$domain:")
393-
exclusion=$(echo "$exclusion" |tr ':' '\n' |grep "^$account$")
393+
exclusion=$(echo "$exclusion" |tr ':' '\n' |grep -E "^$account|\*")
394394

395395
# Checking exlusions
396396
if [ -z "$exclusion" ] && [[ "$MAIL_SYSTEM" =~ exim ]]; then

bin/v-delete-web-domain

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ fi
6767

6868
# Deleting web backend
6969
if [ ! -z "$WEB_BACKEND" ]; then
70-
$BIN/v-delete-web-domain-backend $user $domain $restart
70+
$BIN/v-delete-web-domain-backend $user $domain 'no'
7171
fi
7272

7373
# Deleting vhost configuration
@@ -142,10 +142,14 @@ fi
142142
$BIN/v-restart-web $restart
143143
check_result $? "Web restart failed" >/dev/null
144144

145-
# Restartinh proxy server
145+
# Restarting proxy server
146146
$BIN/v-restart-proxy $restart
147147
check_result $? "Proxy restart failed" >/dev/null
148148

149+
# Restarting backend server
150+
$BIN/v-restart-web-backend $restart
151+
check_result $? "Backend restart failed" >/dev/null
152+
149153
# Logging
150154
$BIN/v-log-action "$user" "Info" "Web" "Deleted web domain (Name: $domain)."
151155
log_event "$OK" "$ARGUMENTS"

bin/v-list-sys-ips

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,16 @@ json_list() {
5353

5454
# SHELL list function
5555
shell_list() {
56-
echo "IP MASK NAT HELO STATUS WEB DATE"
57-
echo "-- ---- --- ---- ------ --- ----"
56+
echo "IP MASK NAT HELO STATUS WEB DATE"
57+
echo "-- ---- --- -------------------- ------ --- ----"
5858
while read IP; do
5959
source $HESTIA/data/ips/$IP
6060
if [ -z "$NAT" ]; then
6161
NAT='no'
6262
fi
63+
if [ -z "$HELO" ]; then
64+
HELO='unset'
65+
fi
6366
echo "$IP $NETMASK $NAT $HELO $STATUS $U_WEB_DOMAINS $DATE"
6467
done < <(ls $HESTIA/data/ips/)
6568
}

bin/v-purge-nginx-cache

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#!/bin/bash
22
# info: Purge nginx cache
3-
# options: USER DOMAIN MODE
3+
# options: USER DOMAINå
44
# labels: hestia web
55
#
6-
# example: v-purge-nginx-cache user domain.tld proxy
6+
# example: v-purge-nginx-cache user domain.tld
77
#
88
# The function purges nginx cache.
99

install/deb/clamav/clamd.conf

Lines changed: 35 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
1-
#Automatically Generated by clamav-base postinst
2-
#To reconfigure clamd run #dpkg-reconfigure clamav-base
3-
#Please read /usr/share/doc/clamav-base/README.Debian.gz for details
1+
#Automatically Generated by clamav-daemon postinst
2+
#To reconfigure clamd run #dpkg-reconfigure clamav-daemon
3+
#Please read /usr/share/doc/clamav-daemon/README.Debian.gz for details
44
LocalSocket /var/run/clamav/clamd.ctl
55
FixStaleSocket true
66
LocalSocketGroup clamav
77
LocalSocketMode 666
88
# TemporaryDirectory is not set to its default /tmp here to make overriding
99
# the default with environment variables TMPDIR/TMP/TEMP possible
1010
User clamav
11-
# AllowSupplementaryGroups true
1211
ScanMail true
1312
ScanArchive true
1413
ArchiveBlockEncrypted false
@@ -19,26 +18,38 @@ ReadTimeout 180
1918
MaxThreads 12
2019
MaxConnectionQueueLength 15
2120
LogSyslog false
21+
LogRotate true
2222
LogFacility LOG_LOCAL6
2323
LogClean false
2424
LogVerbose true
25-
PidFile /var/run/clamav/clamd.pid
25+
PreludeEnable no
26+
PreludeAnalyzerName ClamAV
2627
DatabaseDirectory /var/lib/clamav
28+
OfficialDatabaseOnly false
2729
SelfCheck 3600
2830
Foreground false
2931
Debug false
3032
ScanPE true
33+
MaxEmbeddedPE 10M
3134
ScanOLE2 true
35+
ScanPDF true
3236
ScanHTML true
37+
MaxHTMLNormalize 10M
38+
MaxHTMLNoTags 2M
39+
MaxScriptNormalize 5M
40+
MaxZipTypeRcg 1M
41+
ScanSWF true
3342
ExitOnOOM false
3443
LeaveTemporaryFiles false
3544
AlgorithmicDetection true
3645
ScanELF true
3746
IdleTimeout 30
47+
CrossFilesystems true
3848
PhishingSignatures true
3949
PhishingScanURLs true
4050
PhishingAlwaysBlockSSLMismatch false
4151
PhishingAlwaysBlockCloak false
52+
PartitionIntersection false
4253
DetectPUA false
4354
ScanPartialMessages false
4455
HeuristicScanPrecedence false
@@ -48,6 +59,23 @@ SendBufTimeout 200
4859
MaxQueue 100
4960
ExtendedDetectionInfo true
5061
OLE2BlockMacros false
62+
AllowAllMatchScan true
63+
ForceToDisk false
64+
DisableCertCheck false
65+
DisableCache false
66+
MaxScanTime 120000
67+
MaxScanSize 100M
68+
MaxFileSize 25M
69+
MaxRecursion 16
70+
MaxFiles 10000
71+
MaxPartitions 50
72+
MaxIconsPE 100
73+
PCREMatchLimit 10000
74+
PCRERecMatchLimit 5000
75+
PCREMaxFileSize 25M
76+
ScanXMLDOCS true
77+
ScanHWP3 true
78+
MaxRecHWP3 16
5179
StreamMaxLength 25M
5280
LogFile /var/log/clamav/clamav.log
5381
LogTime true
@@ -56,5 +84,5 @@ LogFileMaxSize 0
5684
Bytecode true
5785
BytecodeSecurity TrustSigned
5886
BytecodeTimeout 60000
59-
OfficialDatabaseOnly false
60-
CrossFilesystems true
87+
PidFile /var/run/clamav/clamd.pid
88+
OnAccessMaxFileSize 5M

install/deb/firewall/ipset/blacklist.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ BLACKLISTS=(
88
"https://www.projecthoneypot.org/list_of_ips.php?t=d&rss=1" # Project Honey Pot Directory of Dictionary Attacker IPs
99
"https://check.torproject.org/cgi-bin/TorBulkExitList.py?ip=1.1.1.1" # TOR Exit Nodes
1010
"https://www.maxmind.com/en/high-risk-ip-sample-list" # MaxMind GeoIP Anonymous Proxies
11-
"http://danger.rulez.sk/projects/bruteforceblocker/blist.php" # BruteForceBlocker IP List
1211
"https://www.spamhaus.org/drop/drop.lasso" # Spamhaus Don't Route Or Peer List (DROP)
1312
"https://cinsscore.com/list/ci-badguys.txt" # C.I. Army Malicious IP List
1413
"https://lists.blocklist.de/lists/all.txt" # blocklist.de attackers

install/deb/templates/mail/nginx/default_rainloop.stpl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ ssl_certificate_key %ssl_key%;
1111
ssl_stapling on;
1212
ssl_stapling_verify on;
1313

14+
location ^~ /data {
15+
deny all;
16+
return 404;
17+
}
18+
1419
location ~ ^/(README.md|config|temp|logs|bin|SQL|INSTALL|LICENSE|CHANGELOG|UPGRADING)$ {
1520
deny all;
1621
return 404;

install/deb/templates/mail/nginx/default_rainloop.tpl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,12 @@ location ~ /\.(?!well-known\/) {
1313
return 404;
1414
}
1515

16-
location ~ /data/ {
16+
location ^~ /data {
17+
deny all;
18+
return 404;
19+
}
20+
21+
location ~ ^/(README.md|config|temp|logs|bin|SQL|INSTALL|LICENSE|CHANGELOG|UPGRADING)$ {
1722
deny all;
1823
return 404;
1924
}

install/deb/templates/mail/nginx/rainloop.stpl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ location ~ /\.(?!well-known\/) {
1616
return 404;
1717
}
1818

19+
location ^~ /data {
20+
deny all;
21+
return 404;
22+
}
23+
1924
location ~ ^/(README.md|config|temp|logs|bin|SQL|INSTALL|LICENSE|CHANGELOG|UPGRADING)$ {
2025
deny all;
2126
return 404;

0 commit comments

Comments
 (0)