Cov txheej txheem:

Yuav ua li cas los tsim thiab teeb tsa koj lub VPN server
Yuav ua li cas los tsim thiab teeb tsa koj lub VPN server
Anonim

Teeb tsa koj tus kheej VPN ntawm lub server kom tau txais kev ywj pheej hauv internet.

Yuav ua li cas los tsim thiab teeb tsa koj lub VPN server
Yuav ua li cas los tsim thiab teeb tsa koj lub VPN server

Xaiv lub hosting

Txhawm rau teeb tsa VPN, koj xav tau VPS - virtual ntiag tug server. Koj tuaj yeem xaiv ib tus neeg muab kev pabcuam hosting, tsuav yog muaj raws li hauv qab no:

  • Cov neeg rau zaub mov nyob hauv ib lub tebchaws uas tsis poob rau hauv kev txiav txim siab ntawm tsoomfwv Lavxias, tab sis nyob ze txaus rau koj qhov chaw tiag tiag.
  • Random access memory (RAM) yuav tsum yog tsawg kawg yog 512 MB.
  • Lub network interface ceev yog 100 MB / sec thiab siab dua.
  • Network khiav - 512 GB lossis ntau dua lossis tsis txwv.

Tus nqi ntawm qhov chaw faib ntawm lub hard disk thiab hom tsav tsis muaj teeb meem. Koj tuaj yeem nrhiav kev daws teeb meem rau 3-4 las ib hlis. Nov yog qee qhov chaw pabcuam VPS nrov tshaj plaws:

  • Amazon Web Services
  • DigitalOcean;
  • Arubacloud;
  • Hostinger;
  • Hetzner;
  • Ua kua Web;
  • Bluehost;
  • Vultr.

Thaum muas lub server, xaiv KVM. OpenVZ thiab Xen kuj tsim nyog yog tias lawv muaj kev sib txuas TUN - koj yuav tsum nug tus kws kho mob cov kev pabcuam txog qhov no.

Koj yuav tsis tas yuav ua lwm yam kev tswj hwm nrog KVM, txawm hais tias qee tus neeg muab kev pabcuam hosting yuav txwv tsis pub muaj peev xwm los tsim VPN ntawm nws. Koj tseem tuaj yeem piav qhia qhov no hauv qhov kev pabcuam txhawb nqa.

Server xaiv
Server xaiv

Thaum configuring tus neeg rau zaub mov, koj tuaj yeem nkag mus rau txhua tus nqi hauv cov khoom "Hostname": piv txwv li, test.test. Cov ntawv ua ntej NS1 thiab NS2 kuj tsis tseem ceeb: peb sau ns1.test thiab ns2.test.

Kev khiav hauj lwm qhov system - CentOS 8 64 ntsis lossis lwm yam khoom siv faib khoom, tsis muaj qhov sib txawv hauv kev teeb tsa. Tawm hauv lub network khiav ntawm 512 GB lossis xaiv tus nqi ntxiv yog tias koj ntshai tias qhov uas twb muaj lawm yuav tsis txaus. Qhov chaw - qhov ze dua qhov zoo dua. Netherlands yuav ua.

Kev kho kom haum
Kev kho kom haum

Tom qab them nyiaj, tsab ntawv yuav raug xa mus rau hauv ntawv nrog tag nrho cov ntaub ntawv tsim nyog rau kev teeb tsa VPN. Koj tau yuav qhov chaw ntawm tus neeg rau zaub mov hauv lwm lub tebchaws, nws tseem yuav hloov pauv tag nrho cov tsheb mus rau nws.

Configuring VPN

Peb yuav siv qhov kev pab cuam Putty txuas mus rau lub server thiab xa cov lus txib. Kuv tau txais qhov txuas rau nws hauv email nrog cov ntaub ntawv sau npe rau hosting. Koj tuaj yeem rub tawm qhov program no. Putty thiab nws cov khub kuj muaj nyob rau ntawm macOS, cov chaw yuav zoo ib yam.

Khiav Putty. Nyob rau ntawm Kev Sib Tham tab, hauv Chaw Lub Npe Lub Npe, sau tus IP chaw nyob uas tuaj hauv tsab ntawv thiab nyem Qhib.

Putty
Putty

Thaum lub qhov rais ceeb toom tshwm, nyem Yes. Tom qab ntawd, lub console yuav pib, uas koj yuav xa cov lus txib mus rau lub server. Ua ntej koj yuav tsum tau nkag mus rau hauv - cov ntaub ntawv tso cai tseem nyob hauv tsab ntawv los ntawm tus tswv tsev. ID nkag mus yuav hauv paus, ntaus ntawv los ntawm tes. Luam tus password rau hauv daim ntawv teev lus. Txhawm rau muab lo lus zais rau hauv console, right-click thiab nias Enter. Tus password yuav tsis tshwm sim hauv console, tab sis yog tias koj nkag rau hauv, koj yuav pom cov ntaub ntawv kaw lus lossis tus lej server.

Console
Console

Yuav tsum tsis txhob muaj sijhawm ntev ntawm kev nkag mus rau koj tus username thiab password. Yog tias cov lus yuam kev tshwm sim, rov pib Putty thiab sim dua.

