mirror of
https://github.com/libvirt/libvirt.git
synced 2026-10-02 12:20:06 -05:00
docs: add network driver documentation
Currently documents only FreeBSD/pf specific configuration. Signed-off-by: Roman Bogorodskiy <bogorodskiy@gmail.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
1 parent
4462b85a56
commit
d06f8f096a
3 files changed
+30
No files matched your search
@@ -6,6 +6,7 @@ Internal drivers
|
||||
- `Storage drivers <storage.html>`__
|
||||
- `Node device driver <drvnodedev.html>`__
|
||||
- `Secret driver <drvsecret.html>`__
|
||||
- `Network driver <drvnetwork.html>`__
|
||||
|
||||
The libvirt public API delegates its implementation to one or more internal
|
||||
drivers, depending on the `connection URI <uri.html>`__ passed when initializing
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
==============
|
||||
Network driver
|
||||
==============
|
||||
|
||||
.. contents::
|
||||
|
||||
Platform-specific notes
|
||||
=======================
|
||||
|
||||
FreeBSD
|
||||
-------
|
||||
|
||||
FreeBSD netowork driver uses the pf firewall. Libvirt managed pf rules
|
||||
are created within anchors. Anchors need to be configured manually by
|
||||
the user. Sample ``/etc/pf.conf`` might look like:
|
||||
|
||||
::
|
||||
|
||||
scrub all
|
||||
|
||||
nat-anchor "libvirt\*"
|
||||
anchor "libvirt\*"
|
||||
|
||||
pass all
|
||||
|
||||
|
||||
Users are not expected to manually modify rules in the ``"libvirt\*"``
|
||||
subanchors because the changes will be lost on restart.
|
||||
@@ -49,6 +49,7 @@ docs_rst_files = [
|
||||
'drvesx',
|
||||
'drvhyperv',
|
||||
'drvlxc',
|
||||
'drvnetwork',
|
||||
'drvnodedev',
|
||||
'drvopenvz',
|
||||
'drvqemu',
|
||||
|
||||
Reference in new issue
Block a user