0

I have installed Wireguard Server on my Raspberry Pi using pivpn. Everything works well except for one thing. The Raspberry server has an IP address of 10.6.0.1. I have a simple socket messenger written in Python. If I run the server of this messenger on my Raspberry Pi, which has an IP address of 10.6.0.1, then other clients of the VPN network cannot connect to it. Moreover, if I start the messenger server on a machine with an IP of 10.6.0.2, then other clients of the VPN network will be able to connect safely. The router has forwarded port 1776 for wireguard and 9090 for the messenger server. Is there any way to fix this? My wg0 config looks like this:

[Interface]
PrivateKey = private key
Address = 10.6.0.1/24
ListenPort = 1776

[Peer] PublicKey = 5CxlSHSk/0i4FmqLq4xitCfVDXioW3oYOGpxsfunxXQ= PresharedKey = preshared key AllowedIPs = 10.6.0.2/32

Client config:

[Interface]
PrivateKey = private key
Address = 10.6.0.2/24
DNS = 8.8.8.8, 8.8.4.4

[Peer] PublicKey = PFcJ1oSvCoIZxjxJzVk+aczXiYXE7wPiCDDXBjEMk1c= PresharedKey = preshared key Endpoint = mydomain.com:1776 AllowedIPs = 0.0.0.0/0, ::0/0

Netstat outuput:

enter image description here

Traa1134
  • 1
  • 2

0 Answers0