From: Mazet Laurent Date: Wed, 2 Jul 2025 13:58:36 +0000 (+0200) Subject: script to validate hardware cm X-Git-Tag: v1.0~1 X-Git-Url: https://secure.softndesign.org/git/?a=commitdiff_plain;h=527eef302c7e9a9204393fe805b717f45a5728e8;p=ulvpn.git script to validate hardware cm --- diff --git a/ulvpn.sh b/ulvpn.sh new file mode 100755 index 0000000..2e06dbf --- /dev/null +++ b/ulvpn.sh @@ -0,0 +1,105 @@ +#!/bin/bash + +MTU=1439 +[ $# -gt 0 ] && MTU=$1 + +TEST=$(basename $0 .sh) + +LRED=enp0s9://78:a1:35:10:10:10 +LBLK=enp0s8://78:a1:35:20:20:20 +RRED=enp0s9://78:a1:35:01:01:01 +RBLK=enp0s8://78:a1:35:02:02:02 + +LOOP=lo://00:00:00:00:00:00 + +CRYPTOMOD=./cryptomod.exe +SIMULATOR=./simulator.exe +VPN=./ulvpn.exe + +ulimit -c unlimited + +launch() { echo -ne "\033[0;1m$@\033[0;0m: "; } +title() { echo -e "\033[0;1m$@\033[0;0m"; } +pass() { echo -e "\033[1;32m$@\033[0;0m"; } +warn() { echo -e "\033[1;33m$@\033[0;0m"; } +fail() { echo -e "\033[1;31m$@\033[0;0m"; } + +if [ ! -f init.done ]; then + launch create configuration files + + dd if=/dev/random of=crypto.key bs=1 count=32 2>/dev/null + dd if=/dev/random of=prng.key bs=1 count=16 2>/dev/null + + cat > provisioning.eth < plaintext.txt <