Skip to content

Commit 5ee38b7

Browse files
author
magnussolution
committed
add ssh port on firewall
1 parent 3f4e1be commit 5ee38b7

6 files changed

Lines changed: 8 additions & 4 deletions

File tree

app/helper/Util.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ Ext.define('Helper.Util', {
372372
return value;
373373
},
374374
formatDirection: function(value) {
375-
value = value == 1 ? t('Outbound') : t('Inbound');
375+
value = value == 1 ? t('Outbound') : value == 2 ? t('Inbound') : t('Outbound & CallerID');
376376
return value;
377377
},
378378
formatHangupCause: function(value) {

build/MagnusBilling-current.tar.gz

301 Bytes
Binary file not shown.

classic/src/view/restrictedPhonenumber/Form.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Ext.define('MBilling.view.restrictedPhonenumber.Form', {
4242
forceSelection: true,
4343
editable: false,
4444
value: '1',
45-
store: window.bbx ? [
45+
store: window.dialC ? [
4646
[1, t('Outbound')],
4747
[2, t('Inbound')],
4848
[3, t('Outbound & CallerID')]

classic/src/view/restrictedPhonenumber/List.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ Ext.define('MBilling.view.restrictedPhonenumber.List', {
5454
type: 'list',
5555
options: [
5656
[1, t('Outbound')],
57-
[2, t('Inbound')]
57+
[2, t('Inbound')],
58+
[3, t('Outbound & CallerID')]
5859
]
5960
},
6061
flex: 1

protected/components/ApiAccess.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,8 @@ private function checkPermissions($modelApi)
172172
$action = 'd';
173173
} else if ($_POST['action'] == 'buy') {
174174
$action = 'r';
175+
} else if ($_POST['action'] == 'liberar') {
176+
$action = 'u';
175177
} else if ($_POST['action'] == 'getNewUsername') {
176178
$action = 'r';
177179
} else if ($_POST['action'] == 'getNewPassword') {

script/install.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -866,16 +866,17 @@ echo
866866
echo "Installing Fail2ban & Iptables"
867867
echo
868868

869+
ssh_port=$(cat /etc/ssh/sshd_config | grep Port | awk 'NR==1{print $2}')
869870

870871
install_fail2ban
871872

872-
873873
iptables -F
874874
iptables -A INPUT -p icmp --icmp-type echo-request -j ACCEPT
875875
iptables -A OUTPUT -p icmp --icmp-type echo-reply -j ACCEPT
876876
iptables -A INPUT -i lo -j ACCEPT
877877
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
878878
iptables -A INPUT -p tcp --dport 22 -j ACCEPT
879+
iptables -A INPUT -p tcp --dport $ssh_port -j ACCEPT
879880
iptables -P INPUT DROP
880881
iptables -P FORWARD DROP
881882
iptables -P OUTPUT ACCEPT

0 commit comments

Comments
 (0)