1

I'm facing a trouble, I have a server with Wireguard configured, with the keys generated by wg command line. I've downloaded Wireguard for windows and put the public's server key on client peer, and public's cliente key on server Peer section. Mu doubt is: is the client be configured to access server Endpoint external IP? I tried point to external and internal (LAN) IP from client, but no way it works. I am using VirtualBox with this schemme:

Server: 1 nic - mode NAT; 1 nic - wg0 (wireguard) Client windows 10: 1 nic - wg0 (wireguard). Does not have any other nic. It can be a problem?

my schemme

  • If your client can't reach your server, how do you expect WG to work? – vidarlo Dec 21 '22 at 22:06
  • @vidarlo I dont know why not. Both have internal interfaces at the same network. – Fabricio Franco Dec 22 '22 at 18:35
  • @FabricioFranco For me the problem was: the wrong Debian firewall config. After turning off the firewall (for test) the handshake error disappeared. There is a great auto-setup-script [here...](https://gitlab.com/snax44/wireguard-ui-setup) where you may analyse the `.sh` file for necessary `iptable` config commands. – SzakiLaci May 31 '23 at 00:57
  • @FabricioFranco Also I think setting NAT for VirtualBox makes it impossible to reach it as a server. You should at least set VB to "bridged" mode and route that IP from your own subnet to the router's outside port. Alternatively You may use a tiny separate hardware for that, like a RPi, instead if complicating with VB. – SzakiLaci May 31 '23 at 01:14

0 Answers0