IRONPORT icon   Ironport – Strip DisplayName from the From header



Yesterday I came across a request in which for a group of email users, the display name must be removed when sending to recipients outside the organization.

Concretely, those whose email is in format XXXX@domain.com  (where XXXX are digits) must be “anonymized”. For example:

When certain of those users sends an email to an internal recipient, the header from should … Read more

F5 BIG-IP icon   F5 BIG-IP – Dynamic RDP destination for APM



Portal access (APM) allows user access internal resources such as servers and computers via Remote Desktop (RDP). There are 3 options to to configure the destination host when configuring the RDP resource:

  • Hostname
  • IP Address
  • User defined

Problem

Hostname and IP address are a fixed destination. In case you need different destinations based on the logged user, you would … Read more

Icinga icon   Icinga – Notification template with notes support



I have just configured an Icinga2 notification template for hosts and services to replace the ugly and impractical default one.

Features

Not big things but useful in my opinion

Clear and nicely formatted layout

State based colors

State based icons

UTF Icons are included depending on the state of the host or service

Notes support

This notifications scripts can include … Read more

Icinga icon   Icinga – Notes section in markdown language



Not sure since what version this feature is available but I have started to use the notes section of the services i am monitoring in Icinga in markdown syntax.

icingaweb2 package version 2.6 that is compiled for Debian 10 (Buster).

Package: icingaweb2
Version: 2.6.2-3

You may think you do not need it for, but in my humble opinion it is … Read more

Checkpoint   Checkpoint – Policy installation failed. Error code: 0-2000040



This morning i have come across a Checkpoint problem: No way to perform a succesful policy installation in any of the several virtual system gateways I have in my environment.

As you can see the returning error is: Policy installation failed on the gateway. If the problem persists contact Check Point support [Error code: 0-2000040].

Fortunately i found a generic … Read more

Linux   Linux – SQL Server command line to perform queries (mssql-cli)



There are different methods to run queries against an SQL Server from a Linux machine. The one I am using is mssql-cli (https://github.com/dbcli/mssql-cli)

As you can check in the related github website, it has the following features:

  • Auto-completion
  • Syntax highlighting
  • Query history
  • Configuration file support
  • Multi-line queries

Installation

The -Q parameter

It has been packetized for a lot of distributions … Read more

Linux   Linux – Show git branch in bash prompt



If you are a Git user, you can find very useful this custom prompt.

Branch

Shows working branch when it detects the current folder is a git one:

user1@labdebian ~/data $
user1@labdebian ~/data $ cd ../myproject/
user1@labdebian ~/myproject (master) $
user1@labdebian ~/myproject (master) $ git checkout -b branch1
Switched to a new branch 'branch1'
user1@labdebian ~/myproject (branch1) $
user1@labdebian ~/myproject
Read more

Linux   Linux – Join to Windows domain (realm command)



Dont be afraid. Joining a linux machine to a windows active directory domain is not difficult. This post explains step by step how to join a Debian or Ubuntu linux machine but it can applied for other distributions without much different commands.

Install needed packages

Install realmd

apt-get install realmd

It may happen that the command returns an error like … Read more

F5 BIG-IP icon   F5 BIG-IP – Authentication using active directory



By default F5 BigIp configuration utility uses local users to authenticate.

But if your enviroment allows it, using another way like Active Directory, LDAP, RADIUS might be very interesting. This post focuses in Active Directory but, anyway, it can point you and be a great help to configure for another type of server.

So, follow these easy steps:

Configure Active

Read more

Checkpoint   Checkpoint – /var/log full (possible cause)



Yesterday I realized (after checking the backup of one of my gateways was failing) that the /var/log partition was 100% full:

[Expert@vsx1:0]# df -h
Filesystem 			Size 	Used 	Avail 	Use% 	Mounted on
/dev/mapper/vg_splat-lv_current 31G 	21G 	9.0G 	70% 	/
/dev/md0 			289M 	130M 	145M 	48% 	/boot 
tmpfs 				32G 	0 	32G 	0% 	/dev/shm
/dev/mapper/vg_splat-lv_log 	146G 	146G 	0 	100% 	/var/log

Surprinsingly, it used to have … Read more