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

    How do I allow client to access two subnets?

    Scheduled Pinned Locked Moved OpenVPN
    4 Posts 3 Posters 2.4k 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.
    • M
      Michael1490
      last edited by

      Network A is 192.168.0 and Network B is 192.168.2.  I have a pfSense box at each location with an OpenVPN link between the two that works great.  Now I'm adding a roaming laptop with the OpenVPN client installed that connects to pfSense box A for email, etc.  I would like to map a drive to a shared folder at Network B.  The laptop can ping anything in site A, but nothing in site B.  A tracert shows anything in site A is going through the tunnel, but anything in site B is going to external DNS.

      How do I get the client to talk to Network B?  What am I missing?  Thanks for any help you can give me.

      1 Reply Last reply Reply Quote 0
      • H
        heper
        last edited by

        you can connect from network A to B, so that would mean routes for those subnets are OK.

        Can i assume the roaming laptop is on a different subnet (for example 192.168.x.0/24)?
        I'm guessing the traffic from laptop will reach Pfsense B (or even Network B) but it does not know how/where to return traffic originating from this unknown "roaming" subnet.

        If my assumption is correct the you'd need a route on pfsense B. This route should point 192.168.x.0/24 to PFsense A.

        kind regards

        jeroen

        1 Reply Last reply Reply Quote 0
        • S
          saxonbeta
          last edited by

          As heper said you have to put the route poniting to your subnet. But you have to add more options in your configuration. I dont know what is your exact configuration but maybe this tutorial can help you http://blog.stefcho.eu/?p=733

          1 Reply Last reply Reply Quote 0
          • M
            Michael1490
            last edited by

            That is awesome.  Thank you very much.  I had everything but the route on the box 2.  I added the route, and it started talking immediately.  I can't thank you enough.

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