News for hackers. Stuff that matters.
Re:Ansible playbooks for installing OpenVPN, IPsec, Tor, etc... by 45h34jh53k4j on Thursday March 30, 2017 @12:44PM (#13996923)
Streisand is a good idea, but I don't believe users want 500 services running on their VPN gateway. Most of these protocols require a specific client, like OpenVPN. This is a 'kitchen sink' collection.

TrailOfBits released their ansible scripts for StrongS/WAN, which has sensible secure defaults (IPSec using AES-GCM only). They are calling the project algo.

https://github.com/trailofbits/algo

Re:Ansible playbooks for installing OpenVPN, IPsec, Tor, etc... by bitexploder on Thursday March 30, 2017 @01:05PM (#13997082)
It is pretty easy to turn off any roles you don't want on Streisand. If you know for sure you will be using IPSEC I agree with you, use the ToB setup.

Specifically, compare their IKE setups:

https://github.com/jlund/streisand/blob/master/playbooks/rol...

https://github.com/trailofbits/algo/blob/master/roles/vpn/te...

Algo's is much more conservative. Streisand lets 3des and SHA1 into the mix. If you allow it, users will end up using it.

Otherwise, I think you are spot on and I prefer Algo (having used both for various things and just playing around).

Re:Ansible playbooks for installing OpenVPN, IPsec, Tor, etc... by codezero on Thursday March 30, 2017 @02:38PM (#13997814)
For anyone about to try out algo – I assume it's great if you are using AWS or DigitalOcean, but if you're self hosting, or have an unsupported VPS, I've had nothing but trouble getting it up and running. I am most certainly to blame, but just a heads up.
Re:Ansible playbooks for installing OpenVPN, IPsec, Tor, etc... by KingMob on Thursday March 30, 2017 @06:31PM (#13999475)
Not to toot my own horn, but here's a blog post I just wrote on some issues I ran into setting up Algo on a pre-existing Vultr server. It might help.

http://modulolotus.net/posts/2016-03-28-setting-up-algo/

Re:Ansible playbooks for installing OpenVPN, IPsec, Tor, etc... by codezero on Thursday March 30, 2017 @07:19PM (#13999799)
Excellent I'm embarrassed that I didn't ask if anyone had done this and wrote up their results.

From what I was experiencing, I bet it was either the root privileges, or the SSH connection errors. Thanks a ton.

Re:Ansible playbooks for installing OpenVPN, IPsec, Tor, etc... by dboreham on Thursday March 30, 2017 @12:37PM (#13996853)
Ironic that a project to do automated installation of packages on a remote machine has two pages of manual installation instructions for prerequisites on the command machine, before it can be run.
Re:Ansible playbooks for installing OpenVPN, IPsec, Tor, etc... by gmac on Thursday March 30, 2017 @01:05PM (#13997081)
For this reason, amongst others, I've made a simple Bash script to install StrongSwan: https://github.com/jawj/IKEv2-setup
Re:Ansible playbooks for installing OpenVPN, IPsec, Tor, etc... by boomboomsubban on Thursday March 30, 2017 @07:13PM (#13999761)
It's install git, pip, ansible, some python libraries, and download the script. It's two pages because they support a lot of operating systems on a lot of vps providers.
Re:Ansible playbooks for installing OpenVPN, IPsec, Tor, etc... by blakesterz on Thursday March 30, 2017 @12:46PM (#13996940)
I thought you were being snarky but I went and had a look and I see what you mean there, other than installing ansible, seems like that can just be another role as well.
Re:Ansible playbooks for installing OpenVPN, IPsec, Tor, etc... by alphapapa on Thursday March 30, 2017 @02:51PM (#13997911)
It almost seems ironic to me to run a personal privacy-protecting server in a cloud VM. If you assume that the "agencies" have access to the "clouds," whether directly through backdoors or through moles, don't you have to assume that they could crawl VMs, detect ones like this that are virtually identical, and automatically install rootkits in them? Or just monitor them by reading memory through the hypervisor? How would you even know if the hypervisor were compromised?
Re:Ansible playbooks for installing OpenVPN, IPsec, Tor, etc... by juliangoldsmith on Thursday March 30, 2017 @03:19PM (#13998111)
This is more likely a response to the recent reversal of FCC privacy rules.

This may not defend against state actors, but will against nosy ISPs.

Re:Ansible playbooks for installing OpenVPN, IPsec, Tor, etc... by danellis on Thursday March 30, 2017 @05:15PM (#13998934)
What about the cloud providers' ISPs?
Re:Ansible playbooks for installing OpenVPN, IPsec, Tor, etc... by juliangoldsmith on Thursday March 30, 2017 @05:23PM (#13998989)
Backbone providers provide services to businesses. If one of them was caught monitoring traffic, their reputation would be destroyed.
Re:Ansible playbooks for installing OpenVPN, IPsec, Tor, etc... by bigbugbag on Friday March 31, 2017 @02:15AM (#14001523)
That's why they go the extra length not to be caught. Even if they wanted to alert a user that he's monitored, wouldn't national security letter come with a gag order forbidding this ?
Re:Ansible playbooks for installing OpenVPN, IPsec, Tor, etc... by juliangoldsmith on Friday March 31, 2017 @09:44AM (#14003668)
We're talking ISPs here, not state actors. If an individual catches the full attention of the NSA, there's not all that much they can do to defend their privacy.
Re:Ansible playbooks for installing OpenVPN, IPsec, Tor, etc... by bigbugbag on Friday March 31, 2017 @02:13AM (#14001512)
Please don't fall for marketing wording, there's no "cloud". It's called a data center. Choose a data center where the authority you want protection from does not have access, outside of US if you want to prevent your data from being among those sold by ISPs.

As usual it depends on the threat model you want to protect from and if you are a high profile target there's not much you can do against a nation state.

Re:Ansible playbooks for installing OpenVPN, IPsec, Tor, etc... by htrp on Thursday March 30, 2017 @04:06PM (#13998457)
This is the Mossad argument on cryptography.... if your adversary is Mossad, they'll just rubber hose cryptanalysis you, if your adversary is not Mossad, a proxy is good enough.
Re:Ansible playbooks for installing OpenVPN, IPsec, Tor, etc... by LeoPanthera on Thursday March 30, 2017 @04:07PM (#13998464)
This is not about defeating "the agencies". This is about protecting your data from your ISP.
Re:Ansible playbooks for installing OpenVPN, IPsec, Tor, etc... by mi100hael on Thursday March 30, 2017 @02:08PM (#13997567)
Here's a similar playbook more focused around self-hosting common services like email, calendars, contacts in addition to a VPN: https://github.com/sovereign/sovereign
Re:Ansible playbooks for installing OpenVPN, IPsec, Tor, etc... by pgroves on Thursday March 30, 2017 @12:50PM (#13996967)
I don't know Ansible very well... is it possible to install only a subset (namely, the vpn service you plan to actually use)? It seems like a large attack service to have every VPN software possible running on the machine.
Re:Ansible playbooks for installing OpenVPN, IPsec, Tor, etc... by bitexploder on Thursday March 30, 2017 @12:53PM (#13996990)
Yes. It depends on how well organized the Playbook is, but this one is nice. As long as they kept their dependencies clean edit:

https://github.com/jlund/streisand/blob/master/playbooks/str...

Comment out any roles you don't want with a # at the beginning of the line, YAML is very picky about syntax.

comment edit: Think of roles in ansible like building blocks or common chores you can apply to any server. It might be nice to not have so much stuff by default, but this tool isn't meant for complete technical novices, so it is expected (in my opinion) that you go in and prune anything out you don't want/need. What is nice is that you have lots of options and if you ever need to add a role you can just uncomment it and re-run the playbook.

Re:Ansible playbooks for installing OpenVPN, IPsec, Tor, etc... by brainfire on Thursday March 30, 2017 @01:49PM (#13997421)
I think you'd typically want to use tags [0] for controlling which portions of an ansible playbook run, for a one-off set of tasks like this. This one in particular isn't set up to work that way though.

[0] http://docs.ansible.com/ansible/playbooks_tags.html

Re:Ansible playbooks for installing OpenVPN, IPsec, Tor, etc... by gtirloni on Thursday March 30, 2017 @04:34PM (#13998638)
This one is organized around roles instead (and role dependencies).
Re:Ansible playbooks for installing OpenVPN, IPsec, Tor, etc... by anoother on Thursday March 30, 2017 @04:59PM (#13998812)
You can tag entire roles themselves.

Lately I've been using this as a way to quickly apply selective config. It feels 'hacked-on', but it works.

Re:Ansible playbooks for installing OpenVPN, IPsec, Tor, etc... by 893helios on Thursday March 30, 2017 @03:46PM (#13998329)
This reminds me of Caislean (https://equalit.ie/portfolio/caislean/
Re:Ansible playbooks for installing OpenVPN, IPsec, Tor, etc... by ejlangev on Thursday March 30, 2017 @11:02PM (#14000893)
I'm using algo (https://github.com/trailofbits/algo) on an AWS instance, easy to set up and provides configuration across devices. Did find my iPhone struggling to use data sometimes when connecting to the VPN over the cell network. Can always disable that feature though.
Re:Ansible playbooks for installing OpenVPN, IPsec, Tor, etc... by vuln on Thursday March 30, 2017 @04:39PM (#13998664)
Say if I wanted to set something up like this for my friends, family and myself to use. Which would be the best and most feature rich for multi user?

I would love the option to not log ANY of the traffic or DNS requests my friends/family initiate.

Re:Ansible playbooks for installing OpenVPN, IPsec, Tor, etc... by unstatusthequo on Friday March 31, 2017 @01:18AM (#14001321)
Streisand is multi user. Supports five by default if I recall, possibly more
Re:Ansible playbooks for installing OpenVPN, IPsec, Tor, etc... by subliminalpanda on Friday March 31, 2017 @05:56AM (#14002365)
Depends. The OpenVPN role will generate five clients, however the server is configured to allow certificate re-use, effectively unlimited (for OpenVPN at least).
Re:Ansible playbooks for installing OpenVPN, IPsec, Tor, etc... by fuzzygroup on Friday March 31, 2017 @07:44AM (#14002785)
Streisand is a very, very good idea -- unfortunately it simply doesn't work at present. I've tried using it on AWS and Google Cloud and neither option works whether I run it natively on Ansible under OSX or on Ansible under Vagrant.

It is very cleanly implemented implemented though -- nicely implemented playbooks (I write Ansible professionally so I can actually say that).

Going to try algo today.

[dead]
Re:Ansible playbooks for installing OpenVPN, IPsec, Tor, etc... by sctb on Friday March 31, 2017 @02:19PM (#14006489)
Please stop posting uncivilly or unsubstantively on Hacker News.