Live data from Hacker News

How to Setup an OpenVPN Server on Digital Ocean

github.com

21–30 of 36 posts

Re: How to Setup an OpenVPN Server on Digital Ocean

#21
post #3

Would this work on Amazon EC2 as well?

Very similar.

However, for EC2 Linux instances you'll need to enable IP forwarding by disabling Source/Destination Check for the instance in addition to setting net.ipv4.ip_forward=1 for the VM.

Also EC2 uses layered security, so you may have OS level packet filter, then NACLs (if used - stateless), finally Security Groups (stateful).

Re: How to Setup an OpenVPN Server on Digital Ocean

#22
post #20

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.

I use viscosity, which has the added benefit of allowing multiple VPN's (e.g. to multiple VPC's on AWS or w/e).

Re: How to Setup an OpenVPN Server on Digital Ocean

#23
post #20

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.

I use viscosity, which has the added benefit of allowing multiple VPN's (e.g. to multiple VPC's on AWS or w/e).

Thanks! That is exactly what we need at our company!

Re: How to Setup an OpenVPN Server on Digital Ocean

#24
post #20

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.

The latest 2.4 client does not require Administrator privileges.

Re: How to Setup an OpenVPN Server on Digital Ocean

#25
post #9

You could also get CoreOS and a container with openvpn in a few lines https://github.com/kylemanna/docker-openvpn

The open VPN container is amazing. Definitely worth a look. If you commands and you'll get service plus an auto-login profile that is about as easy to use as possible.

It doesn't need to be CoreOS, it can be any docker host.

Re: How to Setup an OpenVPN Server on Digital Ocean

#26
L2TP is quite old, itself does not provide encryption or confidentiality to traffic passes thru it. L2TP/IPsec encapsulates data twice at layer 2, it has pros and cons. See this -> https://www.bestvpn.com/blog/4147/pptp-vs-l2tp-vs-openvpn-vs...

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.

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's properly configured ;-) The only drawback is that strongSwan currently does not have a mature HA solution but it's shaping up (5.4.0 introduced IKEv2 redirect). Hopefully a proper HA solution will be built on top of that and later productized ;-)

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

HTH

Re: How to Setup an OpenVPN Server on Digital Ocean

#29
post #9

You could also get CoreOS and a container with openvpn in a few lines https://github.com/kylemanna/docker-openvpn

The open VPN container is amazing. Definitely worth a look. If you commands and you'll get service plus an auto-login profile that is about as easy to use as possible. It doesn't need to be CoreOS, it can be any docker host.

Sure. Just CoreOS makes it easier with docker-rkt pre-installed.

You can get an openvpn container on dply.co in 1-2 minutes, and you use it for free...

Re: How to Setup an OpenVPN Server on Digital Ocean

#30

Probably a silly question but what will I do with this? 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. 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's the motivation for a setup like this. [1]: ht…

Only traffic destined to the subnet in encryption domain go through the VPN connection (you can check IP routing table and identify that - interface should be tun0 or equivalent).

In case of OpenVPN remote access use case, you may have to route all traffic through the VPN connection (TunnelBlick has an option for you to tick, or you'll have to generate a new client config file), you also need proper NAT rules in place on the OpenVPN server.

To achieve what you want, blocked sites over VPN and unblocked via your ISP, extra effort may be needed, e.g. by poking around routing table and/or using dnsmasq.

Post reply on HN