Difference between revisions of "CMU OpenVPN EN"

From CMU ITSC Network
Line 40: Line 40:
 
[[File:11-windows-disconnect.PNG|link=]]
 
[[File:11-windows-disconnect.PNG|link=]]
  
== การใช้งานบนระบบปฏิบัติการ Ubuntu Linux ==
+
== Using on the Ubantu Linux operating system ==
=== การติดตั้ง ===
+
=== Installation ===
1. เปิด Terminal แล้วพิมพ์คำสั่ง
+
1. Open the Terminal then add the command
 
<syntaxhighlight lang=bash>
 
<syntaxhighlight lang=bash>
 
sudo apt install openvpn -y
 
sudo apt install openvpn -y
 
</syntaxhighlight>
 
</syntaxhighlight>
ระบุรหัสผ่านของตัวเองให้ถูกต้องแล้วระบบจะทำการติดตั้ง openvpn
+
Please specified your correctly password and the system will install openvpn
 
<br>
 
<br>
2. ทำการ download file สำหรับการเชื่อมต่อโดยใช้คำสั่งใน terminal
+
2. Download file for connecting by add the command in terminal
 
<syntaxhighlight lang=bash>
 
<syntaxhighlight lang=bash>
 
cd ~
 
cd ~
 
wget https://network.cmu.ac.th/cmu.ovpn
 
wget https://network.cmu.ac.th/cmu.ovpn
 
</syntaxhighlight>
 
</syntaxhighlight>
=== การเชื่อมต่อ ===
+
=== Connection ===
1. เปิด Terminal แล้วพิมพ์คำสั่ง
+
1. Open the terminal then add the command
 
<syntaxhighlight lang=bash>
 
<syntaxhighlight lang=bash>
 
cd ~
 
cd ~
 
sudo openvpn --config cmu.ovpn
 
sudo openvpn --config cmu.ovpn
 
</syntaxhighlight>
 
</syntaxhighlight>
ระบุรหัสผ่านของเครื่องเอง อีเมล@cmu.ac.th และรหัสผ่านตามลำดับจะพบหน้าต่าง terminal ดังภาพ<br>
+
Please specified the instrument password by @cmu.ac.th and the password respectively will find the terminal window as in the image
'''ให้เปิด terminal นี้ไว้ตลอดการใช้งาน OpenVPN''' และปิด terminal เมื่อต้องการตัดการเชื่อมต่อ<br>
+
Always '''open the terminal all time in using OpenVPN''' and you can close terminal anytime you want to disconnected
 +
 
 
[[File:01-ubuntu-teminal.PNG|link=]]
 
[[File:01-ubuntu-teminal.PNG|link=]]
  

Revision as of 07:46, 30 June 2020

Introduction

VPN.gif
VPN or (Virtual Private Network) is use tunneling techniques to run on the internet, no matter where you are as you can still use the University network. After you connect the VPN all data will run to the University network before going out to the internet. By reason of the VPN connection makes it as though use the university network, therefore allowing access to various resources which is restricted to use only at University such as the research resources, various of library article, or online studying teaching system you can be obtained from anywhere, which the VPN connection must be verified by an CMU IT account before connecting every time.


Please Note

In case of you already use University internal network such as Faculty internal network, CMU wireless network, or Jumbo Net what’s you no need to access connecting openvpn for use the internet because it is the same line and it going to increase the burden of openvpn servers, thus blocking the openvpn connection from the University network


Terms

  1. To use this research network is only for studying or searching or in the correctly way
  2. To use this research network will be saved using according to infringe law as Thailand’s 2007 Cybercrime
  3. In case of, if admin found that the usage affects to the system or the usage of other users, admin can terminate or decide to the user immediately without notice
  4. According to infringe law as Thailand’s 2007 Cybercrime, the account holder that infringe law must be law prosecuted regardless who uses the account, therefore the user must use their personal accounts. Do not distribute to others because of the account holder will solely responsible for the consequences
  5. To use this research network will used only for University allowing website for not to use the University resources in the wrong way
  6. To access CMU OpenVPN with the CMU account means you already accepted this terms

Using on the Windows operating system

Installation

1. You must download the installation from https://openvpn.net/community-downloads/ then enter Windows installer

