text Vagrant pfsense + guest vm。
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了text Vagrant pfsense + guest vm。相关的知识,希望对你有一定的参考价值。
Vagrant.configure("2") do |config|
config.vm.define "pfsense" do |subconfig|
subconfig.vm.box = "kennyl/pfsense"
subconfig.vm.box_version = "2.4.0"
subconfig.vm.synced_folder ".", "/vagrant", disabled: true
subconfig.vm.network "private_network", virtualbox__intnet: "mynetwork", auto_config: false
subconfig.vm.network "forwarded_port", guest: 80, host: 8080
subconfig.vm.network "forwarded_port", guest: 443, host: 8443
subconfig.vm.network "forwarded_port", guest: 3000, host: 3000
subconfig.vm.provider :virtualbox do |vb|
vb.memory = 1024
vb.cpus = 2
end
end
config.vm.define "client" do |subconfig|
subconfig.vm.box = "ubuntu/bionic64"
subconfig.vm.synced_folder ".", "/vagrant", disabled: true
subconfig.vm.network "private_network", virtualbox__intnet: "mynetwork", type: "dhcp"
config.vm.provision "shell",
run: "always",
inline: "route add default gw 192.168.100.1" # change this to the pfsense LAN ipv4
end
end
end
以上是关于text Vagrant pfsense + guest vm。的主要内容,如果未能解决你的问题,请参考以下文章
text 灯Vagrant
text Vagrant .bash_profile
text golang vagrant
text 在vagrant ubuntu中添加新站点
text alpine_python2_base Vagrant日志
text Scotchbox的Vagrant文件配置,同步多个文件夹