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

    Using a PFsense VM in cloud to manage Internet traffic of another VM in cloud

    General pfSense Questions
    5
    9
    1.1k
    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.
    • S
      solvertech
      last edited by

      I have 2 hosted vm's in the cloud. Would it be possible for the PFsense vm to filter all internet traffic to and from the second vm? Sorry for the newb question, quite new to this. Both VM's are on same ip range and subnet, as i host them both at the same provider. Both have only one ethernet adaptor .

      1 Reply Last reply Reply Quote 0
      • stephenw10S
        stephenw10 Netgate Administrator
        last edited by

        Yes but it would be ugly and not very secure.

        Where are they hosted that only allows one NIC?

        Steve

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

          Well, it is a project in the making. I can add multiple nic's if the need arises. I just have no idea where to start or if the scenario is possible and effective.

          1 Reply Last reply Reply Quote 0
          • stephenw10S
            stephenw10 Netgate Administrator
            last edited by

            OK, well in general it can work and be effective. Hard to get more specific without more info.

            You really want to have two subnets though with the pfSense VM having a NIC in both and routing/filtering traffic between them.

            Steve

            1 Reply Last reply Reply Quote 0
            • K
              kapara
              last edited by

              I do this with great success at OVH.  I have 6 Dedicated server with 3-10 VM's sitting behind virtual pfsense.  I use Hyper-V and have no issues.  I even use it to host the domain controllers and file servers for several companies with point to point ipsec to the remote offices for access.  The only issue I have run into is I sometimes have to rebuild the firewall rather than doing an upgrade but then I easily just restore the config.  OVH is the best location for this!

              If you want to take it to the next level you can installpfsense directly on the host machine and then use the vrack to connect the VM Host machine to the firewall for access to the internet via the dedicated pfSense machine!

              Skype ID:  Marinhd

              B 1 Reply Last reply Reply Quote 0
              • NollipfSenseN
                NollipfSense
                last edited by

                Very interesting discussion here, I ready to learn!

                pfSense+ 23.09 Lenovo Thinkcentre M93P SFF Quadcore i7 dual Raid-ZFS 128GB-SSD 32GB-RAM PCI-Intel i350-t4 NIC, -Intel QAT 8950.
                pfSense+ 23.09 VM-Proxmox, Dell Precision Xeon-W2155 Nvme 500GB-ZFS 128GB-RAM PCIe-Intel i350-t4, Intel QAT-8950, P-cloud.

                1 Reply Last reply Reply Quote 0
                • K
                  kapara
                  last edited by

                  What is also very cool is you can take snapshot of the firewall and upgrade and in the event of failure you can just revert.

                  In some instances I replicate the firewall VM and the other VM's to another host (5 minute interval of replication.  In OVH because Failover IP's can be moved between systems it just requires a few tweaks to get it operational again.

                  (Make sure your vswitches in the other host match the original host before beginning)

                  1. Fail machines over to other host.
                  2. Remove MAC addresses from FO ip's
                  3. Move FO ip's to new host. 
                  4. Generate new MAC for FO ip's
                  5. Wan adapter in pfsense on new host manually assign FO ip MAC address to NIC (This is the pfsense WAN IP
                  6. modify shellcmd's to use new gateway IP assigned to host network adapter.

                  I think that is it though you may need to go into routing.  WAN IP stays the same and all my VPN's come back up.

                  Skype ID:  Marinhd

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

                    Thanks for all the info! Guess im going on a steep learning curve here ;D ;D ;D

                    1 Reply Last reply Reply Quote 0
                    • B
                      BRUSLX @kapara
                      last edited by

                      hi kapara
                      could you be more specific for your statement : If you want to take it to the next level you can installpfsense directly on the host machine....
                      Do you mean instaling pfsense directly on a physical machine ? Is this feasable when using OVH vrack ?

                      thanks

                      Stephane

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