Update alpine/alpine-secure.sh
This commit is contained in:
		
					parent
					
						
							
								c29736ad0e
							
						
					
				
			
			
				commit
				
					
						46f5277c8b
					
				
			
		
					 1 changed files with 3 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -36,8 +36,8 @@ PublicKey = $WIREGUARD_PUBKEY
 | 
			
		|||
AllowedIPs = $WG_SUBNET::2/128
 | 
			
		||||
EOF
 | 
			
		||||
 | 
			
		||||
rc-update add wg-quick@vmh-ssh-vpn default
 | 
			
		||||
rc-service wg-quick@vmh-ssh-vpn start
 | 
			
		||||
rc-update add wg-quick.vmh-ssh-vpn default
 | 
			
		||||
rc-service wg-quick.vmh-ssh-vpn start
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
echo "Configuring ssh..."
 | 
			
		||||
| 
						 | 
				
			
			@ -58,7 +58,7 @@ PermitRootLogin no
 | 
			
		|||
ListenAddress $WG_SUBNET::1
 | 
			
		||||
EOF
 | 
			
		||||
 | 
			
		||||
echo 'rc_need="wg-quick@vmh-ssh-vpn"' >> /etc/conf.d/sshd
 | 
			
		||||
echo 'rc_need="wg-quick.vmh-ssh-vpn"' >> /etc/conf.d/sshd
 | 
			
		||||
rc-service sshd restart
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue