mirror of
				https://github.com/vyos/vyos-documentation.git
				synced 2025-10-26 08:41:46 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			47 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			ReStructuredText
		
	
	
	
	
	
			
		
		
	
	
			47 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			ReStructuredText
		
	
	
	
	
	
| ##################
 | |
| 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. |