Dienstag, 6. Februar 2024

Fail2Ban manually set ban IP

 Manually ban an IP:


fail2ban-client set <your jail_name> banip xx.xx.xx.xx

Sonntag, 28. Januar 2024

Samstag, 27. Januar 2024

MacFuse and Sonoma 14.3

 in case you can't start MacFUSE after update MAC Sonoma 14.2 to 14.3


sudo /usr/bin/kmutil load -p /Library/Filesystems/macfuse.fs/Contents/Extensions/14/macfuse.kext

Dienstag, 16. Januar 2024

Exchange 2013 2019 Error: "Your request couldn't be completed. Please try again in a few minutes"

In case you have no access to Exchange Databases

try:

https://<Exchange Server 2019>/ecp/?ExchClientVer=15.2

Freitag, 26. Mai 2023

SAH512 password in python

 in case you need to update a mysql db with a SHA512 password:


Install the correct lib: sudo apt-get install -y python-passlib


then:

python -c "from passlib.hash import sha512_crypt; import getpass; print sha512_crypt.encrypt(getpass.getpass())"

Montag, 22. Mai 2023

Tomcat and certbot

 In case you need an automated update of your let's encrypt certs:

make a script (best: put in in cron)


#!/bin/bash


logfile="/var/log/renew_$(date -Is).log"

echo "$(date +%T):" >$logfile

/usr/bin/certbot renew --quiet

cp /etc/letsencrypt/live/YOURDOMAIN.COM/{cert,chain,privkey}.pem /opt/tomcat/latest/conf/

chown tomcat:tomcat /opt/tomcat/latest/conf/*.pem




Mittwoch, 17. Mai 2023

VMWARE esxi 8 certificates

 In case you want to change the certificate:

change to

/etc/vmware/ssl 


make a backup of rui.crt and rui.key


delete rui.crt and rui.key


copy your own certs to rui.crt and rui.key


Restart the proxy: /etc/init.d/rhttpproxy restart



In case you have trouble re-create the default certs: /sbin/create_certificates