Hi,
I would like to remotely access OpenWRT on router, which is in different city. On my computer I have Debian OS. Unfortunately, various ways of OpenWRT configuration and attempts to connect remotely didn't work (I don't have physical access, so I tried to remotely help with configuring, but without success - I couldn't even connect by ssh).
So I decided first to try something like this locally on my machine, to learn it and test ssh or OpenVPN. Here I also have some troubles. I have two virtual machines, OpenWRT on one (configured as described here:
https://wiki.openwrt.org/doc/howto/virtualbox), the other machine with other Debian, to test remote connection to OpenWRT machine.
I did as explained here (
https://wiki.openwrt.org/doc/howto/vpn.openvpn), copied these files from OpenWRT and uploaded to that other machine (with Debian), where I have now: ca.crt, my-server.crt, my-server.key, update-resolv-conf, dh2048.pem, my-server.csr, openvpn.log, wrt.ovpn. I launch like this:
/etc/openvpn# sudo openvpn wrt.ovpn
and nothing happens in terminall, it's just waiting. In logs I can see:
OpenVPN 2.3.4 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZ0] [EPOLL] [PKCS11] [MH] [IPv6] built on Nov 12 2015
library versions: OpenSSL 1.0.1k 8 Jan 2015, LZO, 2.08
Socket Buffers: R=[212992->131072] S=[212992->131072]
UDPv4 link local (bound): [undef]
UPDv4 link remote: [AF_INET]myIP:1194
TLS Error: TLS key negotiation failed to occur within 60 second (check your network connectivity)
TLS Error: TLS handshake failed
where myIP is my external IP. I suspect issue with firewall. It's not a standard configuration. What can I do to access OpenWRT on virtual machine from other virtual machine (with Debian) by OpenVPN?
When I try from host (not any virtual machine) by SSH, I get:
root@mySystem:/home/myUser/Desktop# ssh root@myExtIp
And nothing happens, I need to click Ctrl+C
root@mySystem:/home/myUser/Desktop# ssh root@mójExtIp:22
ssh: Could not resolve hostname myExtIp:22: Name or service not known
where myExtIp is my external IP.
How can I connect to OpenWRT?
Thank you!
PS I also have some doubts about
https://wiki.openwrt.org/doc/howto/vpn.openvpn , i.e. what is this server-bridge configuration (I've skipped this step). I didn't do "Configure the OpenVPN server (ethernet bridge)", because they wrote "new and untested, doesn't work". And why should I run these all 'uci set' on OpenWrt client (in my case machine with Debian)? I have never needed to do things like this for normal OpenVPN use.