TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

How to Setup an OpenVPN Server on Digital Ocean

78 pointsby git-sgmooreover 8 years ago

17 comments

terrywangover 8 years ago
L2TP is quite old, itself does not provide encryption or confidentiality to traffic passes thru it. L2TP&#x2F;IPsec encapsulates data twice at layer 2, it has pros and cons. See this -&gt; <a href="https:&#x2F;&#x2F;www.bestvpn.com&#x2F;blog&#x2F;4147&#x2F;pptp-vs-l2tp-vs-openvpn-vs-sstp-vs-ikev2&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.bestvpn.com&#x2F;blog&#x2F;4147&#x2F;pptp-vs-l2tp-vs-openvpn-vs...</a><p>IKEv{1,2} + IPsec (tunnel mode) is recommended. strongSwan is probably the best free, open source IPsec solution out there (much better than libreswan...), very good documentation and examples etc, actively developed and maintained by a bunch of passionate guys that knows the stuff.<p>Our company (pre-IPO startup) has been using strongSwan for 2+ years as site-to-site solution from on-premises data centres to AWS VPC, proved to be rock solid as long as it&#x27;s properly configured ;-) The only drawback is that strongSwan currently does not have a mature HA solution but it&#x27;s shaping up (5.4.0 introduced IKEv2 redirect). Hopefully a proper HA solution will be built on top of that and later productized ;-)<p>BTW: I myself have been using strongSwan since 5.0.x for remote access, to protect privacy, fight censorship (yes, originally from China mainland where GFW is in place, etc...). The native strongSwan client for Android is a killer ;-)<p>HTH
amingilaniover 8 years ago
Probably a silly question but what will I do with this?<p>I have a personal DO OpenVPN proxy setup because my country (Pakistan) censors internet, which I made following the DO guide [1]. I set it up a while ago, and it was mostly copying commands.<p>Will this allow me to use Tunnelblink and use my VPN as a proxy? Will it let me connect my machines to each other a VPN? What&#x27;s the motivation for a setup like this.<p>[1]: <a href="https:&#x2F;&#x2F;www.digitalocean.com&#x2F;community&#x2F;tutorials&#x2F;how-to-set-up-an-openvpn-server-on-ubuntu-16-04" rel="nofollow">https:&#x2F;&#x2F;www.digitalocean.com&#x2F;community&#x2F;tutorials&#x2F;how-to-set-...</a>
评论 #13352384 未加载
评论 #13353054 未加载
AdamGibbinsover 8 years ago
<a href="https:&#x2F;&#x2F;github.com&#x2F;trailofbits&#x2F;algo" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;trailofbits&#x2F;algo</a> and <a href="https:&#x2F;&#x2F;github.com&#x2F;jlund&#x2F;streisand" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;jlund&#x2F;streisand</a> are also great alternatives.
antouankover 8 years ago
You could also get CoreOS and a container with openvpn in a few lines <a href="https:&#x2F;&#x2F;github.com&#x2F;kylemanna&#x2F;docker-openvpn" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;kylemanna&#x2F;docker-openvpn</a>
评论 #13352466 未加载
mpittover 8 years ago
&gt; wget ... --no-check-certificate<p>Why? Oh why?
评论 #13352569 未加载
评论 #13352989 未加载
评论 #13352309 未加载
beagle3over 8 years ago
My experience with openvpn is abysmal. It is slow, tunnels tcp-over-tcp the wrong way[0], tunnels udp-over-tcp the wrong way, and the connections were quite fargile.<p>Does anyone have alternatives to recommend? SoftEther looks like the bees knees from the website, but I haven&#x27;t found trustworthy reviews from real users.<p>[0] <a href="http:&#x2F;&#x2F;sites.inka.de&#x2F;bigred&#x2F;devel&#x2F;tcp-tcp.html" rel="nofollow">http:&#x2F;&#x2F;sites.inka.de&#x2F;bigred&#x2F;devel&#x2F;tcp-tcp.html</a>
philfreoover 8 years ago
<a href="https:&#x2F;&#x2F;github.com&#x2F;hwdsl2&#x2F;setup-ipsec-vpn" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;hwdsl2&#x2F;setup-ipsec-vpn</a> has one-click options for DigitalOcean (<a href="http:&#x2F;&#x2F;dovpn.carlfriess.com&#x2F;" rel="nofollow">http:&#x2F;&#x2F;dovpn.carlfriess.com&#x2F;</a>) and others
robbinttover 8 years ago
I made a project like this as well, but with Ansible. I submitted a separate post for that but won&#x27;t link it here out of courtesy. <a href="https:&#x2F;&#x2F;github.com&#x2F;robbintt&#x2F;popup-openvpn" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;robbintt&#x2F;popup-openvpn</a>
olavggover 8 years ago
Do anyone know about a good user friendly OpenVPN client for Windows? The official one requires a lot of fiddling with administrator permissions to work, which most non tech people have no chance to do successfully.
评论 #13352453 未加载
评论 #13352421 未加载
eknkcover 8 years ago
Take a look at dockerized alternatives too. Makes it a lot easier.<p>For example <a href="https:&#x2F;&#x2F;hub.docker.com&#x2F;r&#x2F;siomiz&#x2F;softethervpn&#x2F;" rel="nofollow">https:&#x2F;&#x2F;hub.docker.com&#x2F;r&#x2F;siomiz&#x2F;softethervpn&#x2F;</a> outputs the config file to stdout so you can just run it, get the config with docker logs and connect.
评论 #13351965 未加载
cmsimikeover 8 years ago
I&#x27;ve been using pivpn[0] for about a year now (first on a raspi, and now on ubuntu 16.04 server). Wraps all the basic commands like client cert gen and revocation. Many sensible defaults.<p>[0] <a href="https:&#x2F;&#x2F;github.com&#x2F;pivpn&#x2F;pivpn" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;pivpn&#x2F;pivpn</a>
dannysuover 8 years ago
I follow this guide for setting up OpenVPN: <a href="https:&#x2F;&#x2F;www.tinfoilsecurity.com&#x2F;blog&#x2F;dont-get-pwned-on-public-wifi-use-your-own-vpn-tutorial-guide-how-to" rel="nofollow">https:&#x2F;&#x2F;www.tinfoilsecurity.com&#x2F;blog&#x2F;dont-get-pwned-on-publi...</a>
tribbyover 8 years ago
by only looking at the source (haven&#x27;t installed it) I&#x27;m guessing this leaks ipv6 addresses and probably shouldn&#x27;t be used. this is the second openvpn install script to match that description today.
评论 #13353116 未加载
joshiejover 8 years ago
Would this work on Amazon EC2 as well?
评论 #13352407 未加载
评论 #13352134 未加载
manish_gillover 8 years ago
I have one. I wish it would still work with Netflix. :(<p>Sigh.
whyileftover 8 years ago
<a href="https:&#x2F;&#x2F;github.com&#x2F;Nyr&#x2F;openvpn-install" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;Nyr&#x2F;openvpn-install</a> with a budget $15&#x2F;year vps and you&#x27;re good for personal needs.<p>That said, this is a great write-up and I&#x27;m sure very helpful to those that need to set up a more custom&#x2F;mission critical development.
评论 #13352388 未加载
rick_perezover 8 years ago
An easier alternative is to tunnel everything through a SSH connection.<p>I use putty tunneling+proxifier (on windows) and a python script on my ubuntu box (The name is escaping me at the moment).<p>It&#x27;s very simple to setup, doesn&#x27;t require a ton of configuration, and can be just a secure as a VPN connection.<p>I&#x27;ve never been a fan of OpenVPN. Configuration is cumbersome and performance wasn&#x27;t that great.
评论 #13354090 未加载