Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 13 additions & 5 deletions prep-sources
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
#!/bin/bash

# Prepare source for RPM build
#
# Build NS7 UI
#

# download langs from transifex
set -e

# tar directory
pushd ui && npm install && npm run build && cd dist && tar cvzf ../../nethserver-fail2ban-cockpit.tar.gz *
popd
# Build UI
NODE_OPTIONS="--openssl-legacy-provider"
export NODE_OPTIONS
pushd ui
npm install
npm run build
popd

tar -C ui/dist -c -z -f nethserver-fail2ban-cockpit.tar.gz .
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
$OUT .= "\n[$_]\n";
$OUT .= "enabled = true\n";
$OUT .= "port = $port\n";
$OUT .= "logpath = /var/log/asterisk/full\n";
$OUT .= "logpath = /var/log/asterisk/full /var/log/asterisk/nethcti.log\n";
$OUT .= "maxretry = $maxretry\n";
$OUT .= "action = $action\n\n"

Expand Down
1 change: 1 addition & 0 deletions root/etc/fail2ban/filter.d/asterisk_nethserver.conf
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@ failregex = ^%(__prefix_line)s%(log_prefix)s <HOST> failed to authenticate as '
^%(__prefix_line)s%(log_prefix)s <HOST> tried to authenticate with nonexistent user '.*'$
^%(__prefix_line)s%(log_prefix)s <HOST> failed to pass IP ACL as '.*'$
^%(__prefix_line)s%(log_prefix)s "Rejecting unknown SIP connection from <HOST>:.*"$
^%(__prefix_line)s *.send HTTP 401 response to <HOST>:.*$

ignoreregex =