• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

How to get to see all my IoT devices through VPN connection to remote location

Firewalling
3
4
550
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V
    vmsca
    last edited by Nov 4, 2023, 10:17 PM

    So this is the setup, I am connecting to a remote location through OpenVPN. This location's LAN network is 10.10.0.0/22, and the network assigned to my VPN connection is 192.168.2.0/24.

    I have a rule in the firewall settings that is allow LAN network to any, so I am expecting with this rule that all my network can see every device on it. No matter if you are o 10.10.0.0/22 or 192.168.2.0/24.

    For example, I CAN access the router on 10.10.0.1 with the VPN connection, also I CAN access any device through typing it's lan address, for example an IP camera at 10.10.0.20 using my VPN connection with assigned address 192.168.2.3.

    But what it doesn't work specifically is seeing my chromecast audio currently on 10.10.0.130, from my pc connected to that location with VPN. When I open spotify there's no chromecast there, but I can access all the network hmm... what am I doing wrong?

    V J 2 Replies Last reply Nov 5, 2023, 12:27 PM Reply Quote 0
    • V
      viragomann @vmsca
      last edited by Nov 5, 2023, 12:27 PM

      @vmsca said in How to get to see all my IoT devices through VPN connection to remote location:

      But what it doesn't work specifically is seeing my chromecast audio currently on 10.10.0.130, from my pc connected to that location with VPN. When I open spotify there's no chromecast there,

      What you want to achieve here, might require that both, the server and the client resides within the same layer 2 network. This requires protocols which are not passed across a router and cannot be routed at all.
      There are several helper programs available for this though, but I'm in doubt that this will work over a VPN.

      Anyway, when looking for a solution for that, you should rather put keyword like "Chromecast" or "Spotify" together with "VPN" into the heading.

      V 1 Reply Last reply Nov 5, 2023, 10:32 PM Reply Quote 1
      • V
        vmsca @viragomann
        last edited by Nov 5, 2023, 10:32 PM

        @viragomann Hmm interesting, I really thought you only needed to see machines on the same subnet. Will look into it, thank you!

        1 Reply Last reply Reply Quote 0
        • J
          johnpoz LAYER 8 Global Moderator @vmsca
          last edited by Nov 6, 2023, 3:08 AM

          @vmsca said in How to get to see all my IoT devices through VPN connection to remote location:

          what am I doing wrong?

          nothing really - but discovery only works on the same network.. Chromecast isn't going to be discovered over routed networks, be they locally routed over over a vpn even locally routed.

          The discovery is meant to be on the same L2.. Talk to google there should be no reason to not have the option to put in the IP or fqdn of the chromecast so you can cast to it. You shouldn't have to rely on "discovery" that is great for grandma and such - but you should also have the option to set what the IP of the chromecast you want to cast to is on.

          They design their device so your typical home user with everything on one network doesn't have to know anything and it just discoveries it and works.. Which is fine, but what about those that are not on 1 flat network ;)

          An intelligent man is sometimes forced to be drunk to spend time with his fools
          If you get confused: Listen to the Music Play
          Please don't Chat/PM me for help, unless mod related
          SG-4860 24.11 | Lab VMs 2.7.2, 24.11

          1 Reply Last reply Reply Quote 0
          1 out of 4
          • First post
            1/4
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.