Update GCP docs for default gateway and resolver
Bastille can handle it, no need to configure inside the jail.
This commit is contained in:
@@ -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
|
ifmaxaddr 0 port 1 priority 128 path cost 2000
|
||||||
groups: bridge
|
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``
|
Set the default network gateway for new jails as described in the Networking chapter, and configure a default resolver.
|
||||||
|
|
||||||
It won't have working network access or DNS yet. Console into the jail and configure them:
|
|
||||||
|
|
||||||
.. code-block:: shell
|
.. 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``
|
||||||
|
|||||||
Reference in New Issue
Block a user