Mark Ku's Blog

First, Download open vpn certificate from your firewall(SOPHOS)

Download vpn configuration
Download vpn configuration

Copy ssl vpn configuration to “/etc/openvpn”

sudo cp sslvpn-mark.ku-client-config.ovpn /etc/openvpn/vpn.ovpn

Create vpn account and password file for open vpn connection

sudo vim /etc/openvpn/credentials.txt

credentials.txt

vpn account
vpn password

Grant permissions

sudo chmod 600 /etc/openvpn/credentials.txt sudo chown root:root /etc/openvpn/credentials.txt

Install open vpn

sudo apt update
sudo apt upgrade
sudo apt install openvpn

Test the VPN is working

sudo openvpn --config /etc/openvpn/vpn.ovpn --auth-user-pass /etc/openvpn/credentials.txt
sudo vim /etc/systemd/system/openvpn.service
[Unit]
Description=OpenVPN client service
After=network.target

[Service]
Type=simple
ExecStart=/usr/sbin/openvpn --config /etc/openvpn/vpn.ovpn --auth-user-pass /etc/openvpn/credentials.txt
ExecStop=/usr/sbin/openvpn --config /etc/openvpn/vpn.ovpn --auth-user-pass /etc/openvpn/credentials.txt --disconnect
Restart=on-failure

[Install]
WantedBy=multi-user.target 
sudo systemctl enable openvpn.service
sudo systemctl start openvpn.service
sudo systemctl status openvpn.service
sudo reboot

Final

You can try to connect your vpn network's application

Author

Mark Ku

擁有 10+ 年經驗的資深軟體工程師,現為 AI 應用 Builder,專注於大型平台架構與簡化複雜系統設計,從電商系統到訂閱與收費平台,結合 AI Agent、AI 整合與自動化開發,打造高效率且可持續演進的產品技術基礎。Read More

Found this useful?

The author's free tools, daily podcasts and newsletter are all here.

Mark Ku · This article is licensed under CC BY 4.0. Credit the author and link back to the original when reusing it.

Comments

Subscribe to Newsletter

Subscribe to get new posts delivered instantly — never miss a tech share.

By submitting, you agree to receive emails. You can anytime.

Popular Posts

View all
Mark Ku
··602

Oracle Cloud Always Free Tier: Linux Host and Static IP for a $0 Cloud Solution

Oracle Cloud Always Free Tier: Linux Host and Static IP for a $0 Cloud Solution
Mark Ku
··492

Say Goodbye to Postman's Fee Trap! A Hands-on Guide to Bruno, the Open-Source Git-Native API Testing Powerhouse.

Say Goodbye to Postman's Fee Trap! A Hands-on Guide to Bruno, the Open-Source Git-Native API Testing Powerhouse.
Mark Ku
··334

A Free, Open-Source, Notion-like Knowledge Base — A Complete Guide to Deploying and Backing Up Outline Wiki

A Free, Open-Source, Notion-like Knowledge Base — A Complete Guide to Deploying and Backing Up Outline Wiki
Mark Ku
··268

Training Your Own AI Voice: Hardware Requirements, Open-Source Model Comparison, and LoRA Fine-Tuning

Training Your Own AI Voice: Hardware Requirements, Open-Source Model Comparison, and LoRA Fine-Tuning
Mark Ku
··218

Building an Efficient API Management Platform: Deploying Kong Gateway from Scratch - Part 1

Building an Efficient API Management Platform: Deploying Kong Gateway from Scratch - Part 1
Mark Ku
··217

Setting Up Samba on Ubuntu to Share Folders with Windows 11

Setting Up Samba on Ubuntu to Share Folders with Windows 11