NS8-wg-easy App (WireGuard VPN)

,

I assume you removed/masked the keys?

The endpoint should be your public IP or FQDN.

My working config looks like this:

When AllowedIPs is set to 0.0.0.0/0 the client is allowed to reach everything.
If you want to set it more restrictive you need to set at least 10.5.4.0/24 to reach the Nethserver that’s reachable by the NS8 Wireguard IP, usually 10.5.4.1, it can be found on the Nodes page.

Regarding Linux, Wireguard should already be there, you can just import the .conf file, for example in Ubuntu, see the image in How to add GUI options for Wireguard into Ubuntu 20.04 Desktop - ScottiByte's Discussion Forum

Regarding Windows, just download and install the client app from Installation - WireGuard and import the .conf file.

Thank you very much @mrmarkuz

Are you starting to figure out what ports should be allowed through the router’s firewall? Because it’s behind a router… 51820, 51821, 55820 TCP or UDP?

Following port needs to be opened: 51820/udp

I thought well then. I allowed it, but I don’t understand what happened.

I can connect with WG VPN from Linux, the laptop gets an IP address (10.8.0.2), the Node IP address is 10.5.4.1. I try to ping the IP address 10.5.4.1 but there is no response. I want to reach the Firebird server on port 3050, but it does not respond to telnet…

I’ll try to get it working from Windows too, but it’ll take some time…

Is there anything not set up yet?

I managed to get WG VPN working under Windows and was able to connect to the Firebird server via VPN. I will test the WG VPN connection, I hope there will be no problems.

Thanks to everyone for their help so far, especially @jmrmarkuz This was a big step forward, although there are still many problems to be solved and there is still a lot to do with the Firebird server…

1 Like

So not related to Nethserver, but due to a strategic choice for Firebird in the past? Can you mark this thread as resolved please. Feel free to open any other NS8 related issue! If NS8 is used commericially, I highly recommend you seek a support contract of your liking with Nethesis.

The heads up to prepare for transition was given on time. Don’t fall alseep behind the wheel.

This is not a matter of decision, but a situation of necessity, which Andy understood at the time…

I intend to mark this as resolved once I’ve successfully tested it, but I’m currently unable to access all services via WG VPN on NS8.

Thanks for the suggestion, but first I would like to make sure that NS8 is suitable for the purpose I need. Unfortunately, at the moment it seems that without improvements and modifications, it is not suitable to replace my Nethserver 7 server, to a limited extent.

@mrmarkuz How do I access NS8 services via wg-easy VPN?

If I don’t change the Firebird port, I can access Firebird via VPN (10.5.4.1:3050), but I can’t connect to sogo (10.5.4.1/SOGo), phpmyadmin, nextcloud, wg-easy, lam, etc.

How can I connect to NS8 services via VPN?

I missunderstood. Appologies.

1 Like

Just came accross this, not sure if its worth checking out WGDashboard/WGDashboard: Simple dashboard for WireGuard VPN written in Python & Vue.js

2 Likes

When wg-easy wireguard VPN is active you’re connecting via VPN. You can test by closing http and https port using firewall-cmd. I found that it’s not even needed to use 10.5.4.1.

All those are reachable via VPN when the HTTP/HTTPS ports are closed.

In NS8 SOGo uses a domain name like sogo.domain.tld.

@mrmarkuz I need to switch from IPsec site-to-site VPN to Wireguard site-to-site VPN between routers. I have a problem with this because NS8 also uses Wireguard VPN and I will need to connect to NS8 from the local network behind the router.

How can I change the Wireguard port on the NS8 so that both the router’s site-to-site VPN and the wg-easy VPN connected to the NS8 work? Is it enough to change the Wireguard listening port on the router and forward the port to the wg-easy client?

Thank you for your help

NS8 WG network and wg-easy use different UDP ports so there should be no issue, just forward both ports.

@mrmarkuz The router uses UDP port 51820 for its own Wireguard site-to-site VPN. I think NS8 and wg-easy use the same port. Am I wrong?

If I forward this port on the router, the router’s Wireguard VPN will not work…

WG-easy uses the same port (51820/udp), it’s not changeable currently. I hope you can change it on your router.