Skip to content

Instantly share code, notes, and snippets.

@Suzhou65
Suzhou65 / ConoHa-Setup1.md
Last active September 15, 2020 09:33
Ubuntu 14.04 install OpenVPN

Install OpenVPN Access Server

Install Iptables

sudo apt-get install iptables -y

Download OpenVPN Access Server package and install

wget https://swupdate.openvpn.org/as/openvpn-as-2.0.17-Ubuntu14.amd_64.deb 
dpkg -i openvpn-as-2.0.17-Ubuntu14.amd_64.deb
@Suzhou65
Suzhou65 / ConoHa-Setup2.md
Created September 14, 2020 13:07
Ubuntu 14.04 OpenVPN configuration

OpenVPN Access Server configuration

Check user and group

cat /etc/group
cat /etc/passwd

Add user

@Suzhou65
Suzhou65 / ConoHa-shadowsocks-Setup1.md
Last active September 16, 2020 05:31
Ubuntu 14.04 install Shadowsocks

Install Shadowsocks

Download installation script from GitHub

wget –no-check-certificate https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocks.sh

Start install

chmod +x shadowsocks.sh
./shadowsocks.sh
@Suzhou65
Suzhou65 / ConoHa-shadowsocks-Setup2.md
Created September 16, 2020 05:57
Ubuntu 14.04 Shadowsocks configuration

Shadowsocks Server configuration

sudo cd /etc/

Backup configuration

sudo cp shadowsocks.json shadowsocks.local
@Suzhou65
Suzhou65 / ConoHa-shadowsocks-Setup3.md
Created September 16, 2020 06:02
Ubuntu 14.04 Shadowsocks control

How to control Shadowsocks Service

Start service

service shadowsocks start

Stop service

service shadowsocks stop    
@Suzhou65
Suzhou65 / Raspbian-PiVPN-Setup1.md
Created September 16, 2020 08:14
Raspbian install PiVPN prepare

Raspbian install PiVPN

Environment prepare

sudo apt-get update
sudo apt-get install vim -y
sudo apt-get install nmon -y
sudo apt-get install vnstat -y
sudo apt-get install watchdog -y
@Suzhou65
Suzhou65 / Raspbian-PiVPN-Setup2.md
Last active September 17, 2020 06:49
Raspbian install PiVPN

Raspbian install PiVPN

Download and running installation script from PiVPN website

curl -L https://install.pivpn.io | bash

Following installation will be like this:

  • PiVPN will warn you it need Static IP
  • Confirm Static IP address
  • Choosing local user
@Suzhou65
Suzhou65 / Raspbian-PiVPN-Setup3.md
Created September 17, 2020 08:56
Raspbian control PiVPN

How to control PiVPN Service

pivpn

This will display the commonds you need

Add new users

pivpn add 
@Suzhou65
Suzhou65 / Raspbian-PiVPN-Setup4.md
Created September 17, 2020 09:17
Fix PolarSSL error

PolarSSL error

When you are using OpenVPN official iOS App, OpenVPN Connect, you may seen this error massage

PolarSSL: error parsing config private key : PKCS5 - Requested encryption or digest alg not available

How to Fix it

cd /etc/openvpn/easy-rsa
sudo ./easyrsa set-rsa-pass opvnuser
@Suzhou65
Suzhou65 / ConoHa-Hentai-Setup1.md
Created September 17, 2020 13:19
Ubuntu 16.04 install Hentai@Home

Ubuntu install Hentai@Home

Environment check

Network check

ping google.com
ping 8.8.8.8

Speed check