mirror of
				https://github.com/kevinveenbirkenbach/client-playbook.git
				synced 2025-11-04 08:17:59 +00:00 
			
		
		
		
	Added hint for wireguard ssh bugs
This commit is contained in:
		@@ -1,7 +1,7 @@
 | 
				
			|||||||
# Role Native Wireguard
 | 
					# Role Native Wireguard
 | 
				
			||||||
Manages wireguard on a client.
 | 
					Manages wireguard on a client.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
### Create Client Keys
 | 
					## Create Client Keys
 | 
				
			||||||
```bash
 | 
					```bash
 | 
				
			||||||
  wg_private_key="$(wg genkey)"
 | 
					  wg_private_key="$(wg genkey)"
 | 
				
			||||||
  wg_public_key="$(echo "$wg_private_key" | wg pubkey)"
 | 
					  wg_public_key="$(echo "$wg_private_key" | wg pubkey)"
 | 
				
			||||||
@@ -10,7 +10,20 @@ Manages wireguard on a client.
 | 
				
			|||||||
  echo "PresharedKey: $(wg genpsk)"
 | 
					  echo "PresharedKey: $(wg genpsk)"
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## See
 | 
					## Debug 
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					### SSH
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					When the SSH connection over wireguard is buggy try: 
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					```bash
 | 
				
			||||||
 | 
					ip li set mtu 1400 dev eth0
 | 
				
			||||||
 | 
					ip li set mtu 1400 dev wlo1
 | 
				
			||||||
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					This can be connected to the [MTU](https://www.imperva.com/learn/application-security/what-is-mtu-mss/) 
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					## Other
 | 
				
			||||||
- https://golb.hplar.ch/2019/01/expose-server-vpn.html
 | 
					- https://golb.hplar.ch/2019/01/expose-server-vpn.html
 | 
				
			||||||
- https://wiki.archlinux.org/index.php/WireGuard
 | 
					- https://wiki.archlinux.org/index.php/WireGuard
 | 
				
			||||||
- https://wireguard.how/server/raspbian/
 | 
					- https://wireguard.how/server/raspbian/
 | 
				
			||||||
@@ -19,4 +32,6 @@ Manages wireguard on a client.
 | 
				
			|||||||
- https://stackoverflow.com/questions/69140072/unable-to-ssh-into-wireguard-ip-until-i-ping-another-server-from-inside-the-serv
 | 
					- https://stackoverflow.com/questions/69140072/unable-to-ssh-into-wireguard-ip-until-i-ping-another-server-from-inside-the-serv
 | 
				
			||||||
- https://unix.stackexchange.com/questions/717172/why-is-ufw-blocking-acces-to-ssh-via-wireguard
 | 
					- https://unix.stackexchange.com/questions/717172/why-is-ufw-blocking-acces-to-ssh-via-wireguard
 | 
				
			||||||
- https://forum.openwrt.org/t/cannot-ssh-to-clients-on-lan-when-accessing-router-via-wireguard-client/132709/3
 | 
					- https://forum.openwrt.org/t/cannot-ssh-to-clients-on-lan-when-accessing-router-via-wireguard-client/132709/3
 | 
				
			||||||
- https://serverfault.com/questions/1086297/wireguard-connection-dies-on-ubuntu-peer
 | 
					- https://serverfault.com/questions/1086297/wireguard-connection-dies-on-ubuntu-peer
 | 
				
			||||||
 | 
					- https://unix.stackexchange.com/questions/624987/ssh-fails-to-start-when-listenaddress-is-set-to-wireguard-vpn-ip
 | 
				
			||||||
 | 
					- https://serverfault.com/questions/210408/cannot-ssh-debug1-expecting-ssh2-msg-kex-dh-gex-reply
 | 
				
			||||||
		Reference in New Issue
	
	Block a user