Accessing the classic from anywhere without port forwarding

Started by Graham, January 20, 2017, 12:34:58 PM

Previous topic - Next topic

Graham

Came across this site https://developer.weaved.com/portal/ that  permits the access of IOT devices behind a firewall, it requires an agent running on the local network to be setup to the weaved account.

It's likely using something similar to SSH reverse port forwarding as explained here http://unix.stackexchange.com/questions/46235/how-does-reverse-ssh-tunneling-work

I setup my raspberryPi with the agent and modified their  /etc/config/weaved/services/*.conf file to forward to my classic
proxy_dest_port 502
proxy_dest_ip 192.168.0.22

Then, on the weaved dashboard I got the proxyIp and port, entered that into the local app or android app and connect.
Unfortunately, with a free account, the proxy is only valid for half an hour so you have to get a proxy address/port each time you want to connect remotely

Off-Grid Island cottage, Lac Simon QC Canada
370 Ahrs @ 24V (4 8L16 batteries)
4 x 250watt panels on dual axis trackers http://tinyurl.com/hfpkgr5
Classic 150, Whizbang Jr.
Android Monitor: http://tinyurl.com/lomzq3s

TomW

Graham;

That seems much more sane / safe than blowing a hole through your router.

Thanks for the share!

Tom
Do NOT mistake me for any kind of "expert".

( ͡° ͜ʖ ͡°)


24 Trina 310 watt modules, SMA SunnyBoy 7.7 KW Grid Tie inverter.

I thought that they were angels, but much to my surprise, We climbed aboard their starship and headed for the skies

TomW

Seems to be available as a Debian package, too.

"weavedconnectd - Simplifies remote connections to computers behind NAT firewalls"

At least on my Debian 7.11 systems  on my rPi machines.

Not there in Jessie/Sid on the Cubie boards.

Tom
Do NOT mistake me for any kind of "expert".

( ͡° ͜ʖ ͡°)


24 Trina 310 watt modules, SMA SunnyBoy 7.7 KW Grid Tie inverter.

I thought that they were angels, but much to my surprise, We climbed aboard their starship and headed for the skies

Graham

Midnite Solar should embed this type of agent in their new comms box and host the proxy at mymidnite.


Graham.
Off-Grid Island cottage, Lac Simon QC Canada
370 Ahrs @ 24V (4 8L16 batteries)
4 x 250watt panels on dual axis trackers http://tinyurl.com/hfpkgr5
Classic 150, Whizbang Jr.
Android Monitor: http://tinyurl.com/lomzq3s

Graham

Quote from: TomW on January 20, 2017, 12:45:00 PM
Graham;

That seems much more sane / safe than blowing a hole through your router.

Thanks for the share!

Tom

Plus you don't have to pay for a dyndns service


Graham.
Off-Grid Island cottage, Lac Simon QC Canada
370 Ahrs @ 24V (4 8L16 batteries)
4 x 250watt panels on dual axis trackers http://tinyurl.com/hfpkgr5
Classic 150, Whizbang Jr.
Android Monitor: http://tinyurl.com/lomzq3s

grgdgreek

Quote from: Graham on January 21, 2017, 09:24:35 AM
Quote from: TomW on January 20, 2017, 12:45:00 PM
Graham;

That seems much more sane / safe than blowing a hole through your router.

Thanks for the share!

Tom

Plus you don't have to pay for a dyndns service


I would also like that :-)
George :-)


Graham.
Home:6*135w mitsu.10*175w shuko. 2* cl150.3*D400 turbines.
Rolls18*4v series 5000 545ah*3 .2*Victron 3000 multiplus inv/chg. 24v. Shop:28*185w shuko. Sunny island. Sunnyboy.Rolls 40*s530.48volt.Sunny web box.

cjbamenda

Graham:

I read your post from long ago with interest. I also discovered that Weaved is now owned by Remote.It which I have installed and use on a RPi400 connected to my LAN. I can't figure out how to make this approach you described work with Remote.It. Any ideas or is this too far in the past?

boB

K7IQ 🌛  He/She/Me

Graham

It's been a while, I don't remember how I set that up, I have another look at it and see if I can figure it out.

You might be able to use cloudflare, here is a link to a video or this video if you're using HomeAssistant
You can use Freenom for the domain name

You could also setup a vpn with wireguard running in a docker container, you can use IOTStack on a RP4 IOTstack/Containers/WireGuard/

I'm currently playing around with the OPNSense router running on a Zimaboard with the Wireguard plug-in so I can access my local network remotely...



Off-Grid Island cottage, Lac Simon QC Canada
370 Ahrs @ 24V (4 8L16 batteries)
4 x 250watt panels on dual axis trackers http://tinyurl.com/hfpkgr5
Classic 150, Whizbang Jr.
Android Monitor: http://tinyurl.com/lomzq3s

qcda1

Not sure if this is still monitored. I discovered last year ZeroTier VPN that allowed me to join my Raspberry PIs and IOS devices together in an external VPN network. Works flawlessly. I can access all my networked devices from any site (home and off-grid cottage) and with my mobile devices.
1,2kW on tracker, 1,4kW fixed, 2xMidnite Classic150, Magnum MS4448PAE, 4xMapleLeaf 48VDC/100Ah LiFePO4 and Kohler 14RCA with homegrown monitoring/alerting system.

ClassicCrazy

Quote from: qcda1 on January 25, 2025, 09:13:11 AMNot sure if this is still monitored. I discovered last year ZeroTier VPN that allowed me to join my Raspberry PIs and IOS devices together in an external VPN network. Works flawlessly. I can access all my networked devices from any site (home and off-grid cottage) and with my mobile devices.
Tailscale also works with any computers no port opening needed  , though to VNC the screen works best going to  linux based ones.
Larry
system 1
Classic 150 , 5s3p  Kyocera 135watt , 12s Soneil 2v 540amp lead crystal 24v pack , Outback 3524 inverter
 5s 135w Kyocero , 3s3p 270w Kyocera   Classic 150 ,8s2p  Kyocera 225w to Hawkes Bay Jakiper 48v 20kwh  ,Gobel 16 kwh  lifepo4 Outback VFX 3648  8s2p 380w Rec pv EG4 6000XP