-
Add the WireGuard apt repo:
sudo add-apt-repository ppa:wireguard/wireguard sudo apt-get update
-
Install WireGuard:
sudo apt install wireguard
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/local/env bash | |
# Register vultr.com with free credit https://www.vultr.com/?ref=8221367-4F | |
# Create vps with 5usd price | |
# Tested on Ubuntu 18.04, Debian 9.6 | |
# How to... | |
# 1. Save this file as softether-installer.sh | |
# 2. chmod +x softether-installer.sh | |
# 3. Run bash file | |
# > ./softether-installer.sh | |
# Or just |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
((node_filesystem_size_bytes{mountpoint="/"} - node_filesystem_free_bytes{mountpoint="/"}) / node_filesystem_size_bytes{mountpoint="/"} ) * 100 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
((node_memory_MemTotal_bytes - node_memory_MemFree_bytes - node_memory_Cached_bytes - node_memory_Buffers_bytes ) / node_memory_MemTotal_bytes) * 100 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
100 - (avg by (job) (irate(node_cpu_seconds_total{mode="idle"}[5m])) * 100) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected-mode no | |
port 6379 | |
tcp-backlog 511 | |
timeout 0 | |
tcp-keepalive 300 | |
daemonize yes | |
supervised systemd | |
pidfile /var/run/redis/redis-server.pid | |
loglevel notice | |
logfile /var/log/redis/redis-server.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# configure nanorc | |
# uncomment set constantshow | |
sed -i.bak -e '/^#.*constantshow /s/^#//' | |
# comment nowrap | |
sed -i.bak -e '/^.*set nowrap/s//#&/' | |
# un-comment set softwrap | |
sed -i.bak -e '/^#.*softwrap /s/^#//' |
- Create a routing table entry:
echo 200 >> /etc/iproute2/rt_tables
- Add a source routing rule:
ip rule add from 10.100.100.0/24 lookup src_rt
- Add a default gateway to the routing table:
ip route add default dev wg0 table src_rt
- Add a local network route to the routing table:
ip route add 10.100.100.0/24 dev ens34 table src_rt