OPNsense Forum

Archive => 16.7 Legacy Series => Topic started by: ezra55 on January 07, 2017, 10:18:33 pm

Title: Searching for advice - Virtualization and OPNsense
Post by: ezra55 on January 07, 2017, 10:18:33 pm
Title: Re: Searching for advice - Virtualization and OPNsense
Post by: bartjsmit on January 08, 2017, 11:49:37 am
Hi Ezra,

Any mileage in replacing Ubuntu with VMware? This will let you run a virtual switch on the WAN side without any need to assign it an IP address.

ESXi is admittedly only free as in beer, not as in speech and the HCL is a lot more restrictive.

Bart...
Title: Re: Searching for advice - Virtualization and OPNsense
Post by: ezra55 on January 08, 2017, 12:09:42 pm
I've looked at it but some drivers where missing on installing esxi... to much hassle. All my images are also in .vdi so that means converting them all. Also I can't run software raid on esxi and I've had big trouble setting up hardware raid on asrock motherboard.

So I have a good working solution right now... I might change over to VMware in the future...

Thanks for your time.
Title: Re: Searching for advice - Virtualization and OPNsense
Post by: ezra55 on January 08, 2017, 04:42:28 pm
Alright, done some searching and I came up with NIC specific rules. Though... I still think I can do more...

Code: [Select]
root@virtualhost:~# ufw status
Status: active

To                         Action      From
--                         ------      ----
8822/tcp on enp2s0         ALLOW       Anywhere                 
443/tcp on enp2s0          ALLOW       Anywhere                 
2049/tcp on enp2s0         ALLOW       Anywhere                 
3390:3393/tcp on enp2s0    ALLOW       Anywhere                 
18083/tcp on enp2s0        ALLOW       Anywhere                 
Anywhere on enp3s5         DENY        Anywhere                 
8822/tcp (v6) on enp2s0    ALLOW       Anywhere (v6)             
443/tcp (v6) on enp2s0     ALLOW       Anywhere (v6)             
2049/tcp (v6) on enp2s0    ALLOW       Anywhere (v6)             
3390:3393/tcp (v6) on enp2s0 ALLOW       Anywhere (v6)             
18083/tcp (v6) on enp2s0   ALLOW       Anywhere (v6)             
Anywhere (v6) on enp3s5    DENY        Anywhere (v6)             

Anywhere                   DENY OUT    Anywhere on enp3s5       
Anywhere (v6)              DENY OUT    Anywhere (v6) on enp3s5 
Title: Re: Searching for advice - Virtualization and OPNsense
Post by: s4rs on January 09, 2017, 12:00:18 am
Why not use KVM instead of Virtual Box? No need to assign an IP address of the hypervisor nic, just use it for layer 2. I'm using a 128G USB 3.0 key for the hypervisor and guest.

I'm using Fedora server 25. Cockpit makes the network setup a breeze. No editing of network config files. Just set the adapter up for link local on the hypervisor, create a bridge and your good to go. Basically the same thing as a vmware vswitch.
Title: Re: Searching for advice - Virtualization and OPNsense
Post by: ezra55 on January 09, 2017, 12:45:15 am
Thanks for your reply. That would have been a good solution from the start.
My host now handles much external rsyncs and stores all my media etc which some of the vms use. Like stated above I don't feel like reinstalling everything from the get go...

Could you point me to some documentation how to manage the vms with kvm?