2. To install, start downloaded installer by click the Next and Install following procedures

01-windows-install.PNG

02-windows-install.PNG

03-windows-install.PNG

04-windows-install.PNG

3. Next, download file for connecting from https://network.cmu.ac.th/cmu.ovpn

4.Then, copy file cmu.ovpn that you download into folder C:\Program Files\OpenVPN\config

05-windows-config-file.PNG

Connection

1. Open the OpenVPN GUI program

06-windows-openvpn-gui.PNG

2. Right click on system tray and then click on icon 07-windows-connect-icon.PNG enter your CMU Account and click OK'

070-windows-connect-icon.jpg

08-windows-connect.PNG

09-windows-auth.PNG

3. When the connecting is success, the icon will be a green 10-windows-auth-ok.PNG, the right clicks on icon, you can disconnect anytime

11-windows-disconnect.PNG

Using on the Ubantu Linux operating system

Installation

1. Open the Terminal then add the command

sudo apt install openvpn -y

Please specified your correctly password and the system will install openvpn
2. Download file for connecting by add the command in terminal

cd ~
wget https://network.cmu.ac.th/cmu.ovpn

Connection

1. Open the terminal then add the command

cd ~
sudo openvpn --config cmu.ovpn

Please specified the instrument password by @cmu.ac.th and the password respectively will find the terminal window as in the image Always open the terminal all time in using OpenVPN and you can close terminal anytime you want to disconnected

01-ubuntu-teminal.PNG

การใช้งานบนระบบปฏิบัติการ Android

การติดตั้ง

1. ทำการ Download application OpenVPN Connect จาก Playstore

OpenVPN Android install.png

2. ทำการ Download file สำหรับเชื่อมต่อจาก https://network.cmu.ac.th/cmu.ovpn

การเชื่อมต่อ

1. เข้าแอปพลิเคชันและเลือก OVPN Profile

OpenVPN Android 1.png

2. ไปยังโฟล์เดอร์ที่เก็บไฟล์ cmu.ovpn

OpenVPN Android 2.png

3. กดเลือกไฟล์ cmu.ovpn จากนั้นกด IMPORT

OpenVPN Android 3.png

4. กรอก CMU Account ที่ช่อง username จากนั้นกด ADD
OpenVPN Android 4.png

5. ทำการเชื่อมต่อโดยการกดไปบริเวณดังที่แสดงในรูป

OpenVPN Android 5.png

6. กรอกรหัสผ่านของ CMU account

OpenVPN Android 6.png

7. กด OK
OpenVPN Android 7.png

8. เมื่อเชื่อมต่อสำเร็จ จะปรากฎหน้าต่างดังรูป

OpenVPN Android 8.png

9. สามารถดูข้อมูลได้โดยการเลื่อนลง

OpenVPN Android 9.png

10. เมื่อต้องการตัดการเชื่อมต่อให้กดบริเวณดังที่แสดงในรูป

OpenVPN Android 10.png

11. กด OK เพื่อตัดการเชื่อมต่อ

OpenVPN Android 11.png

การใช้งานบนระบบปฏิบัติการ iOS

การติดตั้งและการเชื่อมต่อ

  1. เข้า App Store เพื่อติดตั้งโปรแกรม OpenVPN Connect

    IOS OVPN 1.jpg

  2. ทำการ download file สำหรับเชื่อมต่อจาก https://network.cmu.ac.th/cmu.ovpn

  3. จากนั้นเลือกคำสั่ง Open in "OpenVPN"

    IOS OVPN 2.jpg

  4. บนหน้าต่าง Import Profile เลือกคำสั่ง ADD

    IOS OVPN 3.jpg

  5. บนหน้าต่าง Imported Profile ระบุ CMU Account ที่ช่อง Username จากนั้นกด ADD และ Allow

    IOS OVPN 4.jpg IOS OVPN 5.jpg

  6. บนหน้าต่าง OVPN Profiles กด Turn on เพื่อใช้งาน จากนั้นกรอก password ของ CMU Account กด "OK" และ "Yes" ดังรูป

    IOS OVPN 6.jpg IOS OVPN 7.jpg IOS OVPN 8.jpg

  7. เมื่อเชื่อมต่อสำเร็จจะปรากฏหน้าต่างดังรูป

    IOS OVPN 9.jpg

  8. เมื่อต้องการเลิกใช้งานให้กด Turn off และกด OK เพื่อตัดการเชื่อมต่อ

    IOS OVPN 10.jpg IOS OVPN 11.jpg

