Wednesday, January 8 2020

Banning Repeat With Fail2ban

If wont to prevent brute force on ssh service good choice is Fail2Ban, but If wont to ban attackers were repeatedly got ban by Fail2Ban on luckily we can easy setup "Repeat" service for permanent ban of attacker.

nano /etc/fail2ban/jail.d/repeat.conf

[repeat]
enabled  = true
filter   = repeat
logpath  = /var/log/fail2ban.log
bantime  = 31536000   ; 1 year
findtime = 31536000   ; 1 year
maxretry=3

nano /etc/fail2ban/filter.d/repeat.conf

[INCLUDES]
before = common.conf

[Definition]
_daemon = fail2ban\.actions\s*
_jailname = repeat
failregex = ^(%(__prefix_line)s| %(_daemon)s%(__pid_re)s?:\s+)NOTICE\s+\[(?!%(_jailname)s\])(?:.*)\]\s+Ban\s+<HOST>\s*$
ignoreregex =

[Init]
journalmatch = _SYSTEMD_UNIT=fail2ban.service PRIORITY=5

nano /etc/fail2ban/action.d/repeat.conf

actionban = if ! <iptables> -C f2b-<name> -s <ip> -j DROP; then <iptables> -I f2b-<name> 1 -s <ip> -j DROP; fi
if ! grep -Fxq '<ip>,<name>' /etc/fail2ban/ip.blacklist; then echo '<ip>,<name>' >> /etc/fail2ban/ip.blacklist; fi
actionunban = # Do nothing becasuse their IP is in the blocklist file

[Init]

After success created this files, just restart Fail2Ban service and that is all.

 

Friday, December 13 2019

How to up OpenVPN server and client on Debian 10 Buster in 5 min

This fast method how to setup OpenVPN server and example for client. For more information about OpenVPN please check official Documentation.   1. Installation of packages on server apt-get install openvpn easy-rsa 2. Now we will make PKI repository: make-cadir /etc/openvpn/easy-rsa Now change  […]

Continue reading

Tuesday, December 3 2019

Setting up Samba + MATE Desktop as Standalone file share on Debian 10 Buster

First need to install packages samba winbind kdenetwork-filesharing: apt-get install samba winbind caja-share Create local user and create password for acces to share: useradd -M -s /bin/false username smbpasswd -a username Check local samba user with: pdbedit -w -L Open Caja and right click on  […]

Continue reading

Wednesday, November 13 2019

Nextcloud server on Debian 11 Bullseye

I build nextcloud-server package for three Debian release (stretch, buster and bullseye). Steps for install: 1. Install database (in my example I use PostgreSQL): apt-get install postgresql 2. Create database,user on database: su - postgres psql CREATE DATABASE nextcloud; CREATE USER nextuser WITH  […]

Continue reading

Friday, November 8 2019

Rebuild Debian repository for Debian Stretch (oldstable) and Buster(stable)

          Today I rebuild Debian repository for Debian Stretch (oldstable) and Buster(stable), in new repositroy is included: binary package orginal source package debian build package file describes a source package Think this repository needs to be more transparent and open to collaboration and  […]

Continue reading

Tuesday, October 22 2019

Setting up Samba + KDE as Standalone file share on Debian 10 Buster

First need to install packages samba winbind kdenetwork-filesharing: apt-get install samba winbind kdenetwork-filesharing Create local user and create password for acces to share: useradd -M -s /bin/false username smbpasswd -a username Check local samba user with: pdbedit -w -L Open Dolphin and  […]

Continue reading

Wednesday, July 10 2019

Debian Stretch - Nextcloud 15.0.10

