-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
001.whonix.Vagrantfile
45 lines (38 loc) · 1.34 KB
/
001.whonix.Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.define "gateway" do |gw|
gw.vm.box = 'whonix-gateway'
gw.ssh.username = 'user'
gw.vm.provider 'virtualbox' do |vb|
vb.customize ['modifyvm', :id, '--memory', 196]
vb.gui = false
end
gw.vm.network "private_network", auto_config: false,
virtualbox__intnet: "Whonix", adapter: 2
gw.vm.network "forwarded_port", guest: 22, host: 2200,
id: "ssh", disabled: true
gw.vm.network "forwarded_port", guest: 22, host: 2299
end
config.vm.define "workstation" do |ws|
ws.vm.box = 'whonix-workstation'
ws.ssh.username = 'user'
ws.ssh.host = '10.152.152.11'
ws.ssh.proxy_command = 'ssh [email protected] -p 2299 -o '\
'StrictHostKeyChecking=no -i ' + File.join(Dir.pwd(),
".vagrant/machines/gateway/virtualbox/private_key") +
' nc %h %p'
ws.vm.provider 'virtualbox' do |vb|
vb.gui = false
end
ws.vm.boot_timeout = 60
ws.vm.network "private_network", ip: "10.152.152.11",
virtualbox__intnet: "Whonix", adapter: 1
ws.vm.network "forwarded_port", guest: 22, host: 2200,
id: "ssh", disabled: true
ws.ssh.forward_x11 = true
ws.ssh.forward_env = ["DISPLAY"]
end
config.vm.synced_folder ".", "/vagrant", disabled: true
config.vbguest.auto_update = false
end