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 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