summaryrefslogtreecommitdiff
path: root/docs/configuration/policy/index.md
blob: f919e70ab5ba796802257123f497eb3f0e2334f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
---
lastproofread: '2021-07-12'
---

```{include} /_include/need_improvement.txt
```


# Policy

Policies are used for filtering and traffic management. With policies, network
administrators could filter and treat traffic
according to their needs.

There could be a wide range of routing policies. Some examples are listed
below:
- Filter traffic based on source/destination address.
- Set some metric to routes learned from a particular neighbor.
- Set some attributes (like AS PATH or Community value) to advertised routes
  to neighbors.
- Prefer a specific routing protocol routes over another routing protocol
  running on the same router.

Policies, in VyOS, are implemented using FRR filtering and route maps. Detailed
information of FRR could be found in <http://docs.frrouting.org/>

## Policy Sections

```{toctree}
:includehidden: true
:maxdepth: 1

access-list
prefix-list
route
route-map
local-route
as-path-list
community-list
extcommunity-list
large-community-list
```

## Examples

Examples of policies usage:

```{toctree}
:includehidden: true
:maxdepth: 1

examples
```