Difference between revisions of "CMU OpenVPN EN"

From CMU ITSC Network
 
(39 intermediate revisions by 2 users not shown)
Line 5: Line 5:
  
  
== ข้อควรทราบ ==
+
== Please Note ==
กรณีที่ใช้งานเครือข่ายภายในมหาวิทยาลัยอยู่แล้ว เช่น เครือข่ายภายในคณะ เครือข่ายไร้สายมหาวิทยาลัยเชียงใหม่ Jumbo Net ท่านไม่จำเป็นต้องเชื่อมต่อ openvpn เพื่อใช้งาน internet เนื่องจากออกเส้นทางเดียวกันอยู่แล้ว และจะเป็นการเพิ่มภาระให้กับ openvpn server โดยไม่จำเป็น '''จึงได้ทำการปิดกั้นการเชื่อมต่อ openvpn จากเครื่อข่ายภายในมหาวิทยาลัย'''
+
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
  
== ข้อตกลงการใช้งาน ==
 
# การใช้งานระบบเครือข่ายงานวิจัยนี้ ใช้เพื่อการศึกษาค้นคว้า ในทางที่เป็นประโยชน์เท่านั้น
 
# การใช้งานระบบเครือข่ายงานวิจัยนี้ จะถูกบันทึกการใช้งานไว้ตามกฎหมาย พรบ.คอมพิวเตอร์ฯ พ.ศ. 2550
 
# ในกรณีที่พบว่ามีการใช้งานที่เกิดผลกระทบต่อระบบหรือการใช้งานของผู้ใช้งานอื่น ผู้ดูแลระบบสามารถยุติหรือยกเลิกการใช้งานของผู้ใช้นั้นได้ทันทีโดยไม่ต้องแจ้งให้ทราบล่วงหน้า
 
# การใช้งานที่ละเมิดต่อกฎหมาย พรบ.คอมพิวเตอร์ฯ พ.ศ. 2550 เจ้าของบัญชีผู้ใช้ที่ละเมิดกฎหมาย จะต้องถูกดำเนินคดีตามกฎหมาย ไม่ว่าจะให้ใครใช้บัญชีผู้ใช้ก็ตาม ดังนั้นผู้ใช้ต้องใช้บัญชีผู้ใช้เป็นการส่วนตัว ไม่แจกจ่ายให้ผู้อื่น เนื่องด้วยเจ้าของบัญชีต้องรับผิดชอบผลอันเกิดจากการใช้บัญชีผู้ใช้แต่เพียงผู้เดียว
 
# การใช้งานผ่านระบบเครือข่ายงานวิจัยนี้ จะใช้งานได้เฉพาะเว็บไซต์ที่ทางมหาวิทยาลัยอนุญาตเท่านั้น เพื่อไม่ให้นำทรัพยากรของทางมหาวิทยาลัยไปใช้ในทางที่ไม่ก่อให้เกิดประโยชน์
 
