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

    Route a network to pfSense which available on a VM

    Scheduled Pinned Locked Moved Routing and Multi WAN
    5 Posts 2 Posters 736 Views 2 Watching
    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 Offline
      buomque1
      last edited by

      Hi guys, I need help with my setup.
      My physical server has 2 VMs.
      #1)pfSense VM:
      WAN interface: public IP
      LAN interface: 10.10.10.1
      #2)Windows VM:
      NIC1: 10.10.10.2 (LAN)
      NIC2: 172.16.1.2 (dedicate server physical port)

      Server's physical port is connecting to a Cisco switch, and there are a couple more servers (172.16.1.3-10) which are connecting to this same switch.

      I have troubling reaching 172.16.1.3-10 from pfSense. Is there anyway I could route this IP block to pfSense?

      Thank you for any help.

      alt text

      1 Reply Last reply Reply Quote 0
      • N Offline
        netblues
        last edited by

        Well, since your lan interface is on 10.10.10.1 there are two options.
        a. Enable routing on windows, and add a route on pfsense for 172.16.1.0/24 via 172.16.1.2, or add an additional interface on pfsense, on lan 172.16.1.0/24
        Obviously the second is a far better option.

        B 1 Reply Last reply Reply Quote 0
        • B Offline
          buomque1 @netblues
          last edited by

          @netblues

          I followed your option #2, went to Virtual IPs and created 172.16.1.1/24 on LAN interface.

          From my Windows VM, i can ping 172.16.1.1, however from pfSense I cannot ping 172.16.1.2.

          Am I missing something?

          N 1 Reply Last reply Reply Quote 0
          • N Offline
            netblues @buomque1
            last edited by

            @buomque1 I never said virtual ip. I said another interface on vm
            You can have multiple lan interfaces on pfsense (the main difference from wan interfaces is that there is no gateway defined.)

            B 1 Reply Last reply Reply Quote 0
            • B Offline
              buomque1 @netblues
              last edited by

              @netblues

              It works perfectly.

              Thanks a ton!!

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