ok, now I've got a better idea of what's going wrong (I still don't know exactly). Here is the problem:
TLS Auth Error: --client-config-dir authentication failed for common name 'ian' file='ccd-bridge/ian'
It's because, as additionnal security, I prevent any user who don't have a specific configuration file in /etc/openvpn/ccd-bridge to connect. These configuration files should be generated automaticaly according to the authentication method:
for method 1 and 3, it uses the user account. Each user who have VPNClientAcces=yes will have a configuration file, the others will have one with the directive --diable and this is how the access is controled with the VPNClientAccess variable. For method 1 and 3, the CN of the user is set to it's login and the CN of the certificate (if used with method 3) is ignored so the configuration file name must match the login of the user
for method 2 and 4, the clients certificates are used to generate the config files. A file is generated only for non-revoked certificates of course, the revokated one has a file with the directive --disable. For those two method, the CN is set to the CN of the certificate presented so the configuration file name must match the CN of the certificate presented.
You can have a look at the template /etc/e-smith/templates-custom/etc/openvpn/ccd-bridge/.config if you wan't, I think it'll be easier for you to understand how it works.
Now, look at your directory /etc/openvpn/ccd-bridge and which configuration files are present. If there's no 'ian' file, there's a problem somewhere, try the following:
expand-template /etc/openvpn/ccd-bridge/.config
and if there's still no 'ian' file, repport it here.
If there's a 'ian' file, it will probably have the directive --disable, that mean either:
- you use method 1 or 3 and you don't have VPNClientAccess set to yes
- you use method 2 or 4 and your certificate is marked as revoked
Hi VIP-ere,
Well I tried to connect today and had no luck, so I just turned off my test server and installed openvpn on my server/gateway and I connected straight away Very Happy I must admit that I have never had much luck with port forwarding in SME, I couldn't get SAIL/Asterisk to work on my test server, but that worked OK as soon as I installed on my main server Shocked So thanks for all your help and hard work with this contrib, I look forward to using my network even when I am away Cool
Regards,
Del
Quite strange, I think it's a port redirection problem because I developped it on a server-only SME and everything seems to work (but I tested most of the functions on a server& gateway mode so maybe I forgot something). Does anyone else uses server-only mode and can tell if it's working or not please?