การใช้งานบนระบบปฏิบัติการ macOS

การติดตั้ง

  1. Download โปรแกรม Tunnelblick จาก tunnelblick และคลิก Open ที่ file.dmg

    VPNOSX 1.png

  2. จากนั้นทำการ Double Click ที่ icon Tunnelblick

    VPNOSX 2.png

  3. หากปรากฏหน้าต่างดังภาพ ให้เลือก Open

    VPNOSX 3.png

  4. กรอกรหัสผ่านเครื่องคอมพิวเตอร์ของท่าน กรณีมีการติดตั้งโปรแกรมใหม่ในเครื่อง หลังจากนั้นกด OK

    VPNOSX 4.png

  5. ในหน้าต่าง Welcome to Tunnelblick เลือก I have configuration files

    VPNOSX.png

การเชื่อมต่อ

  1. ทำการ download file สำหรับเชื่อมต่อจาก https://network.cmu.ac.th/cmu.ovpn

  2. คลิกขวาที่ file ที่ download มาแล้วเลือก Open with Tunnelblick

    VPNOSX 5.png

  3. ในหน้าต่าง Install Configuration For All User เลือก Only Me

    VPNOSX 6.png

  4. กรอกรหัสผ่านเครื่องคอมพิวเตอร์ของท่าน กรณีมีการเปลี่ยนแปลง Config ในเครื่อง หลังจากนั้นกด OK

    VPNOSX 7.png

  5. บน Task bar คลิกที่ icon Tunnelblick เลือก Connect CMU

    VPNOSX 8.png

  6. ระบุ CMU Account ที่ได้รับจากมหาวิทยาลัย จากนั้นกด OK

    VPNOSX 9.png

  7. หากปรากฏหน้าต่างดังภาพ เลือก Do not warn about this again จากนั้นคลิก OK

    VPNOSX 10.png

  8. เมื่อเชื่อมต่อสำเร็จจะปรากฏหน้าต่างดังรูป

    VPNOSX 11.png

  9. เมื่อต้องการเลิกใช้งานให้เลือก Disconnect CMU เพื่อตัดการเชื่อมต่อ

    VPNOSX 12.png

วิธีแก้ปัญหาเมื่อพบ Errors

OpenVPN Error : There are no TAP-Windows adapters on this system.

  1. เมื่อพบ error ดังรูป
    Addtap01.jpg

  2. ให้ไปที่ path C:\Program Files \ TAP-Windowns \ bin\ addtap.bat จากนั้นคลิกขวาที่ addtap.bat เลือก Run as administrator แล้วลองเชื่อมต่อ OpenVPN อีกครั้ง

    Addtap02.jpg

OpenVPN Error : All TAP-Windows adapters on this system are currently in use

Solution 1 : Re-enable the adapter

  1. ไปที่ Control Panel เลือก Network and Internet เลือก Network and Sharing Center เลือก Change adapter settings. หา icon ที่มีคำว่า TAP-Windows Adapter แสดงอยู่ จากนั้นคลิกขวาที่ icon เลือก Disable และคลิกขวาที่ icon เดิมอีกครั้งเลือก Enable



ReEnable.jpg

Solution 2 : reinstall the TAP driver

  1. ไปที่ path C:\ Program Files \ TAP-Windows คลิกขวาที่ Unintall เลือก Run as administrator

    Tapdriver.jpg

  2. ทำการ Restart Windows
  3. จากนั้นดาวน์โหลด the Tab driver จาก OpenVPN repository และทำการติดตั้ง โดยคลิกขวา เลือก Run as adminnistrator

    Tapdriver01.png

link ที่เกี่ยวข้อง

ติดต่อสอบถามเพิ่มเติม

Onestop Service สำนักบริการเทคโนโลยีสารสนเทศ มหาวิทยาลัยเชียงใหม่
โทรศัพท์ : 0-5394-3827
อีเมล : onestop@cmu.ac.th