mirror of
				https://github.com/vyos/vyos-documentation.git
				synced 2025-11-04 00:02:05 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			749 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			749 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
set interface ethernet eth2 address 10.0.1.254/24
 | 
						|
set interface ethernet eth1 address 198.51.100.1/24
 | 
						|
 | 
						|
set interfaces wireguard wg01 private-key '6LxbrPPsrWDjJDIKQUxzNHQtr5fkg87NjgfziN1GCWk='
 | 
						|
set interfaces wireguard wg01 address 192.168.0.1/24
 | 
						|
set interfaces wireguard wg01 description 'VPN-to-Branch'
 | 
						|
set interfaces wireguard wg01 peer branch allowed-ips 10.0.2.0/24
 | 
						|
set interfaces wireguard wg01 peer branch allowed-ips 192.168.0.0/24
 | 
						|
set interfaces wireguard wg01 peer branch address 198.51.100.2
 | 
						|
set interfaces wireguard wg01 peer branch port 51820
 | 
						|
set interfaces wireguard wg01 peer branch public-key 'mds7iwiwTxGLtX4eYrCyKhpZdZG+QOYwHQib7xfFPlc='
 | 
						|
set interfaces wireguard wg01 port 51820
 | 
						|
 | 
						|
set protocols static route 10.0.2.0/24 interface wg01 |