Created
August 6, 2020 18:16
-
-
Save mcprat/a9dc667169a054703763529e7f68c326 to your computer and use it in GitHub Desktop.
ASH shell Openwrt Openvpn server setup process
This file contains hidden or 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
cd /etc/easy-rsa/pki | |
export EASYRSA_PKI="/etc/easy-rsa/pki" | |
export EASYRSA_REQ_CN="organization" | |
easyrsa init-pki | |
easyrsa gen-dh | |
easyrsa build-ca nopass | |
easyrsa build-server-full organization nopass | |
easyrsa build-client-full stream | |
easyrsa build-client-full program | |
cd /etc/openvpn | |
openvpn --genkey --secret hmac.key | |
nano server.conf | |
cp /etc/easy-rsa/pki/ca.crt /etc/openvpn | |
cp /etc/easy-rsa/pki/private/organization.key /etc/openvpn | |
cp /etc/easy-rsa/pki/dh.pem /etc/openvpn | |
/etc/init.d/openvpn restart | |
netstat -plunt | grep vpn | |
cd /etc/easy-rsa/pki | |
export EASYRSA_PKI="/etc/easy-rsa/pki" | |
export EASYRSA_REQ_CN="organization" | |
easyrsa build-client-full michael-pc | |
easyrsa build-client-full michael-tab | |
cd /etc/openvpn | |
nano config.sh | |
nano client.confbase | |
chmod 755 config.sh | |
./config.sh stream | |
./config.sh program | |
./config.sh michael-pc | |
./config.sh michael-tab |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment