summaryrefslogtreecommitdiff
path: root/docs/configuration/policy/local-route.rst
blob: e24d61d088fd94add4386320ea3b74bba9f665d9 (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
##################
Local Route Policy
##################

Policies for local traffic are defined in this section.

*************
Configuration
*************

Local Route IPv4
================

.. cfgcmd:: set policy local-route rule <1-32765> set table <1-200|main>

   Set routing table to forward packet to.

.. cfgcmd:: set policy local-route rule <1-32765> source <x.x.x.x|x.x.x.x/x>

   Set source address or prefix to match.

.. cfgcmd:: set policy local-route rule <1-32765> destination <x.x.x.x|x.x.x.x/x>

   Set destination address or prefix to match.

.. cfgcmd:: set policy local-route rule <1-32765> inbound-interface <interface>

   Set inbound interface to match.
   
Local Route IPv6
================

.. cfgcmd:: set policy local-route6 rule <1-32765> set table <1-200|main>

   Set routing table to forward packet to.

.. cfgcmd:: set policy local-route6 rule <1-32765> source <h:h:h:h:h:h:h:h | h:h:h:h:h:h:h:h/x>

   Set source address or prefix to match.

.. cfgcmd:: set policy local-route6 rule <1-32765> destination <h:h:h:h:h:h:h:h | h:h:h:h:h:h:h:h/x>

   Set destination address or prefix to match.

.. cfgcmd:: set policy local-route6 rule <1-32765> inbound-interface <interface>

   Set inbound interface to match.