Txhawm rau teeb tsa VPN, kuv siv cov ntawv npaj ua tiav OpenVPN txoj kev ua tub rog. Txoj kev no tsis lav tsis qhia npe tag, yog li nws yooj yim los nrhiav tus neeg siv thaum ua txhaum cai. Tab sis nws yog txaus los hla qhov thaiv. Yog tias txhua qhov kev pabcuam VPN tsis ua haujlwm, qhov kev sib txuas no tseem yuav ua haujlwm ntxiv thaum kuv them nyiaj rau hosting.

Txhawm rau siv cov ntawv sau, ntxig kab rau hauv lub console

wget https://git.io/vpn -O openvpn-install.sh && bash openvpn-install.sh

Tsab ntawv
Tsab ntawv

Tom qab ua tiav cov ntawv sau tiav, ib qho kev sib tham nrog lub teeb tsa wizard yuav pib. Nws tus kheej pom qhov zoo tshaj qhov tseem ceeb, koj tsuas yog yuav tsum pom zoo lossis xaiv qhov kev xaiv tsim nyog. Txhua qhov kev ua tau lees paub los ntawm nias lub pob Enter. Cia peb mus nyob rau hauv kev txiav txim:

  1. Tus IP chaw nyob yuav tsum phim tus IP chaw nyob uas koj tau txais hauv tsab ntawv los ntawm tus tswv tsev.
  2. Tawm ntawm qhov kev cai qub UDP.
  3. Chaw nres nkoj: 1194 - pom zoo.
  4. Qhov twg DNS siv - xaiv Google. lwv 1, sau 3 thiab nias Enter.
  5. Client name - sau tus username. Koj tuaj yeem tawm ntawm tus neeg siv khoom.
  6. Nias ib qho tseem ceeb - nias Enter dua thiab tos kom lub configuration kom tiav.

Tom qab ua tiav qhov kev teeb tsa, koj yuav tsum tsim cov ntaub ntawv uas koj yuav txuas rau VPN. Nkag mus rau qhov hais kom ua

cat ~ / client.ovpn

Cov neeg siv khoom tsim
Cov neeg siv khoom tsim

Cov ntsiab lus ntawm cov ntaub ntawv yuav tshwm sim hauv console. Scroll mus rau pab neeg

cat ~ / client.ovpn

thiab xaiv txhua yam uas tshwm hauv qab no, tshwj tsis yog rau kab kawg. Kev xaiv yuav tsum xaus nrog. Txhawm rau luam ib ntu, nias Ctrl + V.

Cov neeg siv khoom
Cov neeg siv khoom

Tua tawm Notepad, muab tshuaj txhuam rau hauv cov ntawv theej, thiab txuag cov ntaub ntawv rau koj lub desktop li client.ovpn.

Cov neeg siv ntaub ntawv
Cov neeg siv ntaub ntawv

Qhib cov ntawv qhia zaub mov "Cov ntaub ntawv", xaiv "Txuag Raws li", teem hom rau "Tag nrho cov ntaub ntawv" thiab sau ib lub npe nrog lub extension - client.ovpn.

Peb txuas mus rau lub server

Txhawm rau txuas siv cov ntaub ntawv tsim, koj xav tau tus neeg siv khoom OpenVPN. Lub PC version tuaj yeem rub tawm ntawm no. Download tau thiab nruab qhov program, tab sis tsis txhob khiav nws. Txoj cai-nias cov ntaub ntawv client.ovpn thiab xaiv Start OpenVPN.

Kev sib txuas
Kev sib txuas

Lub qhov rais console yuav tshwm sim nrog qhov pib ntawm kev sib txuas. Yog tias qhov kev sib txuas tau ua tiav, cov xwm txheej yuav nyob hauv qab no

Initialization Sequence tiav

… Nyob rau hauv tus txheej txheem ntawm kev sib txuas, lub qhov rais xaiv lub network yuav tshwm sim, nyem rau ntawm lub network pej xeem.

Kev pib
Kev pib

Txhawm rau kom paub tseeb tias qhov kev sib txuas yog lawm, kos tus IP chaw nyob. Nws yuav tsum phim qhov uas tus tswv tsev sau rau hauv tsab ntawv. Txhawm rau kom tsis txhob xa cov lus thov mus rau ib lub server hauv lwm lub tebchaws, kaw lub qhov rais OpenVPN.

OpenVPN kuj muaj cov neeg siv khoom siv mobile.

Txhawm rau tsim kev sib txuas, hloov cov ntaub ntawv client.ovpn mus rau lub xov tooj nco. Tua tawm daim ntawv thov thiab xaiv OVPN Profile yam khoom. Qhia txoj hauv kev rau cov ntaub ntawv thiab txav tus slider mus rau txoj haujlwm "Enabled".

OpenVPN
OpenVPN
Profile
Profile

Lub VPN txuas icon yuav tshwm nyob rau saum toj. Txhawm rau kom paub tseeb tias cov tsheb thauj mus los tau raug xa mus los ntawm cov neeg rau zaub mov hauv lwm lub tebchaws, qhib txhua qhov kev lees paub IP chaw nyob hauv koj lub browser mobile.

Pom zoo: