-
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…
-
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…
-
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…
-
How to scp from linux to windows
To use scp (Secure Copy Protocol) for transferring files from a Linux system to a Windows machine, you need to set up a few things on the Windows machine first, since Windows doesn’t have an scp server by default. Here’s…
-
Connection metric management
Here is how with some simple steps I changed the metric of an internet connection in order to give priority to a usb dongle so its set as the default interface for internet traffic in my personal laptop. The laptop’s…