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

    [SOLVED] OpenVPN Site to Site VPN and Client VPN routing howto

    Scheduled Pinned Locked Moved OpenVPN
    4 Posts 2 Posters 1.2k 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.
    • B
      bzg
      last edited by

      Dear Members,

      I've no more idea how to resolve my problem, I hope someone can help. This is my situation:

      • there is two sites, site A (master) 10.0.1.0/24, site B (slave) 10.0.2.0/24
      • pfSense 2.1.5 running on both sites
      • there is site to site vpn (openvpn) between two sites 10.0.5.0/30
      • site A is the server, site B is the client, the vpn is running well
      • on site A is running another openvpn for users, this vpn is running as well 192.168.0.0/24
      • the traffic is okay:
        – 192.168.0.0/24 (users VPN) -> 10.0.1.0/24 (site A)
        -- 10.0.1.0/24 (site A) -> 10.0.2.0/24 (site B)
        -- 10.0.2.0/24 (site B) -> 10.0.1.0/24 (site A)

      My problem is that 192.168.0.0/24 (users VPN) -> 10.0.2.0/24 (site B) doesn't work's. How can I route between the the networks?

      Kind Regards,
      Zoltan

      1 Reply Last reply Reply Quote 0
      • DerelictD
        Derelict LAYER 8 Netgate
        last edited by

        Add 10.0.2.0/24 to the "Local Networks" on "users VPN"
        Add 192.168.0.0/24 to the "Local Networks" on the site-to-site server config

        I think that's all you should need to do as long as the rules on your OpenVPN tabs allow any any.

        Chattanooga, Tennessee, USA
        A comprehensive network diagram is worth 10,000 words and 15 conference calls.
        DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
        Do Not Chat For Help! NO_WAN_EGRESS(TM)

        1 Reply Last reply Reply Quote 0
        • B
          bzg
          last edited by

          @Derelict:

          Add 10.0.2.0/24 to the "Local Networks" on "users VPN"
          Add 192.168.0.0/24 to the "Local Networks" on the site-to-site server config

          I think that's all you should need to do as long as the rules on your OpenVPN tabs allow any any.

          Thank you Derelict, I tried this, but still doesn't works. The firewall rules are any to any on openvpn device.

          I'm nut sure if is important, but I checked on Diagnostics -> Routing tables and it looks, that the two subnet user VPN and site to site VPN are running on different Netif devices (ovpns1 and ovpns2). Is this okay?

          1 Reply Last reply Reply Quote 0
          • B
            bzg
            last edited by

            I added to site to site VPN on client side: Remote Networks: 192.168.0.0/24

            Now it looks like everything it's okay.

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