How to Install OpenVPN on a VPS or Dedicated Server

Embed Size (px)

Citation preview

  • 8/17/2019 How to Install OpenVPN on a VPS or Dedicated Server

    1/12

    How to Install OpenVPN on a VPS or Dedicated Server (W

    Thread:

    How to Install OpenVPN on a VPS or Dedicated Server (With Pictures)

    Tags:Tags: dedicateddedicated,, install openvpninstall

    openvpn,, openvpn setup

    openvpn setup,, vps

    vps

     How to Install OpenVPN on a VPS or Dedicated Server (With Pictures)How to Install OpenVPN on a VPS or Dedicated Server (With Pictures)

    You must be hearing a lot about VPNs these days. We have witnessed the demand forYou must be hearing a lot about VPNs these days. We have witnessed the demand forVPNs rising rapidly in recent years. Moreover, Google trends also show the rise in theVPNs rising rapidly in recent years. Moreover, Google trends also show the rise in thesearch trend of “VPN” and VPN-related keywords.search trend of “VPN” and VPN-related keywords.

    VPN stands for Virtual Private Network, and there are many reasons why people useVPN stands for Virtual Private Network, and there are many reasons why people usethem. Security, Internet Censorship, and privacy on public Wi-Fi are just a few of thethem. Security, Internet Censorship, and privacy on public Wi-Fi are just a few of themany reasons. In this article I will be discussing how to install OpenVPN on a VPS ormany reasons. In this article I will be discussing how to install OpenVPN on a VPS ordedicated server to allow you to have VPN connections to your server.dedicated server to allow you to have VPN connections to your server.

    For this tutorial, we will be installing OpenVPN on a VPS running CentOS 6.x 64-bitFor this tutorial, we will be installing OpenVPN on a VPS running CentOS 6.x 64-bitwith 1GB of RAM.with 1GB of RAM.

    RequirementsRequirements

    Vanilla OS install (Vanilla OS install ( preferable preferable))64MB of RAM (64MB of RAM (128MB recommended 128MB recommended ))Root SSH AccessRoot SSH AccessTUN/TAPTUN/TAPSFTP ClientSFTP Client

    First and foremost we need to connect to our server via SSH. If you do not have anFirst and foremost we need to connect to our server via SSH. If you do not have an

    SSH client installed, I would highly recommend PuTTy. It’s free and you can find it viaSSH client installed, I would highly recommend PuTTy. It’s free and you can find it viaa quick Google search. I use SecureCRT, as it makes saving my SSH sessions verya quick Google search. I use SecureCRT, as it makes saving my SSH sessions veryeasy.easy.

    Picture 1Picture 1

    Once you are connected via SSH we can get to work. The next thing we need to do isOnce you are connected via SSH we can get to work. The next thing we need to do isverify that TUN/TAP is enabled. To do this run the following:verify that TUN/TAP is enabled. To do this run the following:

    Code: [Code: [ViewView]]

    cat /dev/net/tuncat /dev/net/tun

    If this is your first visit, be sure to check out theIf this is your first visit, be sure to check out the FAQFA

    Q by clicking the link above. Youby clicking the link above. Youmay have tomay have to registerre

    gister before you can post: click the register link above to proceed. Tobefore you can post: click the register link above to proceed. To

    start viewing messages, select the forum that you want to visit from the selectionstart viewing messages, select the forum that you want to visit from the selection

    below.below.

    11 2

    TmzHosting

     said:

    06-27-2012 12:35 PM

  • 8/17/2019 How to Install OpenVPN on a VPS or Dedicated Server

    2/12

    If TUN/TAP is enabled, it will return the following:If TUN/TAP is enabled, it will return the following:

    Code: [Code: [ViewView]]

    [root@vpn ~]# cat /dev/net/tun[root@vpn ~]# cat /dev/net/tun

    cat: /dev/net/tun: File descriptor in bad statecat: /dev/net/tun: File descriptor in bad state

    If you get anything else, you will need to contact your hosting provider to have TUNIf you get anything else, you will need to contact your hosting provider to have TUNenabled. Generally if it is disabled it will return a “file not found” message.enabled. Generally if it is disabled it will return a “file not found” message.We will proceed by installing some modules which will be required later on in theWe will proceed by installing some modules which will be required later on in theinstall process.install process.

    Code: [Code: [ViewView]] yum install gcc make rpm-build zlib-devel pam-devel openssl openssl-devel autoconf.noarch nano -y yum install gcc make rpm-build zlib-devel pam-devel openssl openssl-devel autoconf.noarch nano -y

    Lets download the OpenVPN REPO and RPMForge REPO install files.Lets download the OpenVPN REPO and RPMForge REPO install files.CentOS 6.x 64-bitCentOS 6.x 64-bit

    Code: [Code: [ViewView]]

    wgetwget http://openvpn.net/release/lzo-1.08-4.rf.src.rpmhtt

    p://openvpn.net/release/lzo-1.08-4.rf.src.rpm

    wgetwget http://pkgs.repoforge.org/rpmforge-r....rf.x86_64.rpmhtt

    p://pkgs.repoforge.org/rpmforge-r....rf.x86_64.rpm

     If you are using CentOS 5.x, change the “ If you are using CentOS 5.x, change the “el6 el6 ” in the second URL to “” in the second URL to “el5el5“. If you’re using“. If you’re using

    the 32-bit version of your OS, change “the 32-bit version of your OS, change “ x86_64 x86_64” to read “” to read “i386 i386 ““

    Next we need to build and install the RPM packages we just downloaded.Next we need to build and install the RPM packages we just downloaded.

    Code: [Code: [ViewView]]

    rpmbuild --rebuild lzo-1.08-4.rf.src.rpmrpmbuild --rebuild lzo-1.08-4.rf.src.rpmrpm -Uvh lzo-1.08-4.rf.src.rpmrpm -Uvh lzo-1.08-4.rf.src.rpmrpm -Uvh rpmforge-release*rpm -Uvh rpmforge-release*

    Now we have prepared our server for the install of OpenVPN.Now we have prepared our server for the install of OpenVPN.

    Code: [Code: [ViewView]]

     yum install openvpn -y yum install openvpn -y

    Copy the contents of the “easy-rsa” folder to /etc/openvpn so we can build theCopy the contents of the “easy-rsa” folder to /etc/openvpn so we can build thecertificates required to connect to the VPN.certificates required to connect to the VPN.

    Code: [Code: [ViewView]]

    cp -R /usr/share/doc/openvpn-2.*/easy-rsa/ /etc/openvpn/cp -R /usr/share/doc/openvpn-2.*/easy-rsa/ /etc/openvpn/

  • 8/17/2019 How to Install OpenVPN on a VPS or Dedicated Server

    3/12

    It’s time to create the certificate.It’s time to create the certificate.

    Code: [Code: [ViewView]]

    cd /etc/openvpn/easy-rsa/2.0cd /etc/openvpn/easy-rsa/2.0

    cp openssl-1.0.0.cnf openssl.cnf cp openssl-1.0.0.cnf openssl.cnf 

      *chmod 755 *

    The next step will actually build the certificate. It will ask you questions and they willThe next step will actually build the certificate. It will ask you questions and they willneed to be modified or you can just press “enter” to skip through most of them.need to be modified or you can just press “enter” to skip through most of them.

    Code: [Code: [ViewView]]

    ./build-ca./build-ca

    Country Name:Country Name: Press enter to leave unchangedPress enter to leave unchangedState or Province Name:State or Province Name: Press enter to leave unchangedPress enter to leave unchangedLocality Name:Locality Name: Press enter to leave unchangedPress enter to leave unchangedOrganization Name:Organization Name: Press enter to leave unchangedPress enter to leave unchangedOrganizational Unit Name:Organizational Unit Name: Press enter to leave unchangedPress enter to leave unchangedCommon Name:Common Name: Press enter to leave unchangedPress enter to leave unchangedName:Name: Press enter to leave unchangedPress enter to leave unchanged

    Email Address:Email Address: Press enter to leave unchangedPress enter to leave unchanged

    Code: [Code: [ViewView]]

    ./build-key-server server./build-key-server server

    Use the same entries as build-ca, along with the following additional parametersUse the same entries as build-ca, along with the following additional parameters

    A challenge password:A challenge password:Leave this blankLeave this blankAn optional company name:An optional company name:Optional Optional 

    Sign the certificate?:Sign the certificate?: y y1 out of 1 certificate requests certified, commit?:1 out of 1 certificate requests certified, commit?: y y

    Build DH Parameters (Build DH Parameters (this may take a moment this may take a moment ):):Code: [Code: [ViewView]]

    ./build-dh./build-dh

    We will now make a configuration file for OpenVPN. You may use any text editor youWe will now make a configuration file for OpenVPN. You may use any text editor youlike. I prefer nano and will use it for the remainder of this tutorial.like. I prefer nano and will use it for the remainder of this tutorial.Code: [Code: [ViewView]]

    nano /etc/openvpn/config-default.conf nano /etc/openvpn/config-default.conf 

  • 8/17/2019 How to Install OpenVPN on a VPS or Dedicated Server

    4/12

    Code: [Code: [ViewView]]

    local x.x.x.x #- your_server_iplocal x.x.x.x #- your_server_ipport 1194 #- default portport 1194 #- default portproto udp #- protocolproto udp #- protocol

     dev tun

    If you’re using nano you can save and close the file by “Ctrl+X” and typing “y” at theIf you’re using nano you can save and close the file by “Ctrl+X” and typing “y” at theprompt asking to save changes.prompt asking to save changes.Now lets start the OpenVPN server using the configuration file we just made.Now lets start the OpenVPN server using the configuration file we just made.

    Code: [Code: [ViewView]]

    openvpn /etc/openvpn/config-default.conf &openvpn /etc/openvpn/config-default.conf &

    Ctrl+C to exit from the process monitor. OpenVPN should remain running in theCtrl+C to exit from the process monitor. OpenVPN should remain running in thebackground.background.Enable IP forwarding on the server:Enable IP forwarding on the server:

    Code: [Code: [ViewView]]

    echo 1 > /proc/sys/net/ipv4/ip_forwardecho 1 > /proc/sys/net/ipv4/ip_forward

    Create the iptables routes to enable traffic to flow through the VPN properlyCreate the iptables routes to enable traffic to flow through the VPN properly

    Code: [Code: [ViewView]]

    iptables -t nat -A POSTROUTING -s 1.2.3.0/24 -j SNAT --to x.x.x.xiptables -t nat -A POSTROUTING -s 1.2.3.0/24 -j SNAT --to x.x.x.x

     x.x.x.x is the IP of your server. x.x.x.x is the IP of your server.OpenVPN pulls it’s user data from the Linux system users, so to add users to OpenVPNOpenVPN pulls it’s user data from the Linux system users, so to add users to OpenVPNwe add Linux users.we add Linux users.

    Code: [Code: [ViewView]]

    useradd usernameuseradd username

    passwd usernamepasswd username

    “username” in both instances is the username for your user.“username” in both instances is the username for your user.

    Now is the time you’ve been waiting for. Lets install the OpenVPN client to ourNow is the time you’ve been waiting for. Lets install the OpenVPN client to ourcomputer and try to connect to our new VPN.computer and try to connect to our new VPN.You can find the latest version of the OpenVPN desktop client on the OpenVPN websiteYou can find the latest version of the OpenVPN desktop client on the OpenVPN websiteherehere. As of the writing of this post, version 2.2.2 was the latest stable version. When. As of the writing of this post, version 2.2.2 was the latest stable version. Wheninstalling the client, please pay attention to the directory in which it is installed.installing the client, please pay attention to the directory in which it is installed.Mainly, whether or not it is inMainly, whether or not it is in Program FilesProgram Files oror Program Files (x86)Program Files (x86)..Once we have installed the OpenVPN desktop client, we need to download the key fromOnce we have installed the OpenVPN desktop client, we need to download the key fromthe server that we generated earlier. We will use our SFTP client for this. I use Filezilla.the server that we generated earlier. We will use our SFTP client for this. I use Filezilla.The file can be found in /etc/openvpn/easy-rsa/2.0/keys/. You want to copy theThe file can be found in /etc/openvpn/easy-rsa/2.0/keys/. You want to copy theca.crtca.crt file to the OpenVPN config directory on your desktop. This can be found infile to the OpenVPN config directory on your desktop. This can be found in

  • 8/17/2019 How to Install OpenVPN on a VPS or Dedicated Server

    5/12

    C:\Program Files\OpenVPN\config. If you’re using Windows Visa/7 x64, this will likelyC:\Program Files\OpenVPN\config. If you’re using Windows Visa/7 x64, this will likelybe found in C:\Program Files (x86)\OpenVPN\config.be found in C:\Program Files (x86)\OpenVPN\config.

    Picture 2Picture 2

    We’re now on the home stretch. Lets create a config file on our desktop that will let usWe’re now on the home stretch. Lets create a config file on our desktop that will let usconnect to the VPN.connect to the VPN.Create a file in the same config directory and paste the following details in it.Create a file in the same config directory and paste the following details in it. PleasePleasemake sure it ismake sure it is not not  named named anything.ovpn.txt anything.ovpn.txt or this will not work correctly.or this will not work correctly.

    Code: [Code: [ViewView]]

    clientclientdev tundev tunproto udp #- protocolproto udp #- protocol

      --

     x.x.x.x is the IP address of your server specified earlier in this tutorial. x.x.x.x is the IP address of your server specified earlier in this tutorial.

    Now start the OpenVPN GUI Client and enter your username and password createdNow start the OpenVPN GUI Client and enter your username and password createdearlier.earlier.

    Picture 3Picture 3

    Congratulations, you’re now successfully connected to your new VPN.Congratulations, you’re now successfully connected to your new VPN. If you have anyIf you have anyquestions or issues feel free to ask. Thank you to our staff member Jonathan Wrightquestions or issues feel free to ask. Thank you to our staff member Jonathan Wright

    for writing this tutorial.for writing this tutorial.

    - Daniel- Daniel

     █ █ Managed & Unmanaged VPS'sMana

    ged & Unmanaged VPS's [[OpenVZOpenVZ && KVMKVM] by tmzVPS.com | FAST] by tmzVPS.com | FAST SSD AcceleratedSSD Accelerated Plans!Plans! █ Locations in █ Locations in CaliforniaCalifornia,, FloridaFlorida && LondonLondon - Legal Adult Content Allowed!- Legal Adult Content Allowed! 24/7 Certified Support.24/7 Certifie

    d Support.

     █ █ DDOS Protected VPSDDOS Protected VPS [[KVMKVM] - cPanel/WHM | Premium Softaculous | Data Migration Included!] - cPanel/WHM | Premium Softaculous | Data Migration Included! █ INSTANT SETUP | Paypal, Skrill, 2checkout, █ INSTANT SETUP | Paypal, Skrill, 2checkout, BitCoinBitCoin & all Major Credit Cards Accepted!& all Major Credit Cards Accepted!

    Thank you for the guide! I've seen several OpenVPN tutorials and this is one of theThank you for the guide! I've seen several OpenVPN tutorials and this is one of themost straightforward.most straightforward. Keeping it on my bookmarks just in case.Keeping it on my bookmarks just in case.

     █  █ HostwindsHostwinds Unlimited Web HostingUnlimited Web Hos

    ting

     █ █ Cpanel/WHM | Not Oversold | Low Server Loads | Reseller / Business Plans AvailableCpanel/WHM | Not Oversold | Low Server Loads | Reseller / Business Plans Available █  █ VPS HostingVPS Hos

    ting | OpenVZ | SolusVM | Popular Distributions | Windows VPS's| OpenVZ | SolusVM | Popular Distributions | Windows VPS's

    don't use 1.* for internal IPs!don't use 1.* for internal IPs!

    they arethey are publicly routedpublicly routed IPs beingIPs being used by other peopleused by other people!!!!

    mirACL: firewalls in software.mirACL: firewalls in software.

    HostWinds

     said:06-28-2012 11:57 AM

    quantumphysics

     said:

    06-28-2012 12:09 PM

    ServerZoo

     said:

  • 8/17/2019 How to Install OpenVPN on a VPS or Dedicated Server

    6/12

    nice how to indeed!nice how to indeed!

     Originally Posted byOriginally Posted by quantumphysicsquantumphysicsdon't use 1.* for internal IPs!don't use 1.* for internal IPs!

    they arethey are publicly routedpublicly routed IPs beingIPs being used by other peopleused by other people!!!!

    1.2.3.4 is for example purposes.1.2.3.4 is for example purposes.

    KnownHostKnownHost Managed VPS SpecialistsManaged VPS Spe cialists

    Fully Managed VPS and Dedicated ServersFully Managed VPS and Dedicated Servers

    RocketVPS.comRocketVPS.com - Premium Unmanaged VPS Hosting- Premium Unmanaged VPS Hosting

    KnownHost is hiringKnownHost is hiring!! ClickClick herehere for more informatiofor more information!n!

    IT may sounds strange but many VPS providers have pre-installed templates for this!IT may sounds strange but many VPS providers have pre-installed templates for this!

     Originally Posted byOriginally Posted by trigetrige

    IT may sounds strange but many VPS providers have pre-installed templates forIT may sounds strange but many VPS providers have pre-installed templates forthis!this!

    You are correct, but MANY do not. We posted this article on our blog and it has beenYou are correct, but MANY do not. We posted this article on our blog and it has beengetting a lot of hits, which made us post it here because it's in demand.getting a lot of hits, which made us post it here because it's in demand.

    - Daniel- Daniel

     █ █ Managed & Unmanaged VPS'sManaged & Unmanaged VPS's [[OpenVZOpenVZ && KVMKVM] by tmzVPS.com | FAST] by tmzVPS.com | FAST SSD AcceleratedSSD Accelerated Plans!Plans! █ Locations in █ Locations in CaliforniaCalifornia,, FloridaFlorida && LondonLondon - Legal Adult Content Allowed!- Legal Adult Content Allowed! 24/7 Certifie

    d Support.24/7 Certified Support.

     █ █ DDOS Protected VPSDDOS Protected VPS [[KVMKVM] - cPanel/WHM | Premium Softaculous | Data Migration Included!] - cPanel/WHM | Premium Softaculous | Data Migration Included!

     █ INSTANT SETUP | Paypal, Skrill, 2checkout, █ INSTANT SETUP | Paypal, Skrill, 2checkout, BitCoinBitCoin & all Major Credit Cards Accepted!& all Major Credit Cards Accepted!

    FilezillaFilezilla is good as an FTP client, as you wouldn't have to actually enable FTP. If youis good as an FTP client, as you wouldn't have to actually enable FTP. If youset it to use port 22, it will transfer files over SSH, which is much more secureset it to use port 22, it will transfer files over SSH, which is much more secure

    06-28-2012 12:19 PM

    KnownHost-Jonathan

     said:

    06-28-2012 01:00 PM

    trige

     said:

    06-28-2012 03:40 PM

    TmzHosting

     said:

    06-28-2012 04:22 PM

    Abhinandangarg

     said:

    06-29-2012

    05:26 AM

    brlm2011

     said:

  • 8/17/2019 How to Install OpenVPN on a VPS or Dedicated Server

    7/12

    Ok so I am new to installing openVPN on a VPS server which is what I amOk so I am new to installing openVPN on a VPS server which is what I amcurrently trying to do. I know absolutely nothing about this stuff I just followed thecurrently trying to do. I know absolutely nothing about this stuff I just followed thetutorial so far. I have reached the point of making a configuration file but I am stuck.tutorial so far. I have reached the point of making a configuration file but I am stuck.Do I have to use a text editor and save the file as config-default.conf?? Or do i justDo I have to use a text editor and save the file as config-default.conf?? Or do i just

    enter the info into the command line.?? I really have no idea any help would be muchenter the info into the command line.?? I really have no idea any help would be muchappreciated.appreciated.

    Thank you so much! I have tried many tutorials and even the template provided by myThank you so much! I have tried many tutorials and even the template provided by myVPS provider, but this is the only one that has worked, but maybe I did somethingVPS provider, but this is the only one that has worked, but maybe I did something

    wrong with the earlier tutorials. Thanks so much.wrong with the earlier tutorials. Thanks so much.

    AlienVPS: 199.19.116.157AlienVPS: 199.19.116.157

    Simple, but easySimple, but easyMy Website

    My Website

     Originally Posted byOriginally Posted by brlm2011brlm2011Ok so I am new to installing openVPN on a VPS server which is what I am currentlyOk so I am new to installing openVPN on a VPS server which is what I am currentlytrying to do. I know absolutely nothing about this stuff I just followed the tutorial sotrying to do. I know absolutely nothing about this stuff I just followed the tutorial sofar. I have reached the point of making a configuration file but I am stuck. Do I havefar. I have reached the point of making a configuration file but I am stuck. Do I haveto use a text editor and save the file as config-default.conf?? Or do i just enter theto use a text editor and save the file as config-default.conf?? Or do i just enter theinfo into the command line.?? I really have no idea any help would be muchinfo into the command line.?? I really have no idea any help would be muchappreciated.appreciated.

    Jonathan will be in soon and he will get this question answered for you.Jonathan will be in soon and he will get this question answered for you.

     Originally Posted byOriginally Posted by hxrsmurf hxrsmurf Thank you so much! I have tried many tutorials and even the template provided byThank you so much! I have tried many tutorials and even the template provided bymy VPS provider, but this is the only one that has worked, but maybe I didmy VPS provider, but this is the only one that has worked, but maybe I didsomething wrong with the earlier tutorials. Thanks so much.something wrong with the earlier tutorials. Thanks so much.

    AlienVPS: 199.19.116.157AlienVPS: 199.19.116.157I am glad you found this tutorial useful.I am glad you found this tutorial useful.

    - Daniel- Daniel

     █ █ Managed & Unmanaged VPS'sMana

    ged & Unmanaged VPS's [[OpenVZOpenVZ && KVMKVM] by tmzVPS.com | FAST] by tmzVPS.com | FAST SSD AcceleratedSSD Accelerated Plans!Plans! █ Locations in █ Locations in CaliforniaCalifornia,, FloridaFlorida && LondonLondon - Legal Adult Content Allowed!- Legal Adult Content Allowed! 24/7 Certified Support.24/7 Certifie

    d Support.

     █ █ DDOS Protected VPSDDOS Protected VPS [[KVMKVM] - cPanel/WHM | Premium Softaculous | Data Migration Included!] - cPanel/WHM | Premium Softaculous | Data Migration Included! █ INSTANT SETUP | Paypal, Skrill, 2checkout, █ INSTANT SETUP | Paypal, Skrill, 2checkout, BitCoinBitCoin & all Major Credit Cards Accepted!& all Major Credit Cards Accepted!

    06-30-2012 11:27 PM

    hxrsmurf 

     said:

    07-01-2012 07:50 PM

    TmzHosting

     said:

    07-02-2012 07:22 AM

    KnownHost-Jonathan

     said:

    07-02-2012 12:32 PM

  • 8/17/2019 How to Install OpenVPN on a VPS or Dedicated Server

    8/12

     Originally Posted byOriginally Posted by AbhinandangargAbhinandangargFilezillaFilezilla is good as an FTP client, as you wouldn't have to actually enable FTP. If youis good as an FTP client, as you wouldn't have to actually enable FTP. If youset it to use port 22, it will transfer files over SSH, which is much more secureset it to use port 22, it will transfer files over SSH, which is much more secure

    I did listI did list SSFTP client as a requirement, because I did recommend in the tutorial usingFTP client as a requirement, because I did recommend in the tutorial usingSFTP over SSH versus standard FTP.SFTP over SSH versus standard FTP.

     Originally Posted byOriginally Posted by brlm2011brlm2011Ok so I am new to installing openVPN on a VPS server which is what I am currentlyOk so I am new to installing openVPN on a VPS server which is what I am currentlytrying to do. I know absolutely nothing about this stuff I just followed the tutorial sotrying to do. I know absolutely nothing about this stuff I just followed the tutorial sofar. I have reached the point of making a configuration file but I am stuck. Do I havefar. I have reached the point of making a configuration file but I am stuck. Do I haveto use a text editor and save the file as config-default.conf?? Or do i just enter theto use a text editor and save the file as config-default.conf?? Or do i just enter theinfo into the command line.?? I really have no idea any help would be muchinfo into the command line.?? I really have no idea any help would be much

    appreciated.appreciated.

    Which configuration file are you trying to make? If you're trying to make the one onWhich configuration file are you trying to make? If you're trying to make the one onthe server, I would recommend "nano", or if the one for the client, you can just usethe server, I would recommend "nano", or if the one for the client, you can just usenotepad.notepad.

    Alternatively, you can use Notepad for both and simply upload the one for the serverAlternatively, you can use Notepad for both and simply upload the one for the servervia SFTP.via SFTP.

     Originally Posted byOriginally Posted by hxrsmurf hxrsmurf Thank you so much! I have tried many tutorials and even the template provided byThank you so much! I have tried many tutorials and even the template provided bymy VPS provider, but this is the only one that has worked, but maybe I didmy VPS provider, but this is the only one that has worked, but maybe I didsomething wrong with the earlier tutorials. Thanks so much.something wrong with the earlier tutorials. Thanks so much.

    AlienVPS:AlienVPS: censored censored 

    I'm glad to hear that the tutorial worked out for you!I'm glad to hear that the tutorial worked out for you!

    KnownHostKnownHost Managed VPS SpecialistsManaged VPS Spe cialists

    Fully Managed VPS and Dedicated ServersFully Managed VPS and Dedicated Servers

    RocketVPS.comRocketVPS.com - Premium Unmanaged VPS Hosting- Premium Unmanaged VPS Hosting

    KnownHost is hiringKnownHost is hiring!! ClickClick herehere for more informatiofor more information!n!

    TmzHosting

     said:

    07-02-2012 12:37 PM

  • 8/17/2019 How to Install OpenVPN on a VPS or Dedicated Server

    9/12

    I also got this in a PM and wanted to post it here in case someone else is having thisI also got this in a PM and wanted to post it here in case someone else is having thisissue:issue:

    Hey, so i looked at your guide and gave it a go. But when i got to wgetHey, so i looked at your guide and gave it a go. But when i got to wgethttp://openvpn.net/release/lzo-1.08-4.rf.src.rpmht

    tp://openvpn.net/release/lzo-1.08-4.rf.src.rpm

    wgetwget http://pkgs.repoforge.org/rpmforge-r....rf.x86_64.rpmht

    tp://pkgs.repoforge.org/rpmforge-r....rf.x86_64.rpm

    it did not work, it said invalid command.it did not work, it said invalid command.

    - Daniel- Daniel

     █ █ Managed & Unmanaged VPS'sMana

    ged & Unmanaged VPS's [[OpenVZOpenVZ && KVMKVM] by tmzVPS.com | FAST] by tmzVPS.com | FAST SSD AcceleratedSSD Accelerated Plans!Plans! █ Locations in █ Locations in CaliforniaCalifornia,, FloridaFlorida && LondonLondon - Legal Adult Content Allowed!- Legal Adult Content Allowed! 24/7 Certified Support.

    24/7 Certified Support.

     █ █ DDOS Protected VPSDDOS Protected VPS [[KVMKVM] - cPanel/WHM | Premium Softaculous | Data Migration Included!] - cPanel/WHM | Premium Softaculous | Data Migration Included! █ INSTANT SETUP | Paypal, Skrill, 2checkout, █ INSTANT SETUP | Paypal, Skrill, 2checkout, BitCoinBitCoin & all Major Credit Cards Accepted!& all Major Credit Cards Accepted!

     Originally Posted byOriginally Posted by TmzHostingTmzHostingI also got this in a PM and wanted to post it here in case someone else is having thisI also got this in a PM and wanted to post it here in case someone else is having thisissue:issue:

    You need to have wget installed. Many VPS templates omit it. Just do:You need to have wget installed. Many VPS templates omit it. Just do:

     yum install wget

     yum install wget

    Your real IP addressYour real IP address -- That proxy may not be as anonymous as you think! Now with IPv6 support!-- That proxy may not be as anonymous as you think! Now with IPv6 support!

     Originally Posted byOriginally Posted by error10error10You need to have wget installed. Many VPS templates omit it. Just do:You need to have wget installed. Many VPS templates omit it. Just do:

     yum install wget

     yum install wget

    OR, for Debian-based distro's:OR, for Debian-based distro's:

    Code: [Code: [ViewView]]

    apt-get install wgetapt-get install wget

    KnownHostKnownHost Managed VPS SpecialistsManaged VPS Spe cialists

    Fully Managed VPS and Dedicated ServersFully Managed VPS and Dedicated Servers

    RocketVPS.comRocketVPS.com - Premium Unmanaged VPS Hosting- Premium Unmanaged VPS Hosting

    KnownHost is hiringKnownHost is hiring!! ClickClick herehere for more informatiofor more information!n!

    error10

     said:

    07-02-2012 12:47 PM

    KnownHost-Jonathan

     said:

    07-02-2012 01:49 PM

    BoxyVPS

     said:

    07-04-2012 03:04 PM

  • 8/17/2019 How to Install OpenVPN on a VPS or Dedicated Server

    10/12

    Thanks for this, If you dont mind i have put it on my site.Thanks for this, If you dont mind i have put it on my site.

    I have put where it originated from.I have put where it originated from.

    -BoxyVPS-BoxyVPS

    Very useful, detailed and informative tutorial!Very useful, detailed and informative tutorial!

     Originally Posted byOriginally Posted by BoxyVPSBoxyVPSThanks for this, If you dont mind i have put it on my site.Thanks for this, If you dont mind i have put it on my site.

    I have put where it originated from.I have put where it originated from.

    -BoxyVPS-BoxyVPS

    Can you please share the link where it is posted. It really originated from our blog.Can you please share the link where it is posted. It really originated from our blog.

    - Daniel- Daniel

     █ █ Managed & Unmanaged VPS'sMana

    ged & Unmanaged VPS's [[OpenVZOpenVZ && KVMKVM] by tmzVPS.com | FAST] by tmzVPS.com | FAST SSD AcceleratedSSD Accelerated Plans!Plans! █ Locations in █ Locations in CaliforniaCalifornia,, FloridaFlorida && LondonLondon - Legal Adult Content Allowed!- Legal Adult Content Allowed! 24/7 Certified Support.24/7 Certifie

    d Support.

     █ █ DDOS Protected VPSDDOS Protected VPS [[KVMKVM] - cPanel/WHM | Premium Softaculous | Data Migration Included!] - cPanel/WHM | Premium Softaculous | Data Migration Included! █ INSTANT SETUP | Paypal, Skrill, 2checkout, █ INSTANT SETUP | Paypal, Skrill, 2checkout, BitCoinBitCoin & all Major Credit Cards Accepted!& all Major Credit Cards Accepted!

    Awesome tutorial.Awesome tutorial.

    UltimatehostingsUltimatehost

    ings

    Fully Managed ServicesFully Managed Services

    great tutgreat tut

     years i couldnt figure this stuff out years i couldnt figure this stuff out

    now i already set this up on 10 of my systems!now i already set this up on 10 of my systems!

  • 8/17/2019 How to Install OpenVPN on a VPS or Dedicated Server

    11/12

     Originally Posted byOriginally Posted by doughnetdoughnet

    great tutgreat tut

     years i couldnt figure this stuff out years i couldnt figure this stuff out

    now i already set this up on 10 of my systems!now i already set this up on 10 of my systems!

    Fast Hosting,(25 minute initial ticket response time guarantee)Fast Hosting,(25 minute initial ticket response time guarantee)Hosting in PakistanHos

    ting in Pakistan -> Keep your site online with Cheap Price-> Keep your site online with Cheap Price

    I keep getting thisI keep getting this

    Code: [Code: [ViewView]]

    Connecting to apt.sw.be|193.1.193.67|:80... connected.Connecting to apt.sw.be|193.1.193.67|:80... connected.-bash: 193.1.193.67: command not found-bash: 193.1.193.67: command not found-bash: :80...: command not found-bash: :80...: command not found-bash: Connecting: command not found-bash: Connecting: command not found

     ~

    When trying to install thisWhen trying to install thiswgetwget http://pkgs.repoforge.org/rpmforge-r....rf.x86_64.rpmht

    tp://pkgs.repoforge.org/rpmforge-r....rf.x86_64.rpm

    Nice tutorial!Nice tutorial!

    TmzHosting

     said:

    07-23-2012 10:50 AM

    gold2

     said:

    07-23-2012 12:35 PM

    neovo

     said:

    08-03-2012 07:34 PM

    CronicHosting

     said:

    08-10-2012 08:52 AM

    dmitriy2011

     said:

  • 8/17/2019 How to Install OpenVPN on a VPS or Dedicated Server

    12/12

    Hi.Hi.

    Please pardon my ignorance but if I want to use vpn with torrent client do I need to setPlease pardon my ignorance but if I want to use vpn with torrent client do I need to setthe torrent client to use the port of the vpn or I will still be able to use a random portthe torrent client to use the port of the vpn or I will still be able to use a random portin my torrent client?in my torrent client?

    Thank you for help.Thank you for help.

    DD

    Log inLog in RegisterRegister TopTop

    Powered by vBulletinPowered by vBulletinCopyright ©2000 - 2015, Jelsoft Enterprises Ltd.Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.

    © WebHostingTalk, 1998. All Rights Reserved.© WebHostingTalk, 1998. All Rights Reserved.

    10-19-2012 10:49 PM

    11 2