Upgraded nextcloud server package to 15.0.10 for Debian Stretch. I highly recommend upgrading, check list of changes. Process of upgrade is very simple, example: apt-get update apt-get upgrade Changes (source from https://nextcloud.com/changelog/): Version 15.0.10 July 9 2019 Changes Do not fail  […]

Continue reading

Thursday, May 9 2019

Microphone crackling sound on chipset Realtek ALC1220

I using Debian 10 Buster GNU/Linux with kernel 4.19.37  and have on microphone crackling sound when talk over Steam Chat, Discord, etc. My motherboard is ASRock Fatal1ty X399 with Realtek ALC1220 audio chipset. I try fix problem but all result with fail. Need help with microphone crackling  […]

Continue reading

Wednesday, April 24 2019

Setting up Samba as an Active Directory Domain Controller on Debian 9 Stretch

Introduction Samba is great project and if wont make Samba AD DC today is very simple. More about Samba look at https://www.samba.org/. Preparing the Installation select hostname(dc1.internal.example.com),domain name(internal.example.com) installation and configure of time server (ntp) installation  […]

Continue reading

Monday, April 8 2019

Debian Stretch - Nextcloud 15.0.7

Upgraded nextcloud server package to 15.0.7 for Debian Stretch. I highly recommend upgrading, check list of changes. Process of upgrade is very simple, example: apt-get update apt-get upgrade Changes (source from https://nextcloud.com/changelog/): Version 15.0.7 April 9 2019 Changes Fix for  […]

Continue reading

Friday, March 1 2019

Debian Stretch - Nextcloud 15.0.5

Upgraded nextcloud server package to 15.0.5 for Debian Stretch. I highly recommend upgrading, check list of changes. Process of upgrade is very simple, example: apt-get update apt-get upgrade Changes (source from https://nextcloud.com/changelog/): Version 15.0.5 February 28 2019 Changes Show  […]

Continue reading

Monday, January 14 2019

Debian Stretch - Upgrade Nextcloud 15.0.0 to 15.0.2

Upgrade nextcloud server package from 15.0.0 to 15.0.2 for Debian Stretch. I highly recommend upgrading, check list of changes. Process of upgrade is very simple, example: apt-get update apt-get upgrade Changes (source from https://nextcloud.com/changelog/): Version 15.0.2 January 11 2019 Don't log  […]

Continue reading

Tuesday, December 25 2018

Debian Stretch - Upgrade Nextcloud 14.0.4 to 15.0.0

Upgrade nextcloud server package from 14.0.4 to 15.0.0 for Debian Stretch. I highly recommend upgrading, check list of changes. Process of upgrade is very simple, example: apt-get update apt-get upgrade Changes (source from https://nextcloud.com/changelog/): Nextcloud 15 introduces social  […]

Continue reading

Friday, November 23 2018

New update of Nextcloud 14.0.4

Updated nextcloud server package from 14.0.3 to 14.0.4 for Debian Stretch. I highly recommend upgrading, check list of changes. Changes (source from https://nextcloud.com/changelog/): Allow overwrite.cli.url without trailing slash (server#11772) Remove duplicate call to decodeURIComponent  […]

Continue reading

Tuesday, October 16 2018

Nextcloud upgraded packages for Stretch and Jessie

Updated nextcloud server package from 14.0.1 to 14.0.3 for Debian Stretch and 13.0.6 to 13.0.7 for Debian Jessie. I highly recommend upgrading, check list of changes. Changes (source from https://nextcloud.com/changelog/): Version 14.0.3 October 12 2018 Changes Fixes the apps menu scrollbar  […]

Continue reading

Thursday, October 4 2018

How to install self hosted Mozilla Sync for Pale Moon in 3 min on Debian 9

Introduction My default internet browser is Pale Moon and I'm very satisfied. Very stable, in six months of use has never collapsed or obstructed. The rendering speed of the web site is great thanks to the Goanna layout engine. Compatibility with NPAPI plugin is supported (some apps need that  […]

Continue reading

Thursday, September 27 2018

Nextcloud 14.0.2 & 14.0.3

Updated nextcloud server package from 14.0.0 to 14.0.1 for Debian Stretch and 13.0.6 to 13.0.7 for Debian Jessie. I highly recommend upgrading, check list of changes. Changes (source from https://nextcloud.com/changelog/): Fixes the upload progress bar layout - 14 backport (server#11039) Fix markup  […]

Continue reading

Friday, September 21 2018

Nextcloud upgrade from 13.0.6 to 14.0.0

I update nextcloud server package from 13.0.6 to 14.0.0 for Debian Stretch. Update proces is now simple. Example: apt-get update apt-get upgrade Package will do rest. When start with apt-get upgrade, apt will get new package and check depency then fix if need and deploy Nextcloud on  […]

Continue reading

Tuesday, September 11 2018

De-Googling my phone

For a long time I've been using the Xiaomi Mi 5 phone with MUI interface that is base on based Android. That means that on my phone I have installed Bloatware that came with MIUI and additionally with Android. The result of all this is the weaker performance of mobile phone, faster battery  […]

Continue reading

Friday, August 31 2018

Nextcloud upgrade from 13.0.5 to 13.0.6

I update nextcloud server package from 13.0.5 to 13.0.6 for Debian Jessie and Stretch. Update proces is same as before, check on link. Changes Add sabre plugin to allow anonymous options requests to the dav root (server#10285) Do scan the root storage in background scan (server#10376) Adding test  […]

Continue reading

- page 1 of 3