mirror of
				https://github.com/vdsm/virtual-dsm.git
				synced 2025-11-04 17:04:52 +08:00 
			
		
		
		
	Check IP forwarding settings
This commit is contained in:
		
							parent
							
								
									18729e0675
								
							
						
					
					
						commit
						a441338be2
					
				@ -132,7 +132,7 @@ configureNAT () {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
  #Check port forwarding flag
 | 
					  #Check port forwarding flag
 | 
				
			||||||
  if [[ $(< /proc/sys/net/ipv4/ip_forward) -eq 0 ]]; then
 | 
					  if [[ $(< /proc/sys/net/ipv4/ip_forward) -eq 0 ]]; then
 | 
				
			||||||
    if ! sysctl -w net.ipv4.ip_forward=1; then
 | 
					    if ! sysctl -w net.ipv4.ip_forward=1 > /dev/null 2>&1; then
 | 
				
			||||||
      echo -n "ERROR: IP forwarding is disabled. Please add the following "
 | 
					      echo -n "ERROR: IP forwarding is disabled. Please add the following "
 | 
				
			||||||
      echo "docker setting to your container: --sysctl net.ipv4.ip_forward=1" && exit 24
 | 
					      echo "docker setting to your container: --sysctl net.ipv4.ip_forward=1" && exit 24
 | 
				
			||||||
    fi
 | 
					    fi
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user