Yuav tsim koj tus kheej VPN server rau ntawm Ubuntu, Debian thiab CentOS li cas

Nrog rau kev hloov pauv tsis tu ncua ntawm lub nroog thiab lub tebchaws uas kuv tau muaj tsis ntev los no, Kuv yuav tsum tau siv ntau lub Wi-nkaus dawb sib txuas (txawm tias tam sim no kuv txuas los ntawm lub wifi uas kuv tau txais tus yuam sij ua tsaug rau Aircrack-ng, Airmon-ng, airdump-ng, aireplay-ng uas tau raug ntsia hauv Kali Linux), Qhov teeb meem yog tias cov kev sib txuas no tuaj yeem cuam tshuam rau kuv cov ntaub ntawv thiab peb tsis paub leej twg tuaj yeem txuas thiab ua rau kuv paub hauv lub network. Ib qho kev daws teeb meem rau qhov teeb meem no yog qhov tau tsa los ntev dhau los cia siv linux en Yuav ua li cas nthwv yam xyuam xim ntawm qhib Wi-nkaus kev ua haujlwm, tab sis kuj tseem muaj qhov tuaj yeem daws nws siv VPN, ntawm uas muaj ntau yam dawb thiab them nyiaj uas yooj yim siv thiab nruab, txhua tus nrog nws cov zoo thiab kev pom zoo, tab sis peb kuj tsim peb tus kheej VPN server ntawm Ubuntu, Debian thiab Centos.

Nrhiav rau txoj kev daws qhov teeb meem no thiab ua ntej siv VPN uas yuav muab rau kuv lwm yam zoo, Kuv tau tswj xyuas kom pom tsab ntawv uas tso cai rau peb tsim VPN server tam sim ntawd nrog kev cuam tshuam tsawg nrog tus neeg siv.

cta nordvpn

Dab tsi yog tsab ntawv teeb tsa neeg rau zaub mov?

Nws yog ib tug plhaub tsab ntawv uas tso cai rau cia li teeb tsa lub VPN server dhau IPsec ntawm Ubuntu, Debian thiab CentOS sai thiab yooj yim, ntxiv rau txhawb IPsec / L2TP thiab Cisco IPsec kev caiCov. Tus neeg siv tsuas yog xav tau muab lawv tus kheej VPN cov peev txheej thiab cia tsab ntawv ua qhov seem.

Tus neeg rau zaub mov VPN dhau IPsec Nws encrypts network tsheb, kom cov ntaub ntawv tsis tuaj yeem tiv thaiv thaum muaj kev sib txuas lus nruab nrab ntawm tus neeg siv thiab VPN server. Qhov no siv tau tshwj xeeb tshaj yog thaum siv cov kev tiv thaiv tsis sib raug zoo, piv txwv li hauv cov khw kas fes, tshav dav hlau, lossis chav tsev so.

Tsab ntawv siv Libreswan uas yog siv ntawm IPsec rau Linux xl2tp ua uas yog ib tug L2TP cov neeg zov me nyuam.

Tsab ntawv tuaj yeem siv rau ntawm txhua tus neeg rau zaub mov lossis Virtual Private Server (VPS). Tsis tas li ntawd, nws tuaj yeem siv ncaj qha raws li "cov neeg siv cov ntaub ntawv" ntawm Amazon EC2 rau kev tshaj tawm ntawm qhov ua piv txwv tshiab, qhov tshwj xeeb no ua rau nws zoo tagnrho vim nws tso cai rau kuv kom muaj VPN thiab nce lub sijhawm twg los tau thiab pab kuv siv qhov zoo ntawm Amazon txoj kev pom zoo ib xyoo dawb ntawm lawv VPS.

Cov nta ntawm VPN tshaj IPsec server teeb tsa tsab ntawv

  • Kev teeb tsa ntawm lub tshuab hluav taws xob puv nkaus VPN tshaj IPsec server, tsis muaj kev cuam tshuam rau cov neeg siv
  • Txhawb cov txheej txheem nrawm IPsec/XAuth ("Cisco IPsec")
  • Puas muaj Docker duab los ntawm VPN server
  • Encapsulates tag nrho VPN tsheb hauv UDP - ESP raws tu qauv tsis tas yuav tsum muaj
  • Nws tuaj yeem siv ncaj qha raws li "cov neeg siv cov ntaub ntawv" rau cov xwm txheej tshiab Amazon EC2
  • Txiav txim siab IP pej xeem thiab tus IP ntiag tug ntawm cov neeg rau zaub mov
  • Xws li cov kev cai IPTables yooj yim thiab tso cai rau koj los kho qhov sysctl.conf
  • Kev xeem ntawm Ubuntu 16.04 / 14.04 / 12.04, Debian 8 thiab CentOS 6 & 7

VPN dhau IPsec neeg rau zaub mov teeb tsa ntawv sau

Yuav tsum muaj Tus Neeg rau zaub mov rau siab lossis Virtual Private Server (VPS) yog qhov yuav tsum tau ua, txawm hais tias nws tau pom zoo siv qhov piv txwv ntawm Amazon EC2, siv ib ntawm AMIs:

Txhim kho lub VPN dhau IPsec server configuration tsab ntawv

Txhim kho lub VPN dhau IPsec server configuration tsab ntawv ntawm Ubuntu thiab Debian

Thawj qhov koj yuav tsum tau ua yog hloov kho koj lub system, rau qhov no khiav cov lus txib hauv qab no apt-get update && apt-get dist-upgrade thiab reboot.

 Cov kauj ruam no tsis yog txoj cai, tab sis nws tau pom zoo tias yuav tsum ua.

Txhawm rau txhim kho lub VPN, thov xaiv ib qho hauv qab no:

Qhov Xaiv 1: Ua kom muaj cov ntawv pov thawj VPN ntawm cov khoom siv ntawm random, uas tuaj yeem pom thaum kev teeb tsa tiav

wget https://git.io/vpnsetup -O vpnsetup.sh && sudo sh vpnsetup.sh

Xaiv 2: Kho cov ntawv sau thiab muab koj tus kheej lub peev xwm VPN

wget https://git.io/vpnsetup -O vpnsetup.sh nano -w vpnsetup.sh [Hloov pauv nrog koj cov txiaj ntsig: KOJ_IPSEC_PSK, KOJ_USERNAME thiab KOJ_PASSWORD] sudo sh vpnsetup.sh

Option 3: Txheeb VPN cov peev txheej ua qhov hloov pauv ib puag ncig

# Txhua qhov nuj nqis yuav tsum muab ntim rau hauv 'ib kab lus'
# Tsis txhob siv cov cim no nyob hauv qhov tseem ceeb: \ "'
wget https://git.io/vpnsetup -O vpnsetup.sh && sudo \ VPN_IPSEC_PSK ='koj_ipsec_pre_shared_key' \ VPN_USER ='koj_vpn_us npe' \ VPN_PASSWORD ='koj_vpn_password' sh vpnsetup.sh

Txhim kho lub VPN dhau IPsec server configuration tsab ntawv ntawm Centos

Thawj qhov koj yuav tsum tau ua yog hloov kho koj lub system, rau qhov no khiav cov lus txib hauv qab no yum update  thiab reboot.

 Cov kauj ruam no tsis yog txoj cai, tab sis nws tau pom zoo tias yuav tsum ua.

Ua raws li cov kauj ruam ib yam li hauv Ubuntu thiab Debian, tab sis hloov chaw https://git.io/vpnsetup los ntawm https://git.io/vpnsetup-centos.

Cov lus xaus ntawm lub VPN dhau IPsec server configuration tsab ntawv

cta nordvpn

Zoo thaum peb muaj peb lub VPN nruab peb yuav tsum txuas mus rau nws los ntawm VPN tus thov kev pab. Kuv pom zoo kom peb siv OpenVPN, uas peb tuaj yeem nruab nrog tus saib xyuas pob ntawm peb cov khoom faib tawm. Tias ntawm Debian thiab kev tsim txiaj peb tuaj yeem ua nws raws li hauv qab no:

sudo apt-tau nruab openvpn

Qhov no yog txoj kev daws teeb meem zoo rau txuas rau hauv is taws nem hauv txoj kev nyab xeeb thiab muaj peb tus kheej VPN uas kuj tuaj yeem siv tau

  • Nkag mus ua haujlwm lossis tsev network thaum koj mus ncig.
  • Zais cov ntaub ntawv browsing.
  • Nkag mus rau thaj chaw geo-sim.
  • Thiab ntau lwm yam siv

Thiab qhov no yog tus txiv neej Kuv vam tias koj txaus siab rau nws thiab tau txais nws mus. Yog tias txhua yam no zoo nkaus li nyuaj rau koj thiab koj nyiam kom nws yooj yim, koj tuaj yeem ntiav ib tus VPN zoo li Hidemyass, uas ntxiv nrog rau muaj cov kev xav zoo, muaj kev qhia zoo heev rau cov neeg siv tshiab.

 


Cov ntsiab lus ntawm tsab xov xwm ua raws li peb cov ntsiab cai ntawm kev tswj hwm kev ncaj nceesCov. Tshaj tawm ib qho yuam kev nyem no.

10 lus, tawm koj li

Tso koj saib

Koj email chaw nyob yuav tsis tsum luam tawm. Yuav tsum tau teb cov cim nrog *

*

