- Set SMTP
/tool e-mail
set address=smtp.gmail.com from=___@gmail.com port=587 tls=starttls \
user=___@gmail.com password=___
iperf3
serverwg-quick down wg0
/etc/wireguard/wg0.conf
file# Put this function to your .bashrc file. | |
# Usage: mv oldfilename | |
# If you call mv without the second parameter it will prompt you to edit the filename on command line. | |
# Original mv is called when it's called with more than one argument. | |
# It's useful when you want to change just a few letters in a long name. | |
# | |
# Also see: | |
# - imv from renameutils | |
# - Ctrl-W Ctrl-Y Ctrl-Y (cut last word, paste, paste) |
#!/bin/sh -eu | |
# Downloads, verifies and unpacks Ubuntu mini.iso fixing lack of UEFI support | |
# See https://bugs.launchpad.net/ubuntu/+source/debian-installer/+bug/1429030 | |
# Thanks to https://www.nemotos.net/?p=2057 | |
require() { | |
hash "$@" || die "Some of the required commands are missing" | |
} |
$ sudo apt-get install linux-headers-$(uname -r) | |
$ sudo add-apt-repository ppa:wireguard/wireguard | |
$ sudo apt-get update | |
$ sudo apt-get install wireguard | |
$ sudo modprobe wireguard | |
$ sudo mkdir /etc/wireguard | |
$ (umask 077 && printf "[Interface]\nPrivateKey = " | sudo tee /etc/wireguard/wg0.conf > /dev/null) | |
$ wg genkey | sudo tee -a /etc/wireguard/wg0.conf | wg pubkey | sudo tee /etc/wireguard/publickey | |
$ sudo nano /etc/wireguard/wg0.conf |
#!/bin/bash | |
set -euf -o pipefail | |
## Prerequisites | |
# This script assumes lexicon-dns to be installed and configured for your specific DNS provider | |
# for the Let's Encrypt DNS-challenge. | |
# Further it is assumed that the lexicon-dns certbot-hook is installed under ${CONF_BASE_PATH}/renewal-hooks/manual/lexicon.sh . | |
# The lexicon-dns hook for certbot can be downloaded from https://github.com/AnalogJ/lexicon/blob/master/examples/certbot.default.sh . | |
# Make sure to adjust the variables in the section "Configuration" according to your installation. |
esphomeyaml: | |
name: test | |
platform: ESP8266 | |
board: d1_mini | |
wifi: | |
ssid: !secret wifi_ssid | |
password: !secret wifi_password | |
manual_ip: | |
static_ip: 192.168.1.31 |
Install WireGuard via whatever package manager you use. For me, I use apt. | |
$ sudo add-apt-repository ppa:wireguard/wireguard | |
$ sudo apt-get update | |
$ sudo apt-get install wireguard | |
MacOS | |
$ brew install wireguard-tools | |
Generate key your key pairs. The key pairs are just that, key pairs. They can be |
sudo su | |
cd /root/ | |
wget https://www.softether-download.com/files/softether/v4.34-9745-rtm-2020.04.05-tree/Linux/SoftEther_VPN_Server/32bit_-_ARM_EABI/softether-vpnserver-v4.34-9745-rtm-2020.04.05-linux-arm_eabi-32bit.tar.gz | |
tar xzf softether-vpnserver-v4.34-9745-rtm-2020.04.05-linux-arm_eabi-32bit.tar.gz && rm softether-vpnserver-v4.34-9745-rtm-2020.04.05-linux-arm_eabi-32bit.tar.gz | |
cd vpnserver && sudo make | |
cd .. | |
sudo mv vpnserver /usr/local && cd /usr/local/vpnserver/ | |
sudo chmod 600 * |