From cf6e555ce9ad7e59c8ce59c35088ea7be7bc6052 Mon Sep 17 00:00:00 2001 From: Pat Maddox Date: Sat, 30 Jul 2022 23:52:36 -0700 Subject: [PATCH] Update GCP docs for default gateway and resolver Bastille can handle it, no need to configure inside the jail. --- docs/chapters/gcp.rst | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/chapters/gcp.rst b/docs/chapters/gcp.rst index a6067687..4616ee98 100644 --- a/docs/chapters/gcp.rst +++ b/docs/chapters/gcp.rst @@ -80,13 +80,13 @@ Restart the host and make sure everything comes up correctly. You should see the ifmaxaddr 0 port 1 priority 128 path cost 2000 groups: bridge -## Configure router and resolver inside the jail +## Configure router and resolver for new jails -At this point, you can create a VNET jail with ``bastille create -V myjail 13.1-RELEASE 192.168.1.50/24 vtnet0`` - -It won't have working network access or DNS yet. Console into the jail and configure them: +Set the default network gateway for new jails as described in the Networking chapter, and configure a default resolver. .. code-block:: shell - sysrc defaultrouter="192.168.1.1" + sysrc -f /usr/local/etc/bastille/bastille.conf bastille_network_gateway="192.168.1.1" + echo "nameserver 8.8.8.8" > /usr/local/etc/bastille/resolv.conf + sysrc -f /usr/local/etc/bastille/bastille.conf bastille_resolv_conf="/usr/local/etc/bastille/resolv.conf" - echo "nameserver 8.8.8.8" > /etc/resolv.conf +You can now create a VNET jail with ``bastille create -V myjail 13.1-RELEASE 192.168.1.50/24 vtnet0``