![]() |
LOGIC MACHINE REMOTE MANAGEMENT - Printable Version +- Logic Machine Forum (https://forum.logicmachine.net) +-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1) +--- Forum: General (https://forum.logicmachine.net/forumdisplay.php?fid=2) +--- Thread: LOGIC MACHINE REMOTE MANAGEMENT (/showthread.php?tid=2577) Pages:
1
2
|
LOGIC MACHINE REMOTE MANAGEMENT - Hyxion14 - 13.04.2020 Hello, is there any way to connect to the logic machine home page to access the apps without having to redirect the http port on the local router? That is, if as an integrator (installer) I want to access the logic machine page to change a script or to see the status of KNX objects, how can I do it without redirecting port 80 (http)? Thank you very much. RE: LOGIC MACHINE REMOTE MANAGEMENT - admin - 14.04.2020 The only solution for now is to use a router with VPN support. This solution is more secure than port forwarding. Next firmware will have support for VPN client but for this you will need your own VPN server. We will provide a tutorial on how to run it yourself by using a cheap virtual server. RE: LOGIC MACHINE REMOTE MANAGEMENT - Hyxion14 - 14.04.2020 I have a Mikrotik router with a VPN server on my network, that would not be a problem, but the ideal would be to have a VPN client in the LM. The VPN solution is something I have thought of, but I think it is very intrusive to the customer. Think that connecting via VPN to the installation gives me access to the client's network and I think that is not entirely legal. So I am asking for some way to ONLY access the LM without doing port forwarding. Thank you. RE: LOGIC MACHINE REMOTE MANAGEMENT - edgars - 15.04.2020 you can try this firmware for LM5 Lite Power with OpenVPN precompiled. Here is theĀ instruction to make LM <---> Mikrotik OpenVPN connection. RE: LOGIC MACHINE REMOTE MANAGEMENT - Hyxion14 - 15.04.2020 Awesome thanks. I am going to try. RE: LOGIC MACHINE REMOTE MANAGEMENT - AlexLV - 15.04.2020 Hi Edgars, may be you have firmware for LM5p2-RDE?? Also interesting to test VPN and I also have Mikrotik ![]() BR, Alex RE: LOGIC MACHINE REMOTE MANAGEMENT - Hyxion14 - 15.04.2020 (15.04.2020, 08:57)edgars Wrote: you can try this firmware for LM5 Lite Power with OpenVPN precompiled. Hi Edgar, I am trying to configure the OpenVPN connection, but it gives me an error. He tells me he is missing </CA> My configuration file would look something like this: client dev tun proto tcp remote miip.com 1194 resolv-retry infinite nobind persist-key persist-tun ca ca.crt cert client.crt key client.key remote-cert-tls server cipher AES-128-CBC auth SHA1 auth-user-pass redirect-gateway def1 verb 3 <CA> ----- BEGIN CERTIFICATE ----- my certificate ----- END CERTIFICATE ----- <cert> ----- BEGIN CERTIFICATE ----- my certificate ----- END CERTIFICATE ----- <key> ----- BEGIN ENCRYPTED PRIVATE KEY ----- my key ----- END ENCRYPTED PRIVATE KEY ----- I have removed the certificates for security. RE: LOGIC MACHINE REMOTE MANAGEMENT - admin - 15.04.2020 Please send your configuration file via PM RE: LOGIC MACHINE REMOTE MANAGEMENT - Hyxion14 - 15.04.2020 Ok, I just sent it to you. Thank you. RE: LOGIC MACHINE REMOTE MANAGEMENT - admin - 15.04.2020 You need to close the tags properly: Code: <ca> Also remove auth-user-pass and specify username/password in client configuration form. RE: LOGIC MACHINE REMOTE MANAGEMENT - Hyxion14 - 15.04.2020 Ok, Now, in the OpenVPN status page: It tells me that there is an error: Wed Apr 15 16:50:38 2020 neither stdin nor stderr are a tty device and you have neither a controlling tty nor systemd - can't ask for 'Enter Private Key Password:'. If you used --daemon, you need to use --askpass to make passphrase-protected keys work, and you can not use --auth-nocache. RE: LOGIC MACHINE REMOTE MANAGEMENT - admin - 15.04.2020 The problem is that your private key has a password set. This will not work, try creating new config where key does not have a password. RE: LOGIC MACHINE REMOTE MANAGEMENT - Hyxion14 - 15.04.2020 (15.04.2020, 14:58)admin Wrote: Have you removed auth-user-pass and specified username/password directly in the config? Does your server require username/password? If it still does not work send username/password via PM. Have you removed auth-user-pass and specified username/password directly in the config? yes Does your server require username/password? yes If it still does not work send username/password via PM. Ok RE: LOGIC MACHINE REMOTE MANAGEMENT - admin - 15.04.2020 I've updated my post, the issue is of different sort. RE: LOGIC MACHINE REMOTE MANAGEMENT - Hyxion14 - 15.04.2020 (15.04.2020, 14:58)admin Wrote: The problem is that your private key has a password set. This will not work, try creating new config where key does not have a password. But I follow the instrucction of this link: https://openrb.com/lm5-openvpn-tunnel-to-mikrotik-router/ How can I create the key without password. Thanks RE: LOGIC MACHINE REMOTE MANAGEMENT - admin - 15.04.2020 This line is incorrect: Code: export-certificate client-certificate export-passphrase=12345678 It should be: Code: export-certificate client-certificate export-passphrase="" RE: LOGIC MACHINE REMOTE MANAGEMENT - Hyxion14 - 15.04.2020 (15.04.2020, 15:35)admin Wrote: This line is incorrect: Ok, but if you do that, Mikrotik does NOT generate the client.key, it only generates two certificate files, the ca.crt and the client.crt, but it does not generate the .key and when it does not generate it, LM fail because it says that it you must specify a .crt and a .key RE: LOGIC MACHINE REMOTE MANAGEMENT - admin - 15.04.2020 Then an extra step is required to remove the passphrase. 1. Download OpenSSL for Windows here: https://indy.fulgan.com/SSL/ (openssl-1.0.2u-x64_86-win64.zip) 2. Place your key (cert_export_client-certificate.key) in the same directory as openssl.exe 3. Open cmd and go to openssl directory 4. Run this command: openssl.exe rsa -in cert_export_client-certificate.key -out out.key 5. Enter passphrase 6. Use the key from out.key in your OpenVPN config RE: LOGIC MACHINE REMOTE MANAGEMENT - admin - 16.04.2020 Unfortunately this looks like a common Mikrotik issue with OpenVPN server. This might be due to older server version on Mikrotik or something else. RE: LOGIC MACHINE REMOTE MANAGEMENT - Hyxion14 - 17.04.2020 Impossible to connect LM with mikrotik, I have been trying to see the problem for two days and I have not succeeded. It gives me error in TLS negotiation. Fri Apr 17 13:53:49 2020 SIGUSR1 [soft, tls-error] received, process restarting Fri Apr 17 13:53:49 2020 TLS Error: TLS handshake failed Fri Apr 17 13:53:49 2020 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network I don't know what to try. In the mikrotik LOG there are no errors. |