OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • General Discussion »
  • Dockerfile with OPNsense
« previous next »
  • Print
Pages: [1]

Author Topic: Dockerfile with OPNsense  (Read 11446 times)

heavymeza

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
    • View Profile
Dockerfile with OPNsense
« on: August 16, 2018, 12:58:55 pm »
Hi there, I was asked to write a Dockerfile that eventually will implement a OPNsense firewall in the future.
Has anyone idea how to achieve that? I have already "googled" it, however it is still not so clear for me. I have seen a couple of OPNsense files in Docker Hub, however they are kind of scripts and not full implementations.

Thanks in advance!
Cheers,
Luis.
Logged

fabian

  • Hero Member
  • *****
  • Posts: 2769
  • Karma: 200
  • OPNsense Contributor (Language, VPN, Proxy, etc.)
    • View Profile
    • Personal Homepage
Re: Dockerfile with OPNsense
« Reply #1 on: August 16, 2018, 05:40:26 pm »
It just does not work because it is not a single application (docker is designed for running single process applications). You need more something like LXC where a environment is running. OPNsense is an operating system, not an application.
Logged

qinohe

  • Full Member
  • ***
  • Posts: 160
  • Karma: 19
    • View Profile
Re: Dockerfile with OPNsense
« Reply #2 on: August 16, 2018, 05:46:54 pm »
Hey Louis, Docker is container software to create separated 'space' to run apps like a webserver or browser.
In the future Docker may even become a hypervisor and this is probably what you want to use for OPNsense.

Have a look at the following to Wikipedia pages to get a more clear view about this.

Here you see in what category Docker is placed.
https://en.wikipedia.org/wiki/Comparison_of_platform_virtualization_software#See_also

The title of the page says it all
https://en.wikipedia.org/wiki/Operating-system-level_virtualization

Greetings mark

;) ninjad, I didn't see you already replied fabian
« Last Edit: August 16, 2018, 05:51:02 pm by qinohe »
Logged

heavymeza

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
    • View Profile
Re: Dockerfile with OPNsense
« Reply #3 on: September 10, 2018, 06:26:34 pm »
Quote from: fabian on August 16, 2018, 05:40:26 pm
It just does not work because it is not a single application (docker is designed for running single process applications). You need more something like LXC where a environment is running. OPNsense is an operating system, not an application.

Thanks for clarifying. I was taking a look and probably the most suitable would be to use "jails", the native virtualization technology for FreeBSD/OPNsense
Logged

heavymeza

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
    • View Profile
Re: Dockerfile with OPNsense
« Reply #4 on: September 10, 2018, 06:27:50 pm »
Quote from: qinohe on August 16, 2018, 05:46:54 pm
Hey Louis, Docker is container software to create separated 'space' to run apps like a webserver or browser.
In the future Docker may even become a hypervisor and this is probably what you want to use for OPNsense.

Have a look at the following to Wikipedia pages to get a more clear view about this.

Here you see in what category Docker is placed.
https://en.wikipedia.org/wiki/Comparison_of_platform_virtualization_software#See_also

The title of the page says it all
https://en.wikipedia.org/wiki/Operating-system-level_virtualization

Greetings mark

;) ninjad, I didn't see you already replied fabian

Thank you mark! Now this is more clear for me, I will start using jails so let's see how it goes...
Logged

qinohe

  • Full Member
  • ***
  • Posts: 160
  • Karma: 19
    • View Profile
Re: Dockerfile with OPNsense
« Reply #5 on: September 11, 2018, 02:11:09 pm »
Hi Luis, well no, I mean you can use jails to containerize a FreeBSD OS, though, you don't want that..

What you want is to  emulate a complete computer, including hardware.

So, what you are looking for is a software/system like Virtualbox(oracle) or ESXi (VMware) or even XEN(Citrix), or a compairable one  :P

Good luck, mark
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • English Forums »
  • General Discussion »
  • Dockerfile with OPNsense
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2024 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2