From bce25f465fcea8266bc94ab9fdc8f94f3959117e Mon Sep 17 00:00:00 2001 From: James Valleroy Date: Sat, 7 Mar 2026 14:19:47 -0500 Subject: [PATCH] Vagrantfile: Enable public network for bridged networking When testing OpenID Connect, I found that it wasn't working in a VM with NAT port forwarding. However, vagrant can use bridged networking instead. When the vagrant box is brought up, the user will be prompted for which network interface to bridge. Signed-off-by: James Valleroy Reviewed-by: Sunil Mohan Adapa --- Vagrantfile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Vagrantfile b/Vagrantfile index 7534b7549..126e36b44 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -6,8 +6,7 @@ require 'etc' Vagrant.configure(2) do |config| config.vm.box = "freedombox/freedombox-testing-dev" - config.vm.network "forwarded_port", guest: 443, host: 4430 - config.vm.network "forwarded_port", guest: 445, host: 4450 + config.vm.network "public_network" config.vm.synced_folder ".", "/freedombox", owner: "plinth", group: "plinth" config.vm.provider "virtualbox" do |vb| vb.cpus = Etc.nprocessors @@ -28,7 +27,11 @@ Vagrant.configure(2) do |config| SHELL config.vm.provision "tests", run: "never", type: "shell", path: "plinth/tests/functional/install.sh" config.vm.post_up_message = "FreedomBox virtual machine is ready -for development. Plinth will be available at https://localhost:4430/freedombox +for development. To get the IP address: +$ vagrant ssh +$ ip address show + +FreedomBox interface will be available at https:///freedombox (with an invalid SSL certificate). To watch logs: $ vagrant ssh $ sudo freedombox-logs