We have moved at community.getvera.com

Author Topic: port forwarding ?  (Read 5837 times)

Offline sky-chicken

  • Sr. Newbie
  • *
  • Posts: 21
  • Karma: +0/-0
port forwarding ?
« on: October 27, 2008, 11:57:20 pm »
I was wondering about the port vera is using to access the device behind my "natting" router

Offline 325xi

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1101
  • Karma: +0/-0
  • V1, V2, still V2...
Re: port forwarding ?
« Reply #1 on: October 28, 2008, 12:10:04 am »
I think it uses something like NAT keep-alive to avoid port forwarding.

Offline aaronox

  • Full Member
  • ***
  • Posts: 135
  • Karma: +0/-0
  • Aaron
Re: port forwarding ?
« Reply #2 on: October 29, 2008, 07:32:27 pm »
Correct. It creates a connection to findvera.com first, and then just keeps that connection alive.

The good thing about that is there is no configuration needed on your router to get that connection up, or to access the interface via findvera.com.
Aaron

Offline 325xi

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1101
  • Karma: +0/-0
  • V1, V2, still V2...
Re: port forwarding ?
« Reply #3 on: October 29, 2008, 09:09:19 pm »
This approach works well in simple applications, but you can't imagine (well, may be you can) how much trouble it creates in VoIP...

Offline aaronox

  • Full Member
  • ***
  • Posts: 135
  • Karma: +0/-0
  • Aaron
Re: port forwarding ?
« Reply #4 on: October 30, 2008, 12:57:17 am »
True.
Aaron

Offline micasaverde

  • Hero Member
  • *****
  • Posts: 1666
  • Karma: +15/-1
Re: port forwarding ?
« Reply #5 on: October 31, 2008, 03:20:46 pm »
Quote
This approach works well in simple applications, but you can't imagine (well, may be you can) how much trouble it creates in VoIP...

Can you clarify?  You mean Vera interferes with your VOIP?  It shouldn't.

Vera uses ssh to make a connection to the findvera.com server as a 'tunnel' back in.  It's very low bandwidth to keep the tunnel open.  The NetworkMonitor does a loopback ping every 60 seconds just to be sure the connection didn't die, and if it did, it closes and reopens the ssh tunnel.

Offline 325xi

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1101
  • Karma: +0/-0
  • V1, V2, still V2...
Re: port forwarding ?
« Reply #6 on: November 02, 2008, 11:12:39 pm »
No, of course it doesn't. What I meant is that the keep-alive approach used in VoIP created more troubles then good. Different routers had different UDP timeouts, so sometimes NAT dropped the port when it wasn't expected, and it couldn't work when signaling and media streams were coming from different IPs, etc
But it's all irrelevant for Vera, as from architectural perspective it's much more straight forward then VoIP. Timeout problem still can apply though...