Cov txheej txheem:
2024 Tus sau: Malcolm Clapton | [email protected]. Kawg hloov kho: 2023-12-17 03:58
Teeb tsa koj tus kheej VPN ntawm lub server kom tau txais kev ywj pheej hauv internet.
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.
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.
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.
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.
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
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:
- Tus IP chaw nyob yuav tsum phim tus IP chaw nyob uas koj tau txais hauv tsab ntawv los ntawm tus tswv tsev.
- Tawm ntawm qhov kev cai qub UDP.
- Chaw nres nkoj: 1194 - pom zoo.
- Qhov twg DNS siv - xaiv Google. lwv 1, sau 3 thiab nias Enter.
- Client name - sau tus username. Koj tuaj yeem tawm ntawm tus neeg siv khoom.
- 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 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.
Tua tawm Notepad, muab tshuaj txhuam rau hauv cov ntawv theej, thiab txuag cov ntaub ntawv rau koj lub desktop li client.ovpn.
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.
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.
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".
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:
Yuav teeb tsa koj lub koob yees duab li cas kom raug: 6 qhov teeb meem feem ntau
Hauv tsab xov xwm no, koj yuav kawm yuav ua li cas teeb tsa koj lub koob yees duab thiab zam qhov kev ua yuam kev ntau tshaj plaws uas tau ntsib ntawm cov kws yees duab amateur
Lub teeb hluav taws xob, Bluetooth teeb lub teeb, lub laptop sawv ntsug, thiab lwm yam khoom siv me me los ntawm AliExpress
Lub teeb hluav taws xob, lub teeb ci ntse, lub laptop muag, tsom iav thiab lwm yam khoom txias peb pom ntawm AliExpress
Peb yuav tsum coj: Xiaomi ntse hmo ntuj lub teeb nrog cov lus tsa suab thiab lub teeb sensors
Lub teeb pom kev zoo Xiaomi hmo ntuj yog lub teeb pom kev zoo rau koj thaj chaw pw, chav hnav khaub ncaws lossis hauv tsev. Lub gadget yog yooj yim los tswj los ntawm ib tug smartphone
Yuav teeb tsa koj lub npe server li cas
Ua raws li kev txwv tsis pub qhia npe thiab VPN, uas tuaj yeem siv tau hauv kev xyaum txhua lub sijhawm, muaj koj tus kheej tus neeg rau zaub mov yuav lav koj txoj kev ywj pheej hauv Is Taws Nem. Khaws cov lus qhia txog teeb tsa lub npe thiab tsis nco qab txog kev thaiv
Yuav ua li cas teeb tsa lub neej ntawd browser ntawm koj lub computer thiab smartphone
Nws yuav siv sij hawm koj tsawg tshaj li ib feeb los teeb tsa koj qhov browser default. Lifehacker qhia yuav ua li cas ua nws nyob rau hauv txawv operating systems