mirror of
				https://github.com/tteck/Proxmox.git
				synced 2025-10-30 18:39:10 +00:00 
			
		
		
		
	Update wireguard-install.sh
tweak
This commit is contained in:
		
							parent
							
								
									ab521623cd
								
							
						
					
					
						commit
						e4a086b8cd
					
				| @ -22,12 +22,11 @@ msg_ok "Installed Dependencies" | |||||||
| 
 | 
 | ||||||
| msg_info "Installing WireGuard (using pivpn.io)" | msg_info "Installing WireGuard (using pivpn.io)" | ||||||
| OPTIONS_PATH='/options.conf' | OPTIONS_PATH='/options.conf' | ||||||
| SUBNET=$(printf %d.%d.%d.%d 10 $((RANDOM % 256)) $((RANDOM % 256)) 0) |  | ||||||
| cat >$OPTIONS_PATH <<EOF | cat >$OPTIONS_PATH <<EOF | ||||||
| IPv4dev=eth0 | IPv4dev=eth0 | ||||||
| install_user=root | install_user=root | ||||||
| VPN=wireguard | VPN=wireguard | ||||||
| pivpnNET=$SUBNET | pivpnNET=$(printf "10.%d.%d.0" $((RANDOM % 256)) $((RANDOM % 256))) | ||||||
| subnetClass=24 | subnetClass=24 | ||||||
| ALLOWED_IPS="0.0.0.0/0, ::0/0" | ALLOWED_IPS="0.0.0.0/0, ::0/0" | ||||||
| pivpnMTU=1420 | pivpnMTU=1420 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user