From 1b224f3aa5542e85fbd498da124c94e660a65337 Mon Sep 17 00:00:00 2001 From: tschettervictor <85497460+tschettervictor@users.noreply.github.com> Date: Wed, 28 May 2025 08:11:41 -0600 Subject: [PATCH] docs: restructure options for VLAN --- docs/chapters/networking.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/chapters/networking.rst b/docs/chapters/networking.rst index d996bc25..18e95be6 100644 --- a/docs/chapters/networking.rst +++ b/docs/chapters/networking.rst @@ -189,7 +189,7 @@ Virtual Network (VNET) creates a private network interface for a container. This includes a unique hardware address. This is required for VPN, DHCP, and similar containers. -To create a VNET based container use the ``-V`` option, an IP/netmask and +To create a VNET based container use the ``-V|--vnet`` option, an IP/netmask and external interface. .. code-block:: shell @@ -316,11 +316,11 @@ the bridge for the jail must carry tagged VLAN packets, e.g. you can bridge a VL the jail and in the jail you then can access all VLANs. But be careful: This may have security implications. -You cannot use the ``-V``/``--vnet`` options with interfaces that have dots (.) in the name, which is the +You cannot use the ``-V|--vnet`` options with interfaces that have dots (.) in the name, which is the standard way of naming a VLAN interface. This is due to the limitations of the JIB script that Bastille uses to manage VNET jails. -You can however use ``-B``/``--bridge`` with VLAN interfaces (even with dots in the name). +You can however use ``-B|--bridge`` with VLAN interfaces (even with dots in the name). Using this method you create bridge interfaces in ``rc.conf`` and only add VLANs, that are needed for the jail. The jail only has access to this VLAN then and not to the whole trunk. Below is an ``rc.conf`` snippet that was provided by a user who has such a configuration. @@ -349,7 +349,7 @@ Below is an ``rc.conf`` snippet that was provided by a user who has such a confi ifconfig_eth1_20="up" ifconfig_eth1_30="up" -Notice that the interfaces are bridge interfaces, and can be used with ``-B``/``--bridge`` +Notice that the interfaces are bridge interfaces, and can be used with ``-B|--bridge`` without issue. Regarding Routes