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

    How to configure OpenVPN in such way that it can access 2 lan networks

    Scheduled Pinned Locked Moved OpenVPN
    openvpn
    5 Posts 3 Posters 838 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.
    • V
      vinayv
      last edited by

      Hi Everyone,

      I relatively new to pfsense and I am trying to address the small problem. Below is my network setup I have 2 LAN Networks configured

      wan - x.x.x.x.x
      Lan1 - 192.168.100.0/24
      Lan2 - 192.168.101.0/24

      I configured an OpenVPN server on the WAN network to access LAN1 and LAN2 networks remotely but I cannot access LAN2 remotely I can only access LAN1. Is there any configuration i have to do in order to access both the networks remotely.

      FYI: both LAN's are connected to the same switch but separated by VLAN and LAN1 is connected to the router for external access. LAN2 is not connected to any router.

      1 Reply Last reply Reply Quote 0
      • johnpozJ
        johnpoz LAYER 8 Global Moderator
        last edited by

        @vinayv said in How to configure OpenVPN in such way that it can access 2 lan networks:

        LAN2 is not connected to any router.

        Huh? Then how exactly do you think you could get to it from pfsense?

        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.8, 24.11

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

          @johnpoz said in How to configure OpenVPN in such way that it can access 2 lan networks:

          ted to any rout

          Can we simply add route to make communication possible between these networks

          1 Reply Last reply Reply Quote 0
          • johnpozJ
            johnpoz LAYER 8 Global Moderator
            last edited by

            You could but you said its not connected to a router, so what is going to route it..

            How about you draw up this network.. I am thinking maybe your just running multiple layer 3 networks on the same layer 2?

            How does this 101/24 connect to 100/24

            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.8, 24.11

            1 Reply Last reply Reply Quote 0
            • RicoR
              Rico LAYER 8 Rebel Alliance
              last edited by

              How would you route traffic without adding some kind of router to this LAN? 🙃

              -Rico

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