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

    Put server itself under pfsense VM

    Scheduled Pinned Locked Moved Virtualization
    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.
    • F
      franz75
      last edited by

      Hi, I have a little itx server with two ethernet ports, Debian O.S. and VirtualBox with pfSense inside. Naturally I'm using an ethernet port for WAN (connected to router that take static IP from ISP) and another for LAN (dhcp released by pfSense for hosts). I would want to put the server under pfSense VM so all traffic will be conveyed through the firewall. For example, I want to install http service on the server and I want that it will be under the firewall.
      Is that possible or I have to create a new VM with http service bridged with LAN interface?  ::)
      Thanks in advance

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

        so keep your WAN of pfsense bridged to the NIC that is connected to your ISP

        but then create an internal vSwitch that is bonded to your secondary NIC

        then point your LAN interface of pfsense to that vSwitch

        then also point your webserver VM to that same internal vSwitch

        and that will put your server "under" or "behind" the virtual firewall as well as other devices on your physical network if you plug that secondary NIC into your internal physical switch

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