mirror of
https://github.com/vyos/vyos-documentation.git
synced 2025-10-26 08:41:46 +01:00
firewall: correct rule-set interface assignment
This commit is contained in:
parent
d5bb462db1
commit
deb95e79ca
@ -591,17 +591,17 @@ A Rule-Set can be applied to every interface:
|
|||||||
* ``out``: Ruleset for forwarded packets on an outbound interface
|
* ``out``: Ruleset for forwarded packets on an outbound interface
|
||||||
* ``local``: Ruleset for packets destined for this router
|
* ``local``: Ruleset for packets destined for this router
|
||||||
|
|
||||||
.. cfgcmd:: set interface ethernet <ethN> firewall [in | out | local]
|
.. cfgcmd:: set firewall interface <interface> [in | out | local] [name | ipv6-name] <rule-set>
|
||||||
[name | ipv6-name] <rule-set>
|
|
||||||
|
|
||||||
Here are some examples for applying a rule-set to an interface
|
Here are some examples for applying a rule-set to an interface
|
||||||
|
|
||||||
.. code-block:: none
|
.. code-block:: none
|
||||||
|
|
||||||
set interface ethernet eth1 vif 100 firewall in name LANv4-IN
|
set firewall interface eth1.100 in name LANv4-IN
|
||||||
set interface ethernet eth1 vif 100 firewall out name LANv4-OUT
|
set firewall interface eth1.100 out name LANv4-OUT
|
||||||
set interface bonding bond0 firewall in name LANv4-IN
|
set firewall interface bond0 in name LANv4-IN
|
||||||
set interfaces openvpn vtun1 firewall in name Lanv4-IN
|
set firewall interfac vtun1 in name LANv4-IN
|
||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
As you can see in the example here, you can assign the same rule-set to
|
As you can see in the example here, you can assign the same rule-set to
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user