I use Ubuntu’s Uncomplicated firewall because it is available on Ubuntu and it's very simple.
if ufw is not installed by default be sure to install it first.
#!/bin/sh | |
# synology openvpn restart script | |
# get config and name here: | |
# cat /usr/syno/etc/synovpnclient/openvpn/ovpnclient.conf | |
if [[ `ifconfig | grep tun0 | wc -l` -eq 0 ]]; then | |
echo "Offline, restart" | |
echo conf_id=oXXXXXXXX > /usr/syno/etc/synovpnclient/vpnc_connecting | |
echo conf_name=XXXXXXXXXX >> /usr/syno/etc/synovpnclient/vpnc_connecting | |
echo proto=openvpn >> /usr/syno/etc/synovpnclient/vpnc_connecting |
#!/bin/bash | |
####################### | |
# Setup: | |
# 1. Setup a VPN in the Synology web interface | |
# 2. Log in via SSH | |
# 3. Take a look at /usr/syno/etc/synovpnclient/openvpn/ovpnclient.conf | |
# 4. Find your VPN entry and fill in the variables below. | |
# ID = the CLIENT ID, shown between square brackets, e.g. "[o123456789]" | |
# CONFNAME = value of "conf_name" | |
# |
For every developer, terminal is their weapon, so why don't you customize it to become a powerful, and a beautiful weapon?
Powerline style refers to a terminal style that helps developer to keep track of their workflow easily, allows them to have perfect visual on current directories and new changes. It is also git recognizable, and failure detector that will help your development process becomes more interact and much faster.
In this guideline, I will introduce you with 2 smart shells: Zsh
and Fishshell
. Both are perfect for the development jobs due to its rich of resources, and user-friendly.
iperf3
serverwg-quick down wg0
/etc/wireguard/wg0.conf
file#!/bin/bash | |
####################### | |
# Setup: | |
# 1. Setup a VPN in the Synology web interface | |
# 2. Log in via SSH | |
# 3. Take a look at /usr/syno/etc/synovpnclient/openvpn/ovpnclient.conf | |
# 3. Find your VPN entry and fill in the variables below. | |
# ID = the CLIENT ID, shown between square brackets, e.g. "[o123456789]" | |
# CONFNAME = value of "conf_name" | |
# |