# การเข้าสู่ระบบ CMU OpenVPN ด้วยบัญชี้ผู้ใช้มหาวิทยาลัยเชียงใหม่ถือว่าเป็นการยอมรับข้อตกลงการใช้งานนี้โดยปริยาย
 
  
== การใช้งานบนระบบปฏิบัติการ Windows ==
+
== Terms  ==
=== การติดตั้ง ===
+
# To use this research network is only for studying or searching or in the correctly way
1. download ตัวติดตั้งจาก [https://openvpn.net/community-downloads/ https://openvpn.net/community-downloads/] เลือก Windows installer<br><br>
+
# To use this research network will be saved using according to infringe law as Thailand’s 2007 Cybercrime
2. ทำการติดตั้งโดยเปิดตัวติดตั้งที่ download มาโดยการกด Next และ Install ตามขั้นตอน<br><br>
+
# 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
[[File:01-windows-install.PNG|link=]]<br><br>
+
# 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
[[File:02-windows-install.PNG|link=]]<br><br>
+
# To use this research network will used only for University allowing website for not to use the University resources in the wrong way
[[File:03-windows-install.PNG|link=]]<br><br>
+
# To access CMU OpenVPN with the CMU account means you already accepted this terms
[[File:04-windows-install.PNG|link=]]<br><br>
 
  
3. ทำการ download file สำหรับเชื่อมต่อจาก [https://network.cmu.ac.th/cmu.ovpn https://network.cmu.ac.th/cmu.ovpn] <br><br>
+
== Using on the Windows operating system ==
4. copy file '''cmu.ovpn''' ที่ download มาไปยัง folder '''C:\Program Files\OpenVPN\config''' <br><br>
+
=== Installation ===
[[File:05-windows-config-file.PNG|link=]]
+
1. You must download the installation from [https://openvpn.net/client-connect-vpn-for-windows/ OpenVPN Connect for Windows] then enter Windows installer <br><br>[[File:Win ovpn connect 01.png|link=]]<br><br>  
=== การเชื่อมต่อ ===
+
2. To install, start downloaded installer by click Install and Next following procedures<br><br>
1. เปิดโปรแกรม OpenVPN GUI<br><br>
+
[[File:Win ovpn connect 09.png|link=]]<br><br>
[[File:06-windows-openvpn-gui.PNG|link=]]<br><br>
+
[[File:Win ovpn connect 06.png|link=]]<br><br>
2. คลิกที่ system tray แล้วคลิกขวาที่ icon [[File:07-windows-connect-icon.PNG|link=]] กด Connect แล้วใส่ '''CMU Account''' จากนั้นกด '''OK''' <br><br>
+
[[File:Win ovpn connect 07.png|link=]]<br><br>
[[File:070-windows-connect-icon.jpg|link=]]<br><br>
+
[[File:Win ovpn connect 08.png|link=]]<br><br>
[[File:08-windows-connect.PNG|link=]]<br><br>
+
[[File:Win ovpn connect 10.png|link=]]<br><br>
[[File:09-windows-auth.PNG|link=]]<br><br>
 
3. เมื่อเชื่อมต่อสำเร็จไอคอนจะเป็นสีเขียว [[File:10-windows-auth-ok.PNG|link=]] ให้คลิกขวาที่ icon แล้ว Disconnect เมื่อต้องการยกเลิกการเชื่อมต่อ<br><br>
 
[[File:11-windows-disconnect.PNG|link=]]
 
  
== การใช้งานบนระบบปฏิบัติการ Ubuntu Linux ==
+
=== Connection ===
=== การติดตั้ง ===
+
1.Download file for connecting from [https://network.cmu.ac.th/cmu.ovpn https://network.cmu.ac.th/cmu.ovpn] <br><br>
1. เปิด Terminal แล้วพิมพ์คำสั่ง
+
2.Next ,Open the OpenVPN Connect program,choose '''FILE''' then browse to '''cmu.ovpen''' file,you just downloaded.<br><br>
 +
[[File:Win open connect 11.png|link=]]<br><br>
 +
3.Enter your '''CMU Account''' <u>''If you want to remember password for the next time , select Save Password (Recommended for Personal Devices Only)''</u> Select '''Connect after import''' , then press '''Add'''<br/><br/> [[File:Openmac11.png | link=]] <br/><br/>
 +
4. When the connecting is success, OpenVPN Connect appears as below <br/><br/> [[File:Openmac12.png | link=]] <br/><br/>
 +
5. To disconnect ,turn the green botton off and press '''OK'''<br/><br/> [[File:Openmac13.png | link=]] [[File:Openmac14.png | link=]] <br/><br/>
 +
 
 +
== Using on the Ubantu Linux operating system ==
 +
=== Installation ===
 +
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=]]
  
== การใช้งานบนระบบปฏิบัติการ Android ==
+
== Using on the Android ==
=== การติดตั้ง ===
+
=== Installation ===
1. ทำการ Download application OpenVPN Connect จาก Playstore <br><br>
+
1. Download the OpenVPN Connect application from Playstore<br><br>
 
[[File:OpenVPN_Android_install.png|link=| border]] <br><br>
 
[[File:OpenVPN_Android_install.png|link=| border]] <br><br>
2. ทำการ Download file สำหรับเชื่อมต่อจาก [https://network.cmu.ac.th/cmu.ovpn https://network.cmu.ac.th/cmu.ovpn] <br><br>
+
2. 2. Download file for connecting from  [https://network.cmu.ac.th/cmu.ovpn https://network.cmu.ac.th/cmu.ovpn] <br><br>
  
=== การเชื่อมต่อ ===
+
=== Connection ===
1. เข้าแอปพลิเคชันและเลือก OVPN Profile <br><br>
+
1. Getting to the application and choose OVPN Profile<br><br>
 
[[File:OpenVPN_Android_1.png|link=| border]] <br><br>
 
[[File:OpenVPN_Android_1.png|link=| border]] <br><br>
2. ไปยังโฟล์เดอร์ที่เก็บไฟล์ cmu.ovpn <br><br>
+
2. Then going to the folder cmu.ovpn file<br><br>
 
[[File:OpenVPN_Android_2.png|link=| border]] <br><br>
 
[[File:OpenVPN_Android_2.png|link=| border]] <br><br>
3. กดเลือกไฟล์ cmu.ovpn จากนั้นกด IMPORT<br><br>
+
3. Enter cmu.ovpn file then click IMPORT<br><br>
 
[[File:OpenVPN_Android_3.png|link=| border]] <br><br>
 
[[File:OpenVPN_Android_3.png|link=| border]] <br><br>
4. กรอก CMU Account ที่ช่อง username จากนั้นกด ADD <br>
+
4. Add your CMU Account at username <br>
 
[[File:OpenVPN_Android_4.png|link=| border]] <br><br>
 
[[File:OpenVPN_Android_4.png|link=| border]] <br><br>
5. ทำการเชื่อมต่อโดยการกดไปบริเวณดังที่แสดงในรูป <br><br>
+
5. To connect please click as following <br><br>
 
[[File:OpenVPN_Android_5.png|link=| border]] <br><br>
 
[[File:OpenVPN_Android_5.png|link=| border]] <br><br>
6. กรอกรหัสผ่านของ CMU account <br><br>
+
6. Fill your CMU Account Password<br><br>
 
[[File:OpenVPN_Android_6.png|link=| border]] <br><br>
 
[[File:OpenVPN_Android_6.png|link=| border]] <br><br>
7. กด OK <br>
+
7. Click OK <br>
 
[[File:OpenVPN_Android_7.png|link=| border]] <br><br>
 
[[File:OpenVPN_Android_7.png|link=| border]] <br><br>
8. เมื่อเชื่อมต่อสำเร็จ จะปรากฎหน้าต่างดังรูป <br><br>
+
8. When the connection is success will show the window as following <br><br>
 
[[File:OpenVPN_Android_8.png|link=| border]] <br><br>
 
[[File:OpenVPN_Android_8.png|link=| border]] <br><br>
9. สามารถดูข้อมูลได้โดยการเลื่อนลง <br><br>
+
9. You can check your information which slide down<br><br>
 
[[File:OpenVPN_Android_9.png|link=| border]] <br><br>
 
[[File:OpenVPN_Android_9.png|link=| border]] <br><br>
10. เมื่อต้องการตัดการเชื่อมต่อให้กดบริเวณดังที่แสดงในรูป <br><br>
+
10. If you want to disconnecting you can enter as following<br><br>
 
[[File:OpenVPN_Android_10.png|link=| border]] <br><br>
 
[[File:OpenVPN_Android_10.png|link=| border]] <br><br>
11. กด OK เพื่อตัดการเชื่อมต่อ<br><br>
+
11. Click OK for disconnect<br><br>
 
[[File:OpenVPN_Android_11.png|link=| border]] <br><br>
 
[[File:OpenVPN_Android_11.png|link=| border]] <br><br>
  
== การใช้งานบนระบบปฏิบัติการ iOS ==
+
== Using on the IOS ==
=== การติดตั้งและการเชื่อมต่อ ===
+
=== For installation and connection  ===
# เข้า App Store เพื่อติดตั้งโปรแกรม OpenVPN Connect <br/><br/> [[File:IOS OVPN 1.jpg | link=]] <br/><br/>
+
# Getting to App store to install the OpenVPN Connect application<br/><br/> [[File:IOS OVPN 1.jpg | link=]] <br/><br/>
# ทำการ download file สำหรับเชื่อมต่อจาก [https://network.cmu.ac.th/cmu.ovpn https://network.cmu.ac.th/cmu.ovpn] <br/><br/>
+
# Download file for connecting from  [https://network.cmu.ac.th/cmu.ovpn https://network.cmu.ac.th/cmu.ovpn] <br/><br/>
# จากนั้นเลือกคำสั่ง Open in "OpenVPN" <br/><br/> [[File:IOS OVPN 2.jpg | link=]] <br/><br/>
+
# After that, choose Open in "OpenVPN" <br/><br/> [[File:IOS OVPN 2.jpg | link=]] <br/><br/>
# บนหน้าต่าง Import Profile เลือกคำสั่ง ADD <br/><br/> [[File:IOS OVPN 3.jpg | link=]] <br/><br/>
+
# On the Import Profile window please click ADD <br/><br/> [[File:IOS OVPN 3.jpg | link=]] <br/><br/>
# บนหน้าต่าง Imported Profile ระบุ CMU Account ที่ช่อง Username จากนั้นกด ADD และ Allow <br/><br/> [[File:IOS OVPN 4.jpg | link=]] [[File:IOS OVPN 5.jpg | link=]]<br/><br/>
+
# On the Imported Profile window please specified your CMU Account on username then click ADD and accept Allow <br/><br/> [[File:IOS OVPN 4.jpg | link=]] [[File:IOS OVPN 5.jpg | link=]]<br/><br/>
# บนหน้าต่าง OVPN Profiles กด Turn on เพื่อใช้งาน จากนั้นกรอก password ของ CMU Account กด "OK" และ "Yes" ดังรูป <br/><br/> [[File:IOS OVPN 6.jpg | link=]] [[File:IOS OVPN 7.jpg | link=]] [[File:IOS OVPN 8.jpg | link=]]<br/><br/>
+
# Please Turn on at the OVPN Profiles window for using after that, fill your CMU Account password and click OK <br/><br/> [[File:IOS OVPN 6.jpg | link=]] [[File:IOS OVPN 7.jpg | link=]] [[File:IOS OVPN 8.jpg | link=]]<br/><br/>
# เมื่อเชื่อมต่อสำเร็จจะปรากฏหน้าต่างดังรูป <br/><br/> [[File:IOS OVPN 9.jpg | link=]]<br/><br/>
+
# When the connection is success will show the window as following  <br/><br/> [[File:IOS OVPN 9.jpg | link=]]<br/><br/>
# เมื่อต้องการเลิกใช้งานให้กด Turn off และกด OK เพื่อตัดการเชื่อมต่อ <br/><br/> [[File:IOS OVPN 10.jpg | link=]] [[File:IOS OVPN 11.jpg | link=]]<br/><br/>
+
# You can Turn off when you want to disconnecting and click OK <br/><br/> [[File:IOS OVPN 10.jpg | link=]] [[File:IOS OVPN 11.jpg | link=]]<br/><br/>
 
 
== การใช้งานบนระบบปฏิบัติการ macOS ==
 
=== การติดตั้ง ===
 
# Download โปรแกรม Tunnelblick จาก [https://tunnelblick.net tunnelblick] และคลิก Open ที่ file.dmg <br/><br/> [[File:VPNOSX 1.png | link=]] <br/><br/>
 
# จากนั้นทำการ Double Click ที่ icon Tunnelblick <br/><br/> [[File:VPNOSX 2.png | link=]] <br/><br/>
 
# หากปรากฏหน้าต่างดังภาพ ให้เลือก Open <br/><br/> [[File:VPNOSX 3.png | link=]] <br/><br/>
 
# กรอกรหัสผ่านเครื่องคอมพิวเตอร์ของท่าน กรณีมีการติดตั้งโปรแกรมใหม่ในเครื่อง หลังจากนั้นกด OK <br/><br/> [[File:VPNOSX 4.png | link=]] <br/><br/>
 
# ในหน้าต่าง Welcome to Tunnelblick เลือก I have configuration files <br/><br/> [[File:VPNOSX.png | link=]] <br/><br/>
 
  
=== การเชื่อมต่อ ===
+
== Using on the macOS ==
# ทำการ download file สำหรับเชื่อมต่อจาก [https://network.cmu.ac.th/cmu.ovpn https://network.cmu.ac.th/cmu.ovpn] <br/><br/>
+
=== Installation ===
# คลิกขวาที่ file ที่ download มาแล้วเลือก Open with Tunnelblick <br/><br/> [[File:VPNOSX 5.png | link=]] <br/><br/>
+
# Download the OpenVPN Connect program from  [https://openvpn.net/client-connect-vpn-for-mac-os/ OpenVPN Connect for macOS] and choose '''Download OpenVPN Connect v3''' <br/><br/> [[File:Openmac01.png | link=]] <br/><br/>
# ในหน้าต่าง Install Configuration For All User เลือก Only Me <br/><br/> [[File:VPNOSX 6.png | link=]] <br/><br/>
+
# After that, you have to double click downloaded file and double click again to start intallation.<br/><br/> [[File:Openmac02.png | link=]] [[File:Openmac03.png | link=]]<br/><br/>
# กรอกรหัสผ่านเครื่องคอมพิวเตอร์ของท่าน กรณีมีการเปลี่ยนแปลง Config ในเครื่อง หลังจากนั้นกด OK <br/><br/> [[File:VPNOSX 7.png | link=]] <br/><br/>
+
# Please follow the picture below.<br/><br/> [[File:Openmac04.png | link=]] [[File:Openmac05.png | link=]]<br/><br/> [[File:Openmac06.png | link=]] [[File:Openmac07.png | link=]]<br/><br/>[[File:Openmac08.png | link=]] <br/><br/>
# บน Task bar คลิกที่ icon Tunnelblick เลือก Connect CMU <br/><br/> [[File:VPNOSX 8.png | link=]] <br/><br/>
+
=== Connection ===
# ระบุ CMU Account ที่ได้รับจากมหาวิทยาลัย จากนั้นกด OK <br/><br/> [[File:VPNOSX 9.png | link=]] <br/><br/>
+
# Download file for connecting from [https://network.cmu.ac.th/cmu.ovpn https://network.cmu.ac.th/cmu.ovpn] <br/><br/>
# หากปรากฏหน้าต่างดังภาพ เลือก Do not warn about this again จากนั้นคลิก OK <br/><br/> [[File:VPNOSX 10.png | link=]] <br/><br/>
+
# Right click a file that you are download then choose Open with OpneVPN Connect <br/><br/> [[File:Openmac09.png | link=]] <br/><br/>
# เมื่อเชื่อมต่อสำเร็จจะปรากฏหน้าต่างดังรูป <br/><br/> [[File:VPNOSX 11.png | link=]] <br/><br/>
+
# Select '''Agree''' to accept the software license agreement <br/><br/> [[File:Openmac10.png | link=]] <br/><br/>
# เมื่อต้องการเลิกใช้งานให้เลือก Disconnect CMU เพื่อตัดการเชื่อมต่อ  <br/><br/> [[File:VPNOSX 12.png | link=]] <br/><br/>
+
# Enter your '''CMU Account''' <u>''If you want to remember password for the next time , select Save Password (Recommended for Personal Devices Only)''</u> Select '''Connect after import''' , then press '''Add'''<br/><br/> [[File:Openmac11.png | link=]] <br/><br/>
 +
# When the connecting is success, OpenVPN Connect appears as below <br/><br/> [[File:Openmac12.png | link=]] <br/><br/>  
 +
# To disconnect ,turn the green botton off and press '''OK'''<br/><br/> [[File:Openmac13.png | link=]] [[File:Openmac14.png | link=]] <br/><br/>
  
== วิธีแก้ปัญหาเมื่อพบ Errors ==
+
== How to resolve when you found Errors ==
 
=== OpenVPN Error : There are no TAP-Windows adapters on this system.===
 
=== OpenVPN Error : There are no TAP-Windows adapters on this system.===
# เมื่อพบ error ดังรูป <br> [[File:Addtap01.jpg|link=]]<br><br>
+
# If you face error following  <br> [[File:Addtap01.jpg|link=]]<br><br>
# ให้ไปที่ path '''C:\Program Files \ TAP-Windowns \ bin\ addtap.bat''' จากนั้นคลิกขวาที่ '''addtap.bat เลือก Run as administrator''' แล้วลองเชื่อมต่อ OpenVPN อีกครั้ง <br><br> [[File:Addtap02.jpg|link=]]<br><br>
+
# Getting to path '''C:\Program Files \ TAP-Windowns \ bin\ addtap.bat''' then double right click at '''addtap.bat choose Run as administrator''' and re-connect OpenVPN
 +
<br><br> [[File:Addtap02.jpg|link=]]<br><br>
  
 
=== OpenVPN Error : All TAP-Windows adapters on this system are currently in use ===
 
=== OpenVPN Error : All TAP-Windows adapters on this system are currently in use ===
==== Solution 1 : Re-enable the adapter ====
+
==== First Solution: Re-enable the adapter ====
# ไปที่ Control Panel เลือก Network and Internet เลือก Network and Sharing Center เลือก Change adapter settings. หา icon ที่มีคำว่า '''TAP-Windows Adapter''' แสดงอยู่ '''จากนั้นคลิกขวาที่ icon เลือก Disable และคลิกขวาที่ icon เดิมอีกครั้งเลือก Enable'''
+
# Going to Control Panel choose Network and Internet then Network and Sharing Center then Change adapter settings. And find the '''TAP-Windows Adapter''' icon after that '''right click at icon choose Disable and re-click again then click Enable'''
 
<br><br> [[File:ReEnable.jpg|link=]]<br><br>
 
<br><br> [[File:ReEnable.jpg|link=]]<br><br>
==== Solution 2 : reinstall the TAP driver ====
+
==== Second Solution: reinstall the TAP driver ====
# ไปที่ path '''C:\ Program Files \ TAP-Windows''' คลิกขวาที่ '''Unintall''' เลือก '''Run as administrator''' <br><br> [[File:Tapdriver.jpg|link=]]<br><br>
+
# Going to path '''C:\ Program Files \ TAP-Windows''', right click at '''Unintall''' choose '''Run as administrator''
# ทำการ Restart Windows  
+
<br><br> [[File:Tapdriver.jpg|link=]]<br><br>
# จากนั้นดาวน์โหลด the Tab driver จาก OpenVPN [https://swupdate.openvpn.org/community/releases/tap-windows-9.21.2.exe repository] และทำการติดตั้ง โดยคลิกขวา เลือก '''Run as adminnistrator''' <br><br> [[File:Tapdriver01.png|link=]]<br><br>
+
# Restart Windows  
 +
# After that, download the Tap driver from OpenVPN [https://swupdate.openvpn.org/community/releases/tap-windows-9.21.2.exe repository] and installation by right click '''Run as administrator''
 +
<br><br> [[File:Tapdriver01.png|link=]]<br><br>
  
== link ที่เกี่ยวข้อง ==  
+
== Others link ==  
*[http://th.wikipedia.org/wiki/%E0%B9%80%E0%B8%84%E0%B8%A3%E0%B8%B7%E0%B8%AD%E0%B8%82%E0%B9%88%E0%B8%B2%E0%B8%A2%E0%B8%AA%E0%B9%88%E0%B8%A7%E0%B8%99%E0%B8%95%E0%B8%B1%E0%B8%A7%E0%B9%80%E0%B8%AA%E0%B8%A1%E0%B8%B7%E0%B8%AD%E0%B8%99 VPN บน wikipedia]
+
*[https://en.wikipedia.org/wiki/OpenVPN VPN on wikipedia]
 
*[https://openvpn.net/ https://openvpn.net/]
 
*[https://openvpn.net/ https://openvpn.net/]
  
== ติดต่อสอบถามเพิ่มเติม ==
+
== More Contact ==
Onestop Service สำนักบริการเทคโนโลยีสารสนเทศ มหาวิทยาลัยเชียงใหม่<br>
+
Onestop Service Informatiom Technology Service Center, Chiang Mai University<br>
โทรศัพท์ : 0-5394-3827<br>
+
Tel : 0-5394-3827<br>
อีเมล : [mailto:onestop@cmu.ac.th onestop@cmu.ac.th]
+
Email : [mailto:onestop@cmu.ac.th onestop@cmu.ac.th]

Latest revision as of 07:43, 4 June 2021

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 OpenVPN Connect for Windows then enter Windows installer

Win ovpn connect 01.png

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

Win ovpn connect 09.png

Win ovpn connect 06.png

Win ovpn connect 07.png

Win ovpn connect 08.png

Win ovpn connect 10.png

Connection

1.Download file for connecting from https://network.cmu.ac.th/cmu.ovpn

2.Next ,Open the OpenVPN Connect program,choose FILE then browse to cmu.ovpen file,you just downloaded.

Win open connect 11.png

3.Enter your CMU Account If you want to remember password for the next time , select Save Password (Recommended for Personal Devices Only) Select Connect after import , then press Add

Openmac11.png

4. When the connecting is success, OpenVPN Connect appears as below

Openmac12.png

5. To disconnect ,turn the green botton off and press OK

Openmac13.png Openmac14.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

Using on the Android

Installation

1. Download the OpenVPN Connect application from Playstore

OpenVPN Android install.png

2. 2. Download file for connecting from https://network.cmu.ac.th/cmu.ovpn

Connection

1. Getting to the application and choose OVPN Profile

OpenVPN Android 1.png

2. Then going to the folder cmu.ovpn file

OpenVPN Android 2.png

3. Enter cmu.ovpn file then click IMPORT

OpenVPN Android 3.png

4. Add your CMU Account at username
OpenVPN Android 4.png

5. To connect please click as following

OpenVPN Android 5.png

6. Fill your CMU Account Password

OpenVPN Android 6.png

7. Click OK
OpenVPN Android 7.png

8. When the connection is success will show the window as following

OpenVPN Android 8.png

9. You can check your information which slide down

OpenVPN Android 9.png

10. If you want to disconnecting you can enter as following

OpenVPN Android 10.png

11. Click OK for disconnect

OpenVPN Android 11.png

Using on the IOS

For installation and connection

  1. Getting to App store to install the OpenVPN Connect application

    IOS OVPN 1.jpg

  2. Download file for connecting from https://network.cmu.ac.th/cmu.ovpn

  3. After that, choose Open in "OpenVPN"

    IOS OVPN 2.jpg

  4. On the Import Profile window please click ADD

    IOS OVPN 3.jpg

  5. On the Imported Profile window please specified your CMU Account on username then click ADD and accept Allow

    IOS OVPN 4.jpg IOS OVPN 5.jpg

  6. Please Turn on at the OVPN Profiles window for using after that, fill your CMU Account password and click OK

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

  7. When the connection is success will show the window as following

    IOS OVPN 9.jpg

  8. You can Turn off when you want to disconnecting and click OK

    IOS OVPN 10.jpg IOS OVPN 11.jpg

Using on the macOS

Installation

  1. Download the OpenVPN Connect program from OpenVPN Connect for macOS and choose Download OpenVPN Connect v3

    Openmac01.png

  2. After that, you have to double click downloaded file and double click again to start intallation.

    Openmac02.png Openmac03.png

  3. Please follow the picture below.

    Openmac04.png Openmac05.png

    Openmac06.png Openmac07.png

    Openmac08.png

Connection

  1. Download file for connecting from https://network.cmu.ac.th/cmu.ovpn

  2. Right click a file that you are download then choose Open with OpneVPN Connect

    Openmac09.png

  3. Select Agree to accept the software license agreement

    Openmac10.png

  4. Enter your CMU Account If you want to remember password for the next time , select Save Password (Recommended for Personal Devices Only) Select Connect after import , then press Add

    Openmac11.png

  5. When the connecting is success, OpenVPN Connect appears as below

    Openmac12.png

  6. To disconnect ,turn the green botton off and press OK

    Openmac13.png Openmac14.png

How to resolve when you found Errors

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

  1. If you face error following
    Addtap01.jpg

  2. Getting to path C:\Program Files \ TAP-Windowns \ bin\ addtap.bat then double right click at addtap.bat choose Run as administrator and re-connect OpenVPN



Addtap02.jpg

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

First Solution: Re-enable the adapter

  1. Going to Control Panel choose Network and Internet then Network and Sharing Center then Change adapter settings. And find the TAP-Windows Adapter icon after that right click at icon choose Disable and re-click again then click Enable



ReEnable.jpg

Second Solution: reinstall the TAP driver

  1. Going to path C:\ Program Files \ TAP-Windows', right click at Unintall choose Run as administrator



Tapdriver.jpg

  1. Restart Windows
  2. After that, download the Tap driver from OpenVPN repository and installation by right click 'Run as administrator



Tapdriver01.png

Others link

More Contact

Onestop Service Informatiom Technology Service Center, Chiang Mai University
Tel : 0-5394-3827
Email : onestop@cmu.ac.th