How to change default Vicidial login 6666 to admin other name

How to change default Vicidial login 6666 to admin other name

After fresh setup of vicidial  its gives you default login and password as 6666 and 1234 .

you can change default login 6666 to admin or as you want .

1- Login to your server

2- login to mysql

3-

mysql -u root -ppassw0rd
use asterisk;
update vicidial_users set user='admin' where user='6666';

It will change all records  related to this user .

its is good to change due to security  issue.

How to configure firewall IPTABLES on Vicidial on cloud

How to configure firewall IPTABLES on Vicidial on cloud .

If you are hosting your Vicidial on the cloud then there are big issue with illegal’s SIP registration attacks and illegal’s calls issue.

So its better to block every thing  allow your IPs and RTP packets . this need to be done very carefully otherwise you will lock your self.

Here I am giving an example step by step . and I hope someone can come up some good addition to secure more .

Access your server by ssh

iptables -F
iptables -N SIP
iptables -A INPUT -i lo -j ACCEPT
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A INPUT -s X.X.X.X -p tcp --dport 22 -j ACCEPT
iptables -A INPUT -s 8.8.8.8/32 -p tcp --dport 22 -j ACCEPT
iptables -A INPUT -p udp --dport 5060 -j SIP
iptables -A INPUT -p udp --dport 5060 -j DROP
iptables -A INPUT -p udp --dport 5061 -j SIP
iptables -A INPUT -p udp --dport 5061 -j DROP
iptables -A INPUT -p udp --dport 10000:20000 -j ACCEPT
iptables -I INPUT 1 -i ens192 -p tcp --dport 80 -m state --state NEW,ESTABLISHED -j ACCEPT
iptables -I INPUT 2 -i ens192 -p tcp --dport 443 -m state --state NEW,ESTABLISHED -j ACCEPT
iptables -A SIP -s X.X.X.X/32 -j ACCEPT
iptables -P INPUT DROP
iptables -P FORWARD DROP
iptables -P OUTPUT ACCEPT
/sbin/service iptables save


Continue reading How to configure firewall IPTABLES on Vicidial on cloud

How to setup your IT Infrastructure for Work From Home

How to setup your IT Infrastructure for Work From Home in low cost with open source secure industry standard technologies.

Here I am going to talk about talk about small and medium size offices and companies who are not able to invest big amount to upgrade or migrate there IT infrastructure  for there workers to work from home in the COVID pandemic .

There are few things mostly you are using in the office as IT infrastructure as end user. if that IT infrastructure is available at your home then mostly people can work from home easily.

I am taking a small office example scenario with 30 employees which  you require to work from home.

Simple small office network diagram .

Continue reading How to setup your IT Infrastructure for Work From Home

How to enable call forwarding from SIP extension Softphone or Analog Phone

How to enable call forwarding from SIP extension Softphone or Analog Phone if you are using Asterisk PBX or Issabel PBX .

From the Softphone or Analog Phone

Dial *72 with number where you want to forward the call for example I want to forward my all calls on

my mobile no 83199999 then i will dial  *7283199999      make sure you are able to dial outside from your phone . and add prefix which you dial for outside calls.

To Disable Call Forwarding

Dial *73

how to configure sip trunk between cme and issabel

how to configure sip trunk between cme and issabel or how to configure sip trunk between cme and elastix.

Some time we require sip communication between Cisco CME and Asterisk servers to send and receive  calls to and from CME to Asterisk .

First we will configure Issabel side  with following steps. we will go through following steps .

1- Configure Trunk

2- Configure Outbound Routes

3-Inbound  Routes

Continue reading how to configure sip trunk between cme and issabel

How to reset FreePBX admin password

How to reset FreePBX admin password

If you forget the freepbx admin password  and you have  root  ssh access you can reset the admin  password .

1-  Access your login page  and press Ctrl +A

2- Copy the  unique session ID

3- Now on your SSH session type as below adn replace your unique session ID

[root@pbx ~]# fwconsole unlock igg56njsp8bi0h4serfwepsq963
Unlocking:
session unlocked!
[root@pbx ~]#

or

If you are using FreePBX 13 or earlier and the above gives you a ‘command not found’ error message, use the depreciated amportal command

[root@pbx ~]# amportal a u igg56njswewbi0h4odqnupsq963
Fetching FreePBX settings with gen_amp_conf.php..
session unlocked!
[root@pbx ~]#

4- Now refresh the login page and you will be automatically logged in.

5-  Now Go to    Admin -> Administrators and select your user on the right side of the page. At this point you can reset your password.

FreePBX firewall commands

FreePBX firewall commands

fwconsole firewall disable
fwconsole firewall stop
fwconsole firewall start
fwconsole firewall restart
fwconsole firewall trust www.google.com
fwconsole firewall untrust www.google.com
fwconsole firewall untrust 192.168.0.1/24
fwconsole firewall list blacklist
fwconsole firewall list trusted
fwconsole firewall add blacklist example.com 192.168.15.0/24
fwconsole firewall add other 192.168.75.0/24
fwconsole firewall list other
fwconsole firewall del other 192.168.75.0/24