mirror of
https://github.com/QubesOS/qubes-doc.git
synced 2025-10-11 10:08:39 -04:00
Merge branch 'pr/1539'
This commit is contained in:
commit
17f988ca6b
1 changed files with 5 additions and 3 deletions
|
@ -139,7 +139,7 @@ In order to allow networking from qube A (client) to qube B (server) follow thes
|
|||
|
||||
- Now you should be able to reach B from A – test it using e.g. ping issued from A. Note however, that this doesn’t allow you to reach A from B – for this you would need two more rules, with A and B swapped.
|
||||
|
||||
- If everything works as expected, then you should write the above nftables rules into firewallVM’s ``qubes-firewall-user-script`` script. This script is run when the netvm starts up. You should also write relevant rules in A and B’s ``rc.local`` script which is run when the qube is launched. Here’s an example how to update the script:
|
||||
- If everything works as expected, then you should write the above nftables rules into firewallVM’s ``qubes-firewall-user-script`` script (see section :ref:`Where to put firewall rules <user/security-in-qubes/firewall:where to put firewall rules>`). This script is run when the netvm starts up. You should also write relevant rules in A and B’s ``rc.local`` script which is run when the qube is launched. Here’s an example how to update the script:
|
||||
|
||||
|
||||
|
||||
|
@ -418,7 +418,7 @@ In this example, we can see 7 packets in the forward rule, and 3 packets in the
|
|||
|
||||
|
||||
|
||||
Once you have confirmed that the counters increase, store the commands used in the previous steps in ``/rw/config/qubes-firewall-user-script`` so they get set on sys-net start-up:
|
||||
Once you have confirmed that the counters increase, store the commands used in the previous steps in ``/rw/config/qubes-firewall-user-script`` so they get set on sys-net start-up (see section :ref:`Where to put firewall rules <user/security-in-qubes/firewall:where to put firewall rules>`):
|
||||
|
||||
.. code:: console
|
||||
|
||||
|
@ -477,7 +477,7 @@ Third step, code the appropriate new filtering firewall rule to allow new connec
|
|||
|
||||
|
||||
|
||||
Once you have confirmed that the counters increase, store these commands in the script ``/rw/config/qubes-firewall-user-script``
|
||||
Once you have confirmed that the counters increase, store these commands in the script ``/rw/config/qubes-firewall-user-script`` (see section :ref:`Where to put firewall rules <user/security-in-qubes/firewall:where to put firewall rules>`):
|
||||
|
||||
.. code:: console
|
||||
|
||||
|
@ -537,6 +537,8 @@ Where to put firewall rules
|
|||
|
||||
Implicit in the above example :doc:`scripts </user/advanced-topics/config-files>`, but worth calling attention to: for all qubes *except* those supplying networking, nftables commands should be added to the ``/rw/config/rc.local`` script. For service qubes supplying networking (``sys-firewall`` and ``sys-net`` inclusive), nftables commands should be added to ``/rw/config/qubes-firewall-user-script``.
|
||||
|
||||
Remember that you have to perform these changes in the corresponding disposable templates if the VMs are disposable VMs; otherwise the changes will get lost on restart of the VMs.
|
||||
|
||||
Firewall troubleshooting
|
||||
------------------------
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue