Clean, minimal, self-hosted WireGuard setup with: Full tunnel support NAT for internet access Multi-user capability Per-user access control via firewall 0. Assumptions Public interface: eth0 VPN subnet: 10.10.10.0/24 Server is…
I have nginx configured already to drop connections from non-US based IP addresses using the libnginx-mod-geoip module. Taking this a step further, I decided to block all non-US based IP…
This command is a neat way to automate extracting multiple zip files into directories named after the files themselves. It avoids the need to unzip files manually one…
On my server, I have PHP 5.6 to 8.1 installed and use the versions for various testing purposes. To change the memory_limit across all versions as simply as…
It seems that ISPConfig3 checks for entropy availability to be below 200 and also 400 per the following file, /usr/local/ispconfig/server/bind_plugin.inc.php. Line 93 and line 210 check for entropy…
Took me a minute to figure this out but it works. Given the following string, I want to replace { and } with [ and ] keeping each…
I'm not sure why systemd doesn't remove the service, but to do so you can run through the following commands. Also check /etc/init.d/[servicename] as there may be a…
Input Validation Whitelist Protection Cacti Data Input methods that call a script can be exploited in ways that a non-administrator can perform damage to either files owned by…
To test SMTP auth with StartTLS, I used the following method. Base64 encode the username and password. echo -ne "yourpassword" | base64 eW91cnBhc3N3b3Jk echo -ne "your@email.com" | base64…
I have an old Lenovo Yoga 2 (i5-5400u, 4GB RAM, 128GB SSD). This 2-in-1 system does not have an ethernet port and during Debian installation using the netinstall…
By default, Zentyal creates a Home Folder for each user created through the web interface and not through Active Directory Users & Computers (dsa.msc). To disable this action,…
Some notes on increasing LVM partition in Linux. Terminology Physical Volume (PV): This can be created on a whole physical disk (think /dev/sda) or a Linux partition. Volume Group…
grep -E -o "[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+.[A-Za-z]{2,6}"
I recently used GParted to delete a Swap partition on my Linux server so I could extend my primary partition. In doing so, the UUID changed of the…
To fix the error message SMBus Host Controller not enabled! message, you can blacklist the module from loading. I use Debian 9; check with your distribution for specifics,…