Configuring Cloud in Mikrotik

Starting from the version of RouterOS v6.14, the Cloud function is added which allows using the Dynamic DNS name for a device that is automatically assigned and can be accessed by it even if the IP address is changed.

Example of switching through the console:

ip cloud set enabled=yes

Example of viewing parameters:

ip cloud print

Enable device time update with DDNS server time (if SNTP or NTP service is not configured):

ip cloud update-time yes/no

Immediate update of DDNS:

ip cloud force-update

View the DDNS name:

ip cloud dns-name

View the public IP address to which DDNS is bound:

ip cloud public-address

Binding DDNS to a local IP address instead of a public one, for example to 192.168.1.101, etc.)

ip cloud advanced use-local-address yes/no

View the current status of the Cloud (updated, updated, error, etc.):

ip cloud status

Through the graphical interface of the Cloud settings can be found in the menu “IP” – “Cloud”.

Troubleshooting “Recipient address rejected: Intentional policy rejection, please try again later”

I once told alibaba.com the email of one of the servers with iRedMail, but the letters for some reason did not come.
In the logs /var/log/mail.log saw the following message:

Continue reading “Troubleshooting “Recipient address rejected: Intentional policy rejection, please try again later””

Automatically installing Mikbill in Debian 7

For the test, I will perform the automatic installation of Mikbill in Debian 7 and describe the process.

See also my article – How to make a bootable USB flash drive with Debian

Switch directly to the root user:

su -

Download the archive from Mikbill and unpack it:

wget http://www.mikbill.ru/mikbill.tar.gz
tar xzvf mikbill.tar.gz

Run the installation script in Debian 7:

cd DISTR/Debian7x
./install_debian7x

During the installation process, we answer the questions, the IP address of the billing page (where it will be opened), the billing domain, MySQL passwords.

After installing the billing did not open in the browser, there was an error:

502 bad gateway

To solve it, in the text editor opened the configuration:

nano /etc/php5/fpm/pool.d/www.conf

Found the string:

listen = /var/run/php5-fpm.sock

And replaced it with:

listen = /var/run/php-worker-socket

After rebooting the system, everything worked.

Check if Mikbill and radius are working with commands:

netstat -anp|grep 0.0.0.0:2007
netstat -anp|grep 0.0.0.0:1812
netstat -anp|grep 0.0.0.0:1813

The standard login and password to admin panel is admin/admin.
You also need to set the time zone in the system by typing:

dpkg-reconfigure tzdata

And the time zone in billing and /etc/php5/.

Reset password on HikVision cameras and DVRs

On the test, I reset the password on the DVR DS-7204HQHI-SH with the firmware version 3.1.3.
Since to him probably some schoolboy picked up a password, changed it and wrote mucks in the names of the cameras :)

The first step is to download the SADP utility from the official site
https://www.hikvision.com/en/Support/Downloads/Tools

Run the utility, connect the device to the same network as the computer or a direct cable to the computer.
The utility displays the connected device, as well as its serial number, in my case:

DS-7204HQHI-SH0420150505AAWR516895417WCVU

We copy this serial number, removing the model of the device in the beginning, in my case it turned out:

0420150505AAWR516895417WCVU

Open the security key generator, enter this serial number, specify the date that is set on the device and generate the code.

Open SADP again, select the connected device in the list, click on the “Forgot Password” on the right, enter the code, then enter the new password in the “Admin Password” line.
Now you can enter under the admin login and the specified password in the web interface of the device.
If the device was hacked, it is desirable to immediately reset the settings and update the firmware to the latest.

Code generators can be found on the Internet, for example, here are a couple of online generators:
http://hikkvisionpasswordreset.github.io
https://ipcamtalk.com/pages/hikvision-password-reset-tool

Also, the code can be requested from HikVision technical support or the store in which the device was purchased.

See also:
Update firmware on HikVision devices
Reset password in Dahua DVRs