How to Setup an OpenVPN Server on Digital Ocean
github.com
github.com
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
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]: https://www.digitalocean.com/community/tutorials/how-to-set-...
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.
It doesn't need to be CoreOS, it can be any docker host.
You can get an openvpn container on dply.co in 1-2 minutes, and you use it for free...
Why? Oh why?
But it's downloading stuff via HTTP, so certificate verification doesn't help that much.
Does anyone have alternatives to recommend? SoftEther looks like the bees knees from the website, but I haven't found trustworthy reviews from real users.
For example https://hub.docker.com/r/siomiz/softethervpn/ outputs the config file to stdout so you can just run it, get the config with docker logs and connect.
Having a GUI can make playing with it really fun and easy. I spent yesterday toggling through all the different encryption methods to see how they effected mobile performance (turns out: it effects it a LOT. Don't encrypt stronger than necessary!)
depending on your server environment you'll want to use ip6tables with essentially the same commands as iptables, substituting for ipv6 addresses.
Thanks.
In the past, I've had a habit of passing "ipv6.disable=1" (a.k.a. the "nuclear option") to the kernel on hosts I manage. I'm trying to get away from that, though, and lately, I've simply been dropping "everything IPv6" in my rulesets to avoid things like this.
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).
Sigh.
That said, this is a great write-up and I'm sure very helpful to those that need to set up a more custom/mission critical development.
I use putty tunneling+proxifier (on windows) and a python script on my ubuntu box (The name is escaping me at the moment).
It's very simple to setup, doesn't require a ton of configuration, and can be just a secure as a VPN connection.
I've never been a fan of OpenVPN. Configuration is cumbersome and performance wasn't that great.
NOTE: some tips written down previously ;-) https://sites.google.com/site/imterry/computer/tools/ssh
In countries like China (and more) where massive state-sponsored Internet censorship is in place, the unusual SSH traffic pattern can be easily detected and IPs of the SSH server blocked in less than a hour. That's why IPsec (strongSwan) and OpenVPN start to become popular among Chinese netizens and skills have been developed (networking, security etc...) LoL