OPNsense Forum

English Forums => General Discussion => Topic started by: miceliux on February 09, 2016, 09:37:07 am

Title: [SOLVED] How to install ports?
Post by: miceliux on February 09, 2016, 09:37:07 am
Hi, I'd like to install some ports, but I can't find the command portmaster nor I can use pkg to install it.
I'm new to FreeBSD, so I'm a bit lost.

My intention is to install grub2-bhyve and try to run a VM.

Any advice is welcome.
Thanks.
Title: Re: How to install ports?
Post by: phoenix on February 09, 2016, 09:47:23 am
My advice is that a firewall is not the correct place to be running a VM, certainly run the firewall in a VM but not the other way round.
Title: Re: How to install ports?
Post by: miceliux on February 09, 2016, 10:08:28 am
I'm just exploring the firewall capabilities. Anyway, I've found that enabling the FreeBSD repository in /usr/local/etc/pkg/repos/FreeBSD.conf makes the package available.

My original idea was to run OPNsense virtualized in KVM, but I was getting a strange network performance (https://forum.opnsense.org/index.php?topic=2149.0). I think I'll give KVM a chance again.

Thanks.
Title: Re: How to install ports?
Post by: phoenix on February 09, 2016, 01:39:41 pm
Did you disable all the offload settings in your other thread? What NICs are installed on your host machine?

I don't know what the view of the OPNsesnse developers (nor anyone else) is on this subject but I'd guess you might be asking for trouble by enabling a non-standard repository within OPNsense.
Title: Re: How to install ports?
Post by: franco on February 15, 2016, 07:48:10 am
The FreeBSD repository compatibility was an early idea that never materialised in the defaults because:

FreeBSD uses different build settings, especially with regard to OpenSSL/LibreSSL.

FreeBSD has a lot of ports (over 20k) and we can't possibly build all of them with our options.

The kicker is that the package tool will try to cope with whatever upgrade it can find, which is the FreeBSD mirror, because it's updated every other day. This is a potentially fatal operation, because it could leave your OPNsense installation in a dysfunctional state due to "cleaning up unneeded packages".

A safer mode would be to build the ports you require from the source tree with our options locally:

https://forum.opnsense.org/index.php?topic=2004