I used this guide here to setup wireguard on a CentOS machine.
I have my private key, my public key, the firewall and my wg0.conf:
[Interface]
Address = 192.168.5.1/24
SaveConfig = true
ListenPort = 31194
PrivateKey = <from the private key file>
EndPoint = mydynamic_dns_name.com:31194
[Peer]
PublicKey = <the public key generated on my client>
AllowedIPs = 192.168.5.2/32
When I run wg
it shows this config as well.
When I try to create a QR code with this config using the command
grep -v '^#' /etc/wireguard/wg0.conf | qrencode -t ansiutf8
I get the following error:
Unable to import Tunnel: Unknown attribute in interface.
I tried to setup a client manually on Android, using this here:
[Interface]
Address = 192.168.5.2/24
PrivateKey = <generated by the cellpgone>
[Peer]
AllowedIPs = 0.0.0.0/24
Endpoint = mydynamic_dns_name.com:31194
PublicKey = <public key from my server>
When I try to connect, it says that it's connected instantly but transfers no data over the connection. When I check my external IP it's still that of the cell provider.
I have my router setup to forward the port to the centos in my local network.
I don't know how to proceed from here or to debug this.
0 Answers