*

  1. Lub luag haujlwm rau cov ntaub ntawv: Miguel Ángel Gatón
  2. Lub hom phiaj ntawm cov ntaub ntawv: Tswj SPAM, kev tswj xyuas tawm tswv yim.
  3. Sau raws cai: Koj kev tso cai
  4. Kev sib txuas lus ntawm cov ntaub ntawv: Cov ntaub ntawv yuav tsis raug xa mus rau lwm tus neeg thib peb tsuas yog los ntawm kev txiav txim siab raug cai.
  5. Cov ntaub ntawv khaws cia: Cov Ntaub Ntawv khaws tseg los ntawm Occentus Networks (EU)
  6. Txoj Cai: Txhua lub sijhawm koj tuaj yeem txwv, rov qab thiab tshem tawm koj cov ntaub ntawv.

  1.   Rodrigo said

    Vim li cas lawv thiaj hla tawm ntawm qhov chaw uas nws lees tias ua txhaum? jajajjajajajaj

  2.   Hemnys said

    Nyob zoo tus phooj ywg, Kuv tau tswj hwm nruab hauv VPN nyob rau hauv ib qho Amazon piv txwv nrog Ubuntu, tab sis tam sim no qhov kuv tsis tuaj yeem ua rau txuas rau hauv VPN tau nruab, Kuv xav tias nws tsim nyog los ntxiv cov chaw nres nkoj hauv qhov piv txwv thaum lub sijhawm kuv tau ua tiav uas lawv yog cov no: Rau PPTP koj yuav tsum qhib TCP chaw nres nkoj 1723 thiab kuj tseem qhib raws tu qauv nrog ID 47 (GRE).
    Rau L2TP koj yuav tsum qhib TCP chaw nres nkoj 1701; yog tias koj yuav siv IPSec, koj yuav tsum qhib UDP chaw nres nkoj 500 thiab kev cai ntawm ID 50 (IPSec ESP) thiab 51 (IPSec AH), ib zaug kuv tau ntxiv rau lawv Kuv txheeb nrog netstat -ntpl hauv qhov piv txwv tab sis tsis Cia li ua kom nquag plias, koj puas tuaj yeem muab kuv txhais tes thov?

    1.    Luigys toro said

      Rau cov server nrog lub foob pob hluav taws sab nraud (piv txwv EC2), koj yuav tsum qhib UDP chaw nres nkoj 500 thiab 4500, thiab TCP chaw nres nkoj 22 (rau SSH).

      Txhawm rau qhib cov chaw nres nkoj ntxiv ntawm lub server, kho /etc/iptables.rulesy / lossis /etc/iptables/rules.v4(Ubuntu / Debian), lossis / thiab / sysconfig / iptables (CentOS). Thiab rov pib ua qhov Server, txawm tias EC2, qhov yooj yim yog nrog lub thaiv hluav taws sab nraud.

  3.   koomhaum said

    "Txoj kev ywj pheej ntawm Txoj Cai yog ncaj qha sib npaug rau Kev Loj Hlob Ntawm Ib Lub Koom Haum", cov lus tshaj tawm zoo.

  4.   Jose Luis said

    Ua tsaug rau tus hais nawb.
    Kuv tau tswj hwm nws nruab thiab nws ua haujlwm nrog Iphone thiab Android, tab sis kuv tsis paub siv openVPN ua ib tus neeg siv ntawm Linux.

    Tus neeg rau zaub mov Kuv tau nruab rau hauv Ubuntu 16.04 lub davhlau ya nyob twg.

    Thov pab

  5.   pob zeb-668 said

    Nyob zoo, kuv yuav ua li cas kuv thiaj ua haujlwm nrog tus ip pauv tau?

    1.    Beavis said

      sau npe yuav mus rau noip.com nyob dawb.

  6.   Oscar said

    Nyob zoo, kuv lub npe yog Oscar, Kuv tau teeb lub VPN neeg rau ntawm kuv lub Linux server hauv VPS, thiab kuv txoj kev kawm kev ruaj ntseg tom qab 24 teev, yog tias nws ua kev tawm tsam, Smurf, ua qhov kev sib txuas scans thiab sim cuam tshuam cov ntaub ntawv, nws tsuas yog tuaj yeem cuam tshuam. txhua tus yuam sij uas siv cov kev tiv thaiv tsis raug cai, uas yog, ib qho kev sib txuas uas tsis siv encryption, tam sim ntawd tom qab kuv pom, Kuv kaw kuv lub VPN kev txuas thiab rov ua dua VPS, vim kuv tau tsim qhov chaw rov qab ua ntej pib ua cov txheej txheem no.
    Kuv nthuav tawm txhua yam no kom tus kws sau ntawv thiab / lossis nyeem cov ntawv no uas nyeem cov lus no yog qhov muaj tseeb thaum txhim kho lub VPN server no, kuv hais nws txhua qhov tseeb, thiab kuv ua tsaug rau tus kws sau ntawv uas siv nws lub sijhawm sau tsab ntawv no.

    Tus npawg.

  7.   gerardo said

    thaum kuv ua ifconfig tun0 nws muab kuv yuam kev no
    yuam kev nqa cov lus qhia interface: Cov khoom siv tsis pom

  8.   Pedro said

    Tam sim no kuv paub vim li cas kuv tsis siv VPN…. vim hais tias nws tsis yooj yim thiab nws yog qhov zoo rau kev teeb tsa nws. Puas yog tsis muaj kev yooj yim thiab nraaj ntxiv los ua nws?