mirror of
				https://github.com/vyos/vyos-documentation.git
				synced 2025-10-26 08:41:46 +01:00 
			
		
		
		
	Merge pull request #647 from dhrp/patch-1
changed to use 'static interface-route' instead of 'static route'
This commit is contained in:
		
						commit
						c8e6c51cb5
					
				| @ -95,7 +95,7 @@ one. | ||||
|   set interfaces wireguard wg01 peer to-wg02 port '51820' | ||||
|   set interfaces wireguard wg01 peer to-wg02 pubkey 'XMrlPykaxhdAAiSjhtPlvi30NVkvLQliQuKP7AI7CyI=' | ||||
|   set interfaces wireguard wg01 port '51820' | ||||
|   set protocols static route 192.168.2.0/24 interface wg01 | ||||
|   set protocols static interface-route 192.168.2.0/24 next-hop-interface wg01 | ||||
| 
 | ||||
| **local side - annotated commands** | ||||
| 
 | ||||
| @ -108,7 +108,7 @@ one. | ||||
|   set interfaces wireguard wg01 peer to-wg02 port '58120'                      # Port of the Peer | ||||
|   set interfaces wireguard wg01 peer to-wg02 pubkey '<pubkey>'                 # Public Key of the Peer | ||||
|   set interfaces wireguard wg01 port '51820'                                   # Port of own server | ||||
|   set protocols static route 192.168.2.0/24 interface wg01                # Static route to remote subnet | ||||
|   set protocols static interface-route 192.168.2.0/24 next-hop-interface wg01  # Static route to remote subnet | ||||
| 
 | ||||
| The last step is to define an interface route for 192.168.2.0/24 to get | ||||
| through the WireGuard interface `wg01`. Multiple IPs or networks can be | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user