Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Ask HN: Devops VPN between servers?
2 points by plasma on May 1, 2013 | hide | past | favorite | 3 comments
Hi HN,

Does anyone have experience setting up a VPN between backend machines (web tier, database tier, ...) across both Windows and Linux machines - without a hardware router/firewall controlling the VPN?

I've investigated OpenVPN, stunnel and tinc (http://www.tinc-vpn.org/) and so far tinc seems the most suitable but needs further research on my behalf.

The requirements are what you'd expect for a production environment:

1) Private LAN IPs between hosts

2) Encrypted traffic across the VPN

3) No SPOF with regards to the VPN host

4) Routing efficient (local machines in the same data center should send packets direct to each other, and not via a "router" machine)

EDIT: This is to manage a network between cloud services (Azure) and dedicated hardware.

Cheers



I've used openvpn for this - it's worked pretty well.

As far as SPOF, you set up multiple servers on the server side with different external ips, handing out different ranges of vpn ip addresses. In the client config, you list multiple servers that the client is allowed to connect to.

So, in my setup, I have 10.1.0.0/24 as the LAN Two vpn servers with different external ips, LAN ips, and a vpn (tun interface) ip with different subnets (10.8.1.0/24 and 10.8.2.0/24). The clients are given the two external ips as servers to connect to and they'll be given an ip address for their tun interface on the respective subnet for the server they connected to.

Here are some configs to take a look at: http://pastebin.com/TL95UfzU

You'll need to go through the bit of the tutorial for creating the server keys and keys for the clients.


http://aws.amazon.com/vpc/ ?

ETA: Or are you referring to machines you physically manage? If not, then I would just go with AWS. All the components are already there.

I'm sure other providers, such as Azure, have the same functionality.


A mixture of both - added clarification to the post!

Unfortunately Azure is lacking in this department, they seem to have a Virtual Network which may be what I'm after but it's overly complicated, and unfortunately I need a solution for dedicated-only machines too.

Thanks for the reply.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: