Author: webed
-
GnuDIP
GnuDIP2 can be used to update your ip address. The following configuration is going to be tailored to manage the free ddns service provided in ddns.freedombox.org or compatible ddns services. Before starting you need to already have a gnudip account and install the curl package (sudo apt install curl). Download the latest version of GnuDIP…
-
cron jobs cheat sheet
Cron Job Overview Cron jobs are scheduled tasks that run at fixed times, dates, or intervals on a Unix-based system. The cron daemon (crond) handles these tasks, which are specified in a file called the crontab. Basic Cron Syntax Cron jobs are scheduled in the crontab file with this format: * * * * *…
-
Secure access OpenWRT
For openwrt devices exposed directly to the internet such as in a DMZ and need to have ssh access without compromising too much, we will have to follow these steps to achieve some basic security. Internet traffic is very much infested with bots trying to brute force into systems so this is a small but…
-
Simple contact form with html and php
This code is a PHP-based contact form processor that sends emails using the msmtp command. It validates and sanitizes user input, composes an email with the user’s input, and sends it to a hardcoded recipient email address. The code prioritizes security and includes error handling and debugging mechanisms. To use this code, you’ll need to…
-
Companion script for cloudflare-ddns
Unfortunatelly cloudflare-ddns package in the debian repo can not handle more than 1 domain to update its DNS records. The following script will edit the config.ini file used for cloudflare-ddns to add the domain and the api tocken necessary for making updates. It will cycle all domains included in the array DOMAINS. Additionally, a cron…