Tremendous difficulty configuring Wireguard - Please help
by katie12 from LinuxQuestions.org on (#6K1WY)
Ive spent 3 days trying to setup a VPN with a VPS and my Home PC.
I have a debian 11 VPS server, and manjaro desktop, installed wireguard on both and running
Debian Server stuff
create private and public keys > wg genkey | tee privatekey | wg pubkey > publickey
create /etc/wireguard/wg0.conffile
Code:[Interface]
PrivateKey = SERVER_PRIVATE_KEY
Address = 192.168.23.1/24
ListenPort = 51820
SaveConfig = false
[Peer]
PublicKey = CLIENT_PUBLIC_KEY
AllowedIPs = 192.168.23.2Manjaro Client Stuff
create private and public keys > wg genkey | tee privatekey | wg pubkey > publickey
create /etc/wireguard/wg0.conf file
Quote:
On both server VPS and client, I run wg-quick up wg0.
Now I have zero internet access on my client.
I also can no longer ssh into my server.
On my client > ping 192.168.23.1 does successfully transmit/receive packets
On my client, If I run wg-quick down wg0, I can regain internet access but I am no longer connected to the SERVER or Wireguard
Now ping 192.168.23.1 doesn't transmit anything, as expected.
I have a debian 11 VPS server, and manjaro desktop, installed wireguard on both and running
Debian Server stuff
create private and public keys > wg genkey | tee privatekey | wg pubkey > publickey
create /etc/wireguard/wg0.conffile
Code:[Interface]
PrivateKey = SERVER_PRIVATE_KEY
Address = 192.168.23.1/24
ListenPort = 51820
SaveConfig = false
[Peer]
PublicKey = CLIENT_PUBLIC_KEY
AllowedIPs = 192.168.23.2Manjaro Client Stuff
create private and public keys > wg genkey | tee privatekey | wg pubkey > publickey
create /etc/wireguard/wg0.conf file
Quote:
[Interface] PrivateKey = CLIENT_PRIVATE_KEY Address = 192.168.23.1/24 [Peer] PublicKey = SERVER_PRIVATE_KEY AllowedIPs = 0.0.0.0/0, ::/0 Endpoint = SERVER_IP:51820 |
On both server VPS and client, I run wg-quick up wg0.
Now I have zero internet access on my client.
I also can no longer ssh into my server.
On my client > ping 192.168.23.1 does successfully transmit/receive packets
On my client, If I run wg-quick down wg0, I can regain internet access but I am no longer connected to the SERVER or Wireguard
Now ping 192.168.23.1 doesn't transmit anything, as expected.