In this tutorial, I'm going to show you how to add a CentOS 6 server as a OpenVPN client to your existing Site to Site VPN.
This is an extension of my [Tutorial - 30 Minutes or Less] Site to Site VPN with TomatoUSB and OpenVPN and assumes you already have your Site to Site VPN operational. However, you should be able to follow this tutorial and connect to any existing OpenVPN Server.
At the end of this tutorial, your CentOS server will be able to securely access your LAN resources (i.e, computers, printers) on both sites and vice versa (you will also be able to seamlessly access your CentOS server).
Overview of the Steps:
1) Generate Certs and Keys
2) Copy/Transfer over Certs and Keys to Client VPS
3) Install OpenVPN (client)
4) Configure OpenVPN Client
5) Connect
Generate cert/keys for VPS (CentOS 6 32-bit OpenVPN Client)
SSH into your TomatoUSB OpenVPN Server.
#Setup and initialize environment
cd /opt/openvpn-easy-rsa
source ./vars
#myvps_client is the Common Name
./build-key myvps_client
Copy/Transfer over Certs and Keys to Client VPS
Since my CentOS server is running SSH, I'm going to use SSH and SCP (secure copy) to transfer over the certificates and key. You can also transfer over the keys via SFTP or a USB drive.
#create the /etc/openvpn/keys folder on my centos server
ssh root@myvps.qnology.com mkdir -p /etc/openvpn/keys
cd /opt/openvpn-easy-rsa
source ./vars
#myvps_client is the Common Name
./build-key myvps_client
Copy/Transfer over Certs and Keys to Client VPS
Since my CentOS server is running SSH, I'm going to use SSH and SCP (secure copy) to transfer over the certificates and key. You can also transfer over the keys via SFTP or a USB drive.
#create the /etc/openvpn/keys folder on my centos server
ssh root@myvps.qnology.com mkdir -p /etc/openvpn/keys
#copy over the certificates and keys
#all one line
cd /opt/openvpn-easy-rsa
scp keys/ca.crt keys/myvps_client.crt keys/myvps_client.key root@myvps.qnology.com:/etc/openvpn/keys
#all one line
cd /opt/openvpn-easy-rsa
scp keys/ca.crt keys/myvps_client.crt keys/myvps_client.key root@myvps.qnology.com:/etc/openvpn/keys
Install OpenVPN on CentOS 6
#Bring everything up to date
yum -y update
#Add EPEL (Extra Packages for Enterprise Linux) Repo
# RHEL/CentOS 6 32-Bit ##
cd /tmp
wget http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm rpm -ivh epel-release-6-8.noarch.rpm
yum --enablerepo=epel install openvpn.i686
Configure OpenVPN Client
#copy sample client.conf to /etc/openvpn
cp /usr/share/doc/openvpn-2.2.2/sample-config-files/client.conf /etc/openvpn
#edit openvpn client.conf
nano /etc/openvpn/client.conf
Update the following lines
#remote OpenVPNServer.ADynamicDNSAddress.com 1194
#ca /etc/openvpn/keys/ca.crt
#cert /etc/openvpn/keys/myvps_client.crt
#key /etc/openvpn/keys/myvps_client.key
#start VPN manually to test
openvpn --config /etc/openvpn/client.conf
#test starting VPN as a service
service openvpn start
#remote OpenVPNServer.ADynamicDNSAddress.com 1194
#ca /etc/openvpn/keys/ca.crt
#cert /etc/openvpn/keys/myvps_client.crt
#key /etc/openvpn/keys/myvps_client.key
#start VPN manually to test
openvpn --config /etc/openvpn/client.conf
#test starting VPN as a service
service openvpn start
#autostart at OpenvPN client on reboot
chkconfig openvpn on
Hi Qui,
ReplyDeleteThanks for all the hard work you have done on making this happen. Worked really well for me until I had daft idea of Cups printing. Killed setup so did a reinstall. all working except getting error on svn checkout https://github.com/archlinuxarm/PKGBUILDs/trunk/aur/plexmediaserver as file not found. what should I do now?
You posted this comment on the wrong blog. :)
DeleteThanks for letting me know. Link has been updated. Build in progress and will update pre-compiled package this weekend.
Well ! I use the above steps to add cent os server to vpn . After setting a vpn , i use Ip-details.com to check whether ip gets changed or not .
ReplyDeleteI am glad that I saw this post. It is informative blog for us and we need this type of blog thanks for share this blog, Keep posting such instructional blogs and I am looking forward for your future posts.
DeleteCyber Security Projects for Final Year
JavaScript Training in Chennai
Project Centers in Chennai
JavaScript Training in Chennai
You have a real ability for writing unique content. I like how you think and the way you represent your views.Thanks.
ReplyDeleteI am glad that I saw this post. It is informative blog for us and we need this type of blog thanks for share this blog, Keep posting such instructional blogs and I am looking forward for your future posts.
DeleteCyber Security Projects for Final Year
JavaScript Training in Chennai
Project Centers in Chennai
JavaScript Training in Chennai
I like such tutorials cause they are short and precise. It is talent to write the most important things in the article. I know it cause notext I am a writer.
ReplyDeleteSuperbly written article, if only all bloggers offered the same content as you, the internet would be a far better place.. web
ReplyDeleteWith all that software I still can't get myself VPN so probably this solution will work. I rarely rely on any sites or services besides HitTheGrade but your blog is really cool so I wanna give it a try. Thank you for posting!
ReplyDeleteiTunes is an Apple particular software program, iTunes Account Though iTunes login accounts are mainly made use of on Apple tools.
ReplyDeleteSo you've selected to dive your self into the universe of sport advancement, have accumulated a group of forceful warriors to handle all the tremendous problems and are prepared to make the subsequent high-quality game inside the commercial enterprise. Gmod game
ReplyDeleteCreating a blog can appear difficult for many people, even though for some individuals it's an simple process. Nevertheless, a very important factor that everybody shares in common is that they are searching for ways to improve their blog and attain incre.cheap shoes in Pakistan
ReplyDeleteUptime is one of the most important factors in maintaining an effective online presence. Outages of any duration can be costly. Downtime can impact your organization directly by causing lost sales, signups, etc., or indirectly by hurting your reputation and brand image.mens casual dress shoes
ReplyDeleteayam laga indonesia
ReplyDeleteLoved to read your blog. I speedypaper review would like to suggest you that traffic show most people read blogs on Mondays. So it should encourage blogger to write new write ups over the weekend primarily.
ReplyDeleteThanks
ReplyDeleteI think this is a very good story. If you want to know about carpet cleanings So visit the website.
Top carpet cleaning
BISSELL DeepClean carpet cleaner
Carpet cleaning solutions
How To Buy a Pet carpet cleaner
Check carry on luggage reviews
You have shared a nice article here about the CentOS 6 OpenVPN Client. Your article is very informative and I liked your way to share this article here. If anyone looking for the static ip vpn service, Visit vpnshazam.com
ReplyDeleteThis website can live streaming , you can join at my site :
ReplyDeleteagen judi online terpercaya
Prediksi Bola
Thank you
agenpialaeropa.net
This website can live streaming , you can join at my site :
ReplyDeleteagen judi online terpercaya
Prediksi Bola
Thank you
agenpialaeropa.net
I think this is an informative post and it is very useful and knowledgeable. therefore, I would like to thank you for the efforts you have made in writing this article. If you are looking for antivirus security for your PC and any other digital devices than. Visit@: my sites :-
ReplyDeletemcafee.com/activate |
office.com/setup |
McAfee.com/activate |
office.com/setup |
Thanks for all the tips mentioned in this article! it’s always good to read things you have looking for antivirus security for your PC and any other digital devices than. Visit@: my sites :- office.com/myaccount |
ReplyDeleteoffice.com/myaccount |
McAfee MIS Retailcard |
www.mcafee.com/activate.
ReplyDeleteYou providing the content is very easy to understand for me and attractive to me. Truly well post keep continue the posting...
Primavera Training in Chennai
Primavera Course in Chennai
Tableau Training in Chennai
Spark Training in Chennai
Power BI Training in Chennai
Excel Training in Chennai
Oracle Training in Chennai
Oracle DBA Training in Chennai
Social Media Marketing Courses in Chennai
office.com/setup microsoft office setup is the item setup record with this setup report you can present on your pc and a part of the reinforced contraption to use microsoft office. The microsoft office programming just as all the item constantly has the setup record, and it is basic, without the setup report the item turn futile
ReplyDeleteoffice.com/setup
office.com/setup get present and dynamic. microsoft office setup is the full suite of microsoft limit programming that joins a blend of businesses, affiliations, and server like surpass desires, powerpoint, word, onenote, distributer and access.
ReplyDeleteoffice.com/setup
norton.com/setup norton antivirus actuation and setup of specialized help administrations norton antivirus is intended to identify and wipe out the conceivable dangers for a framework like worms,trojan and different infections and can play out various application examine.
ReplyDeleteoffice.com/setup
norton.com/setup
mcafee.com/activate
mcafee.com/activate
Thanks for posting this info. I just want to let you know that I just check out your site and I find it very interesting and informative.
ReplyDeletemcafee.com/activate|mcafee.com/activate|mcafee.com/activate|mcafee.com/activate|norton.com/setup|office.com/setup
Thanks for posting article on this topic.
ReplyDeletehttps://forums.stardock.net/492951/memory-load-and-save-issue
http://forums.scribus.net/index.php/topic,3118.0.html
https://forums.presonus.com/viewtopic.php?f=170&t=30554&p=199348
http://forums.debian.net/viewtopic.php?f=7&t=120938&p=687913#p687913
https://community.hitachivantara.com/thread/8268
Thanks for taking the time to share this informative article here. Reading your article I got numerous valuable information about the VPN. Get a solution for your all MS office problems from officecomsetup-key.com. To know more about us from install office setup
ReplyDeleteWow i can say that this is another great article as expected of this blog.Bookmarked this site.. 5g Technology
ReplyDeleteHey, very nice site. I came across this on Google, and I am stoked that I did. I will definitely be coming back here more often. Wish I could add to the conversation and bring a bit more to the table, but am just taking in as much info as I can at the moment. Thanks .
ReplyDeleteDedicatedHosting4u.com
Consistently learning the new skills and using them to improve myself in the form of performance for betterment.
ReplyDeleteThanks
Cpa offers
office.com/setup, Office Setup with product key Visit www.office.com/setup and follow the on-screen instructions for Office 2019, Office 365, Step by Step.
ReplyDeleteoffice.com/setup- For Downloading, Installing and activating the Office product key, visit www.office.com/setup and Get Started previously Office setup.
ReplyDeleteThis is a fantastic idea! I like it a lot because it's super easy for the audience to see the value of opting in. wonderful and amazing post very use full your post thanks for sharing your article
ReplyDeleteAndroid Application development
Web application
ReplyDeleteYour post is very good. I got to learn a lot from your post. Thank you for sharing your article for us. it is amazing post
what is seo
types of seo
https://www.dpreview.com/members/8812007624/overview
ReplyDeletehttps://dribbble.com/pinkyrao
https://www.crunchyroll.com/user/pinkyrao
https://www.discogs.com/user/raop3602
https://www.reverbnation.com/earnigo8
Let create a new world for yourselft by way take part in the games– sims 4 cheats in my site. Click link to visit site. Thank you so much. sims 4 skill cheats
ReplyDeleteSign in to enter office setup product key. Know how to benefit, download, install, set in movement, uninstall and reinstall MS office setup.
ReplyDeleteoffice.com/setup
http://officecom-officeoffice.com/
call us at +1-888-421-9666[tool free]
Great job, I read a lot of blog post and I never heard of a topic like this. This is probably the best, most concise step -by-setup guide I have ever seen.
ReplyDeleteoffice.com/setup ! mcafee.com/activate ! mcafee.com/activate
awesome survey, i am positive you'now not inside the make remote off from getting a acquiescent reputation. Guest Post
ReplyDeleteVery nice, it’s really amazing and informative also. Visit OGEN Infosystem for Best Website Designing Company and get creative and responsive website designing.
ReplyDeleteBest Website Designing Company in Delhi
According to me this is the best blog tutorial on the google.Thanks for sharing such a knowledgeable post with us. I am looking forward for the more blog about vpn on your blogspot.
ReplyDeleteRank your website at first page with us on Google a Within a 1 month at cheap price. 99 Digital Services is the best SEO Agency in Delhi
.
Appslure is a reputed company based in India which provide mobile app development company in mumbai. Our website's layout will be very attractive and responsive, which will gain more visitors and you can get high lead and business from your website. Wonderful post, This article have helped greatly continue writing ..
ReplyDeleteMobile app development company in mumbai
Your Digital Boat is the best digital marketing agency in delhi. It provides you many services like seo, smm, smo, sem, website development, graphic designing and many more visit http://yourdigitalboat.com to get your free demo.
ReplyDelete
ReplyDeleteGreat application to
cloud backup solutions for small business !
Standard MS Office Learning Learn Standard MS Office, In this course you will learn about MS Office Word, MS Office Excel, MS Office Powerpoint,MS Office Access and will know the uses of other Microsoft Office Applications
ReplyDeleteoffice setup
office.com/setup
Go to Office Setup website www.office.com/setup. Sign In to your Microsoft Account Or Create a new Account. Enter your Product key
ReplyDeleteoffice.com/setup
officeoffice
Enzymatic cleaners are commonly used to eliminate organic stains like urine, feces, and blood. However, they're also effective on stubborn food stains like grease, cooking oil, and even wine. Here are are top five uses for enzyme cleaner products in the home.
ReplyDeleteLearn how to use safe and natural ingredients to naturally repel ants and get rid of unwanted ants in the house. These 5 proven home remedies for ants will get rid of these tiny pests without a call to the exterminator.
ReplyDeleteThe great knowledge you have shared admin this is one of the best blogs I have ever read…
ReplyDeleteLooking for setup of Norton to www.norton.com/setup ? The Official Norton Site for setup, download, reinstall is my norton.com/setup where you can enter and activate your product key setup your account https://wwwnorton-norton.com/
Norton setup
www.norton.com/setup
I appreciate your post, Please Keep posting with more information…
ReplyDeleteNorton technical customer care for Antivirus setup can be availed by dialing the norton.com/setup, Phone number, +1-855-619-5888 Call us and remain ensured while taking a shot at your PC. http://nortoncomnortonnorton.com
www. NorTon.com/setup
Norton.com/setup
Thanks for sharing this useful information...
ReplyDeleteNorton.com/setup - Navigate to the www.norton.com/setup in exploiting your problem to go through the practicable guidelines for downloading, installing, and activating your Norton setup successfully. http://nortonwwwnorton.com/
www.norton.com/setup
Ñѽřţŏƞ setup
Thanks for sharing this informational blog tutuapp
ReplyDelete
ReplyDeleteSamsung Printer Customer Care Number
HP Printer Customer Care Number
Epson Printer Customer Care Number
Brother Printer Customer Care Number
Conan Printer customer Care Number
Thanks for posting this info. I just want to let you know that I just check out your site and I find it very interesting and informative.
ReplyDeleteoffice.com/setup
mcafee.com/activate
norton.com/setup
office.com/setup
I was surfing net and fortunately came across this site and found very interesting stuff here. Its really fun to read. I enjoyed a lot. Thanks for sharing this wonderful information.
ReplyDeletenorton.com/setup
norton.com/setup
norton.com/setup
I was surfing net and fortunately came across this site and found very interesting stuff here. Its really fun to read. I enjoyed a lot. Thanks for sharing this wonderful information.
ReplyDeletemcafee.com/activate
mcafee.com/activate
mcafee.com/activate
office.com/setup
mcafee.com/activate
Is it okay to post part of this on my website basically post a hyperlink to this webpage? Expert Witness
ReplyDeleteThanks for posting this info. I just want to let you know that I just check out your site and I find it very interesting and informative
ReplyDeletemcafee.com/activate
office.com/setup
mcafee.com/activate
mcafee.com/activate
ReplyDeleteThankyou.
https://apkmoto.com/ac-market-apk/
https://apkmoto.com/yowhatsapp-apk/
https://apkmoto.com/gbwhatsapp-apk/
Thanks for posting this info. I just want to let you know that I just check out your site and I find it very interesting and informative
ReplyDeletenorton.com/setup
norton.com/setup
norton.com/setup
mcafee.com/activate
office.com/setup
webroot.com/safe
ReplyDeleteThankyou.
https://apkmoto.com/ac-market-apk
https://apkmoto.com/yowhatsapp-apk
https://apkmoto.com/gbwhatsapp-apk
Thanks for posting this info. I just want to let you know that I just check out your site and I find it very interesting and informative. norton.com/setup
ReplyDeleteoffice.com/setup
office.com/setup
mcafee.com/activate
This comment has been removed by the author.
ReplyDeleteExcellent Blog! I would like to thank for the efforts you have made in writing this post. I am hoping the same best work from you in the future as well.
ReplyDeleteI wanted to thank you for this websites! Thanks for sharing. Great websites!
Kinemaster Diamond APK And GB Instagram APK
McAfee Activation By Your Retail Card
ReplyDeleteAuthorization of Security Retail card essentially follow the site mcafee.com/activate and afterward it will demand that you enter the 25 characters long McAfee Activation key Code. At the point when you have entered the privilege McAfee code and various nuances precisely on incitation screen then you can start the download and foundation of your Antivirus Security Online.
visit:
mcafee.com/activate
How to Activate Webroot? 2020
ReplyDeleteWith webroot com safe, you are furnished with world-class web security for the total of your devices and for such an extremely close and expert use. It is possible to confront a couple of issues while presenting www webroot com safe on your Device.
visit:
www.webroot.com/safe
www.avg.com/retail provides the secure and comprehensive way for AVG download setup. www.norton.com/setup, a link offered by Symantec to get your purchased Norton Internet Security or Norton Antivirus activated. Install McAfee with activation code on your device. Register your McAfee product and protect your device after installation. McAfee offers protection for Windows as well as Mac computer. Download and i have norton product key on Windows and Mac. Create an account, signin and download Norton antivirus.Trend Micro antivirus protects devices from every malware, threats and virus. Once you download the setup from www.trendmicro.com/downloadme , you can renew the subscription from trend micro .Install McAfee with Activation Code McAfee Account is essential to proceed with multiple actions such as activation norton product key. Register your McAfee product and protect your device after installation Install McAfee with Activation Code
ReplyDeletekaspersky login antivirus has founded one of the highly protective antivirus programs that one can quickly complete the kaspersky download
ReplyDeleteand installation procedure. canon.com/ijsetup offers the Printer Setup download link where you can install the printer setup further. With the online canon.comijsetup , the user can set up the Canon Printer Model.
Increasing demand and advancement of technology has created a need for cybersecurity. One cannot imagine their day without a computer, internet, email or other cyber stuff. But, the cyber world is full of threats, different kinds of attacks, snooping and malicious software. So we need a special security system which can protect our cyberspace from any attack and malfunctioning. norton.com/setup | www.norton.com/setup
ReplyDeleteNorton AntiVirus is an anti-virus or anti-malware software product, developed and distributed by Symantec Corporation since 1991 as part of its Norton family of computer security products. It uses signatures and heuristics to identify viruses. Norton antivirus offers complete protection against any digital threat. If anyone wants to safeguard their computers, then they should go to norton com setup.
ReplyDeleteinstall norton using product key | norton setup enter product key | norton install with product key | www.norton.com setup | www.norton.com setup install | installing norton with product key | norton.com setup install with product key | www.norton com.setup | norton setup
McAfee account has an important part in multiple activities such as registration, activation, renewing subscription, and many more. If you reach the mcafee com activate and enter the key, then you can create your account from the register option. Also, there are many other situations when the software or McAfee related works will ask you to enter the account details, then also you can create an account. Here are some easiest steps that you can follow and create McAfee account www.mcafee.com/activate | mcafee.com/activate | mcafee activate
ReplyDeleteMcAfee account has an important part in multiple activities such as registration, activation, renewing subscription, and many more.
ReplyDeletemcafee. com/activate key code | www.mcafee.com activate | mcafee. com/activate | mcafee com activate | mcafee. com/activate key code | mcafee activate 25 digit code
Thanks for sharing, I just like the valuable info you provide for your articles. I'll bookmark your weblog and take a
ReplyDeletelook at once more right here regularly.
Raksha bandhan quotes
New comedy movies
free amazon prime account
Moviesda
movierulz plz
jio rockers
You have any office.com/setup related issue.Very powerful and have true and fresh information. you can visit here and You can fix your problem.
ReplyDeleteOffice.com/setup
In the above tutorial I got to know how to add CentOS 6 server as a OpenVPN client, and I am very pleased with that. Many people, including me, had problems with this, but not now. Essay Writing Services
ReplyDeleteTreat Assignment Help is one of the most trusted names in UK offering Marketing Dissertation Help services. Contact us getting your desired career then get online marketing dissertation writing help.For more services : English Essay Help | Dissertation Help
ReplyDeleteThanks for posting this info. I just want to let you know that I just check out your site and I find it very interesting and informative.
ReplyDeletenorton.com/setup
mcafee.com/activate
office.com/setup
ReplyDeleteNorton is an antivirus that can prevent attacks online, such as malicious ransomware, dangerous updates and hazardous websites. Across today’s environment, millions of people access the internet every day.
www.norton.com/enroll
ReplyDeleteNorton is a one of the best antivirus product, that have good capacity to fight with unwanted infection which can harm your computer and networks. Every user should have an antivirus program on their computer and Norton is a good choice.
norton.com/enroll
ReplyDeleteNorton Antivirus software is called Computer Security Guard which protects your system from the eyes of hackers and protects against harmful elements such as viruses, Trojans, threats, malware.
norton.com/setup
Norton is the best option available in the market. Norton Antivirus is an effective anti-malware scanning engine that is reliable. Because millions of people are browsing the web every day.
ReplyDeletenorton.com/enroll
[url=https://en-enroll.com/]norton.com/enroll [/url]
Mathematical and applied are two aspects and to learn data science, one has to gain an understanding of both of these aspects. data science course syllabus
ReplyDeleteThanks for posting this info. I just want to let you know that I just check out your site and I find it very interesting and informative.
ReplyDeleteoffice.com/setup
norton.com/setup
mcafee.com/activate
Have you ever asked someone ’Can you write my essay for me?’. With the guidance and support from Professional Essay Writer at total assignment help, you can submit the best essays which gets you the grade you want.
ReplyDeleteThis information is very useful for new website owners and through this, they can get knowledge about VPN. Some experts think that VPN are not useful for our websites, and we should avoid from VPN. What is your opinion about it? Dissertation writing service.
ReplyDeleteScholars need to connect with effective online assignment writing for do my assignment query. For that, visit website of online service providers and check their reliability before placing your order for any subject.
ReplyDeleteMua vé máy bay tại Aivivu, tham khảo
ReplyDeleteve may bay di my gia re
chuyến bay hồi hương từ mỹ về việt nam
từ nhật bản về việt nam bao nhiêu tiền
vé máy bay từ Toronto về việt nam