VOS3000 Hacking prevention and protection

VOS3000 Hacking prevention and protection

VOS3000 old versions are being hacked . its costing too much money through illegal calls . you can prevent it some level  by taking some precaution .

1-  Make your server SSH root password complicated

2- Make your server mysql password complicated

3- Make your vos3000 client Admin password complicated

4- Make your vos3000 client user access password complicated.

5- Make your buyers and seller IP authenticated

6- make your firewall on

contact for more vos3000 security and firewall ,anti hack

 

How to check vos3000 MySQL Database size

How to check vos3000 MySQL Database size

Before transfer database to new server you want to know the vos3000db database size.For that you must login to the mysql and write below query or copy paste.

SELECT table_schema AS “Database name”, SUM(data_length + index_length) / 1024 / 1024 AS “Size (MB)” FROM information_schema.TABLES GROUP BY table_schema;

Continue reading How to check vos3000 MySQL Database size

How to monitor vos3000 services and start if vos3000 services stop

If you want to monitor vos3000 services and start if vos3000 services stop .VOS3000 version 2.1.2.0 is stop after some time so you can monitor the vos3000 services  and start it . Here I am using three shell scripts to monitor to vos3000 service and start it. I am checking vos3000 service every 5 second and if stops I am starting with a script and send email alert.

Continue reading How to monitor vos3000 services and start if vos3000 services stop

VOS3000 IPtables for port changing vos 3000 client and security

VOS3000 IPtables for port changing :
Use below rule to change your vos3000 client to access server on different port as 7899 or change as per your requirement

iptables -A PREROUTING -t nat -p tcp -m tcp –dport 1202 -j DNAT –to-destination :3720
iptables -A PREROUTING -t nat -p tcp -m tcp –dport 7899 -j DNAT –to-destination :1202
iptables -A PREROUTING -t nat -p tcp -m tcp –dport 1202 -j DNAT –to-destination :3720
iptables -A PREROUTING -t nat -p tcp -m tcp –dport 7899 -j DNAT –to-destination :1202
iptables -A PREROUTING -t nat -p tcp -m tcp –dport 3306 -j DROP
iptables -A PREROUTING -t nat -p tcp -m tcp –dport 2501 -j DROP
iptables -A PREROUTING -t nat -p tcp -m tcp –dport 1202 -j DROP
iptables -A PREROUTING -t nat -p tcp -m tcp –dport 1205 -j DROP
iptables -A PREROUTING -t nat -p tcp -m tcp –dport 143 -j DROP
iptables -A POSTROUTING -t nat -p tcp -m tcp –dport 7899 -j MASQUERADE
iptables -A POSTROUTING -t nat -p tcp -m tcp –dport 7899 -j MASQUERADE

Download  IPtables list and modify as per your requirement 
Download iptables
Edit and upload iptables.txt on your server and apply the iptables rule 
#iptables-restore  <  /your upload path/iptables.txt

 

How to change Timezone in VOS3000 after VOS3000 installation

Some tome you want to change Timezone in VOS3000 after VOS3000 installation For Example I want to change my Time zone to Asia/Shanghai

 

easy way to change time zone on centos  run the system command 

# system-config-date

and select your timezone

timezone

 

 

 

 

 

 

 

 

 

 

 

 

 

click OK   and reboot the server.

if  system-config-date  command is not working then install this tool 

# yum install system-config-date

manual way to do this is follow the below steps.

Reinstall Timezone database

# yum -y reinstall tzdata

Install NTP Client to accurate time according to time zone

# yum -y install ntp # chkconfig ntpd on # service ntpd restart Continue reading How to change Timezone in VOS3000 after VOS3000 installation

How to transfer VOS3000 database on remote server easly

Its very long process to transfer vos3000 or my sql database to remote server as you take backup and restore on remote server. This is how to transfer VOS3000 database on remote server easly

#mysqldump -u root -pPPPP  vos3000db | ssh root@x.x.x.x  mysql -u root -pKKKK  vos3000db

PPPP is local mysql root password  KKKK is  remote mysql root password x.x.x.x change with your vos3000 or mysql database server IP address

vos3000db is the database which will transfer from loacl server to remote server.

Hope it will help you .

if mysqldum is not working giving error copy backup file locally and restore the backup file as below command.

mysql -h localhost -u root -pPPPP vos3000db < vos3000dbbackup.sq

 

How to retrive vos3000 admin password or reset password

How to retrive vos3000 admin password or reset password

If you forget Vos3000 admin password you don’t need to worry if you know your MySQL root password.Vos3000 store their password in clear text  so you can read the password.

This is how to retrive vos3000 admin password
Login as root on vos3000 server
login to MySQL

[root@vostest ~]# mysql -u root -p vos3000db
Enter password :-  (enter your MySql Password)l

 

Now you are able to see your forget admin password Now login V0s3000 client and change your password.

 

How to transfer Vos3000 server database to new Vos3000 server

How to transfer Vos3000 server database  to new  Vos3000 server

VOS 3000 use MySQL database to for their database named  vos3000db

If you want to backup and restore VOS 3000 database or transfer Vos3000 server database to new VOS 3000 server  follow the below steps :-

Login as root on old server

[root@centos]# mysqldump -u root  -p  vos3000db > vos3000backup.sql

Enter password: (enter your MySQL root Password)

Now copy  vos3000backup.sql   file to new server  execute below command to restore

#scp vos3000backup.sql  root@newserverip:/var/

Now Login on New Server

cd /var

[root@centos]# mysqldump -u root  -p  vos3000db  < vos3000backup.sql

Enter password: (enter your MySQL root Password of new server)

if command execute successful then your database is restore.

if you are getting error to restore database try below command

mysql -u root -pxyz  vos3000db <vos3000db.sql

To Backup VOS3000 databse execpt CDR data

Stop vos3000 service ,
  /bin/tar -jcvf /home/kunshi/vos3000/databackup/vos3000.tar.bz2   –exclude *cdr*    /var/lib/mysql/vos3000/