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

    Hub & Spoke Setup using pf2.1 - No Communication Between Spokes

    Scheduled Pinned Locked Moved OpenVPN
    3 Posts 2 Posters 2.5k Views
    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.
    • A
      airforceixi
      last edited by

      I have 3 sites currently. One site is the master "hub", the others are the "spokes". I can access the hub just fine from both of the spoke networks, but the spoke networks can't communicate with each other. I've been using shared keys with separate server instances on the hub for each spoke. The hub can access all the networks without issue. Here's the configuration:

      Site 1 [Hub]
      IP: 10.0.0.1/24
      VPN to Site 2
      Port: 1194
      ovpn tun1 IP: 10.0.40.1/24
      "IPv4 Local Network/s": 10.0.0.0/24,10.0.20.0/24
      "IPv4 Remote Network/s": 10.0.1.0/24
      VPN to Site 3
      Port: 1199
      ovpn tun2 IP: 10.0.41.1/24
      "IPv4 Local Network/s": 10.0.0.0/24,10.0.1.0/24
      "IPv4 Remote Network/s": 10.0.20.0/24

      Site 2
      IP: 10.0.1.1/24
      ovpn tun1 IP: 10.0.40.2/24
      "IPv4 Remote Network/s": 10.0.0.0/24,10.0.20.0/24

      Site 3
      IP: 10.0.20.1/24
      ovpn tun2 IP: 10.0.41.2/24
      "IPv4 Remote Network/s": 10.0.0.0/24,10.0.1.0/24

      Any suggestions/tips? Thanks.

      1 Reply Last reply Reply Quote 0
      • V
        vielfede
        last edited by

        You need to add specific "hub&spoke" OpenVPN commands.
        Take a look here
        http://www.secure-computing.net/wiki/index.php/OpenVPN/Routing

        1 Reply Last reply Reply Quote 0
        • A
          airforceixi
          last edited by

          Just as you posted your reply vielfede, I seemed to have fixed my own issue. Under "IPv4 Local Network/s" I removed the opposite spoke's subnet. I then rebooted all of the units and everything seemed to run perfectly fine. Thanks for your tip, though! I'll read through that anyhow so that I can become more familiar with OpenVPN.

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