Commit 86dd5dbf authored by Deac Karns's avatar Deac Karns

force host port 2253 for ssh

parent 3b7add23
......@@ -5,7 +5,9 @@ Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/xenial64"
config.vm.network "private_network", ip: "172.16.0.53"
config.vm.network :private_network, ip: "172.16.0.53"
config.vm.network :forwarded_port, guest: 22, host: 2222, id: "ssh", disabled: true
config.vm.network :forwarded_port, guest: 22, host: 2253, auto_correct: true
config.vbguest.auto_update = false
......@@ -14,7 +16,7 @@ Vagrant.configure("2") do |config|
class Renew
def to_s
print "\n\nDo you want to renew your DHCP settings (y/n): "
print "\n\nDo you want to renew your DHCP settings (y/n): "
STDIN.gets.chomp
end
end
......@@ -30,7 +32,7 @@ Vagrant.configure("2") do |config|
class Install
def to_s
print "\n\nDo you want to Install and configure pihole with the current network settings(y/n): "
print "\n\nDo you want to Install and configure pihole with the current network settings(y/n): "
STDIN.gets.chomp
end
end
......@@ -52,7 +54,7 @@ Vagrant.configure("2") do |config|
class DnsMasq
def to_s
print "\n\nDo you want to reload dnsmask configs (y/n): "
print "\n\nDo you want to reload dnsmask configs (y/n): "
STDIN.gets.chomp
end
end
......@@ -60,7 +62,7 @@ Vagrant.configure("2") do |config|
config.vm.provision "shell", env: {"DNSMASQ" => DnsMasq.new}, inline: <<-SHELL
if [ $DNSMASQ == "y" ]; then
echo "Updating the dnsmasq configuration"
IP=`/sbin/ifconfig enp0s8 | grep 'inet addr' | cut -d: -f2 | awk '{print $1}'`
sed -i "s/{%IP%}/$IP/g" /home/vagrant/dnsmasq.conf
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment