jjmmbb
(J. Brasil)
June 30, 2024, 1:58pm
1
NethServer Version: NS8
Module: samba
Is there any easy way to perform a VPN configuration on NS8? I am searching this forum trying to find out some examples, but all them are referring to version 6 and 7.
Basically I would like to add these features below to NS8:
VPN Single SignOn with Samba AD - SambaWiki
dnutan
(Marc)
June 30, 2024, 2:20pm
2
Although wireguard is a crucial part of NS8, there’s no official vpn module. But @mrmarkuz brought wg-easy:
Hello,
please test wg-easy for NS8:
EDIT:
Usable environment variables: GitHub - wg-easy/wg-easy: The easiest way to run WireGuard VPN + Web-based Admin UI.
For now you can manage them in the environment file by running
runagent -m wg-easy1 nano environment
and restarting the service:
runagent -m wg-easy1 systemctl --user restart wg-easy
I just used the variables to make it workable. All traffic is routed to the server, you need to add WG_ALLOWED_IPS to only route specific networks to …
1 Like
Why do you want to terminate a VPN directly on the server? Why not on the gateway / firewall?
jjmmbb
(J. Brasil)
June 30, 2024, 3:43pm
4
Thank you. I will try it.
jjmmbb
(J. Brasil)
June 30, 2024, 3:44pm
5
I need the ability to define using AD what users can connect or not using VPN and also is possible to use the same username/password combination to authenticate.
Then tell your gateway / firewall to use the AD of the NS 8 for authentication.
jjmmbb
(J. Brasil)
June 30, 2024, 4:17pm
7
Is it possible to do it using wg-easy?
capote
(Marko)
July 1, 2024, 2:41pm
8
This is necessary if you are using a KVM server with a hosting provider without access to a gateway.
1 Like
jjmmbb
(J. Brasil)
July 2, 2024, 4:32pm
9
Yea, capote. Many other scenarios too it’s necessary to authenticate on the server.
Do you know how to make that integration?
capote
(Marko)
July 2, 2024, 4:53pm
10
I haven’t tried it yet because I need to solve basic problems like WordPess based on NGINX as a replacement for Apache.
But I am sure that @mrmarkuz could answer specific questions.
I would start by installing his module and then connect from an appliance like OPNSense.
1 Like
mrmarkuz
(Markus Neuberger)
July 2, 2024, 5:32pm
11
No, Wireguard doesn’t authenticate to AD, it just uses keys.
That would be nice, at least freeradius and xl2tpd containers are required.
1 Like
jjmmbb
(J. Brasil)
July 2, 2024, 5:56pm
12
Do you know if there is someone in the forum that successfully implemented that setup?
mrmarkuz
(Markus Neuberger)
July 3, 2024, 7:49pm
13
No, but there’s an OpenVPN docker container .
It can be configured to use LDAP to connect to AD.
Do you need the l2tp VPN?
jjmmbb
(J. Brasil)
July 3, 2024, 10:24pm
14
I think so because I want to use AD username and password.
mrmarkuz
(Markus Neuberger)
July 3, 2024, 10:45pm
15
That’s also possible with OpenVPN because it supports AD for authentication.
jjmmbb
(J. Brasil)
July 7, 2024, 2:34pm
16
I will have to install a test environment to try to configure it because I have no success in my tests.
1 Like