It has been a few weeks now that I have replaced the full debian based OS on my raspberry pi. The Pi now runs openwrt which works better along with the Huawei E3372s in hilink mode.
While I was setting up my PI as bastion host, I felt the need for improving the security. One of the mandatory enhancement I have added is the ability to send me logs via email in case there is some activity in the machine
Here you can find the ash script that I’m using for sending the log activities via mail. You may run this script every N minutes to keep you posted on what happens in the machine.