Working fail2ban for Asterisk (security log)

Hey, just another config draft from me. In that article we will enable fail2ban jail for asterisk on UDP/5060 via iptables.

In /etc/sysconfig/iptables we should allow UDP/5060 for all (if you want to enable only for your subnet why you need fail2ban? Just allow 192.168.1.0/24 and don’t read that article).

Continue reading “Working fail2ban for Asterisk (security log)”

Ivacy VPN strongswan settings for android (and may be iOS)

Hey. I just tried to find out how to setup Ivacy on my android phone but not with OpenVPN or stock Ivacy app.

As we now strongswan app is more battery-friendly. So we should use strongswan. You hear? Use strongswan if its possible.

But googling not give me anything. I asked support and receive half of truth. But figure out the rest by myself. So lets go.

Continue reading “Ivacy VPN strongswan settings for android (and may be iOS)”

How to install guacamole 1.0.0 on Centos 7 box

Hey. Guacamole – really good app that allow you to connect to PC in your net via RDP/SSH/Telnet/VNC. Lets install it.

yum install cairo-devel libjpeg-devel libpng-devel uuid-devel freerdp-devel pango-devel libssh2-devel libssh-dev tomcat libvncserver-devel libtelnet-devel tomcat-admin-webapps tomcat-webapps gcc terminus-fonts
Continue reading “How to install guacamole 1.0.0 on Centos 7 box”

How to update Asterisk 16.1 to 16.2

Ok. Short article. We already have Asterisk 16.1, lets update to 16.2

systemctl stop asterisk
cd /usr/src
wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-16-current.tar.gz
tar -zxvf asterisk-16-current.tar.gz
cd asterisk-16.2.1/
./configure --with-pjproject-bundled --with-crypto --with-ssl=ssl --with-srtp --with-jansson-bundled
make menuselect #should find out how to save settings
make && make install && make config && ldconfig
chown asterisk.asterisk /var/run/asterisk &&
chown -R asterisk.asterisk /etc/asterisk &&
chown -R asterisk.asterisk /var/{lib,log,spool}/asterisk &&
chown -R asterisk.asterisk /usr/lib/asterisk

RAMDISK: incomplete write, kernel panic on centos

Today from early morning I was called by my colleague who said that his centos6 box can’t boot after reboot. After grub screen centos show that error:

RAMDISK: incomplete write (6257 != 32768)
write error
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
Pid: 1, comm: swapper not tainted %kernel_ver% #1
Call trace:

Let fix that.

Continue reading “RAMDISK: incomplete write, kernel panic on centos”

About root mail

Ok. After fresh install of centos I usually make two commands first

yum remove posftix sendmail
yum install ssmtp

So I just understand that root (and other users mail) I never receive! Lets fix it. Open /etc/aliases with you favorite nano and scroll to the bottom of the file

# Person who should get root's mail
root:           your@serviceemail.com


After that lets test

echo "test message" | mail root

Check your@serviceemail.com. Thats all!