linux

How to block IP ranges of specified autonomous system

If you want to prohibit access to your host for specified AS, you can use solution below. I made it some time ago, when I found out, that mail.ru hunting for hosts which help to bypass telegram censorship. It’s not perfect because I didn’t make much effort to it. Whois can return sub-networks and networks […]

Tags: , , ,

Posted in Linux related, Security related | No Comments »

Galaxy S3: /efs/prox_cal doesn’t affect calibration settings under LineageOS

Few days ago I replaced front glass on samsung i9300 and flashed LineageOS 14.1. After that I’ve found that proximity sensor stays in triggered state, it may happened because of lack of experience (I’ve used too much UV-glue, so it was everywhere) or because of additional screen protector which been installed. Anyway, always-triggered-proximity-sensor made phone […]

Tags: , , ,

Posted in Linux related, Security related | No Comments »

Dirty hack to add values mappings in Zabbix

“I’ll be brief.” © Here is two things about script published in ZBXNEXT-1424, first it can help you to automate creation of large mappings (and it’s cool), second it will broke your DB (not so cool, maaan). When you will try to add mapping in broken DB you will see something like this: The “Error […]

Tags: , , , ,

Posted in Linux related | No Comments »

LVM recovery

Few days ago i made mistake and forced fsck to check partition that contain LVM instead of logic volume, as result i got broken LVM metadata. I was unable to see volume group an logic volumes. pvs output looked like that: # pvs -v Scanning for physical volume names Incorrect metadata area header checksum I […]

Tags: , ,

Posted in Linux related | No Comments »

Simple OpenVPN profile generator

Few month ago i learned that OpenVPN support profiles. Before that i generate config for every client, create keys and certs with easy-rsa, tar it’s all together and put on client. Now i can create profile that will contain all necessary keys, certs and config in one file, so i write simple script that generate […]

Tags: , ,

Posted in Linux related, Security related | No Comments »

Zram

Few months ago, i tried very cool feature called ‘zram’. It is linux kernel module that allow to create compressed block devices into memory, it can be used for creating compressed fs in ram  (/tmp for example) or for swap. May be you think, that in context of swap, it is dumb to keeping  memory […]

Tags: ,

Posted in Linux related | No Comments »

Zoneminder jitter

After several years of torture with easycap i realize that it is time to change capture device. I found that other usb capture device that supported by linux cost to high, also i can not use PCI or full height PCI-e devices because of mATX form factor of my server.  Suddenly i found ImpactVCB 1381, […]

Tags: ,

Posted in Linux related, Security related | No Comments »

You IP

Since the idiots in the Russian government passed a law similar to ‘SOPA’ i started to modify routing scheme at my home. Many times i used internet.ya.ru to determine my current outgoing IP address, but i wanted to use more minimalistic tool for this purpose. So i created my own tool with blackjack and hookers, […]

Tags: , , , ,

Posted in Linux related, Security related, Web related | No Comments »

How to fix ‘Timezone database is corrupt – this should *never* happen!’

Today i upgraded to wheezy. When i entered my blog i observed that it does not work anymore. I looked into logs and found next errors: [26-Jun-2013 12:59:41 UTC] PHP Fatal error:  date(): Timezone database is corrupt – this should *never* happen! in … [26-Jun-2013 12:59:49 UTC] PHP Fatal error:  strtotime(): Timezone database is corrupt […]

Tags: , , , ,

Posted in Linux related, Web related | 3 Comments »

Kali linux on LiveUSB with working persistent partition

Few days ago i wanted to make liveusb with kali linux (i had backtrack before). I used this guide to install kali, but i observed, that persistence partition does not work. There is partitions on my usb drive: When init script found persistent partition and tried to mount  their return error “mount: mounting /dev/sdaX on […]

Tags: , ,

Posted in Linux related, Security related | 22 Comments »


Powered by WordPress. Designed by Försäkra Online.