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

    Trying to setup communication between 2 subnets

    Scheduled Pinned Locked Moved Routing and Multi WAN
    2 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.
    • G
      GLADoS11
      last edited by

      Hi all, first time poster so please forgive me if this is a dumb question.

      I am running a few VMs for an Active Directory lab and need to get them to communicate with each other to simulate different sites. My current setup is this:

      pfSense VM 1:

      WAN link = 192.168.1.9/24 (my home network subnet)
      LAN link = 10.10.50.3/24 (my internal LAN that assigns IPs to my test virtual machines)

      pfSense VM 2:

      WAN link = 192.168.1.12/24 (also on my home network)
      LAN link = 10.20.50.3/24 (internal LAN that assigns IPs to a different set of VMs)

      I need to setup communication between these 2 pfsense machines so that I can closely simulate a real environment with one site on another subnet than the main site. What is the easiest way to go about doing this? Thanks very much in advance.

      1 Reply Last reply Reply Quote 0
      • P
        phil.davis
        last edited by

        If you want to simulate having servers available on what looks like the outside "public" internet, then just port forward from the WAN IP on each VM into the server/s. Then add some host overrides in DNS to specify names that point to the WAN IP where the server sits behind. Then you can access the "remote" server by name, which goes to the WAN IP and is forwarded in to the test server.
        If you want to test a private site-to-site VPN, then simply setup an OpenVPN site-to-site link with OpenVPN server listening on WAN1 192.168.1.9 and OpenVPN client coming from WAN2 192.168.1.12 - pick some private IP tunnel network for the VPN hop. Put a pass rule on WAN1 to let the client in to the port the OpenVPN server is listening on… Then traffic can flow back and forth as if between offices.

        As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
        If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

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