Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 2458

General discussion • Re: Remote SSH Connection is Broken When Wireguard VPN server connected

$
0
0
you are quite vague .

Firstly what is your setup?

From the outside world => Router => port forward to wireguard on PI

And the other Pi is the same or another?

How do you know that it is working well?

On my wireguard I'm able to access via the local intranet IP or the wireguard IP
ssh daniel@10.11.11.130 or daniel@10.10.10.1 works for my Pi4 which has wireguard.
I'm also able to communicate on any devices on my local network?

10.11.11. is my router local IP
10.10.10. is my wireguard IP


What is your configuration file looks like ? Please remove the key before posting it

Code:

root@ubuntuPi4:/etc/wireguard# cat wg0.conf[Interface]Address = 10.10.10.1/24PrivateKey = blablablaListenPort = 1196DNS = 8.8.8.8, 8.8.4.4, 10.11.11.11PostUp = iptables -A FORWARD -i wg0 -j ACCEPT; iptables -A FORWARD -o wg0 -j ACCEPT; iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADEPostDown = iptables -D FORWARD -i wg0 -j ACCEPT; iptables -D FORWARD -o wg0 -j ACCEPT; iptables -t nat -D POSTROUTING -o eth0 -j MASQUERADE[Peer]#user1PublicKey = blablablaAllowedIPs = 10.10.10.2/32[Peer]#user2PublicKey = blablablaAllowedIPs = 10.10.10.3/32
and on my phone

Code:

[Interface]Address = 10.10.10.2/32DNS = 10.11.11.11, 8.8.8.8, 8.8.4.4PrivateKey = blablabla[Peer]AllowedIPs = 10.10.10.0/24, 10.11.11.0/24Endpoint =  MY_DYNDNS (public DNS IP).PublicKey = blablabla

Statistics: Posted by danjperron — Thu Feb 08, 2024 5:59 pm



Viewing all articles
Browse latest Browse all 2458

Trending Articles