OPNsense Forum

English Forums => Zenarmor (Sensei) => Topic started by: nitish.patel on September 28, 2023, 01:27:41 PM

Title: How to include zenarmor while making the ISO
Post by: nitish.patel on September 28, 2023, 01:27:41 PM
I want to make an ISO with the pre-installed ZENARMOR on it. How can I achieve it?

Let me know the complete procedure of doing it.

Cheers,
Nitish
Title: Re: How to include zenarmor while making the ISO
Post by: ureyni on September 29, 2023, 01:36:06 PM
To install Zenarmor on Opnsense, follow these steps:

1. Download the Opnsense ISO file from their website.
2. Extract the ISO file using the "tar -xvf" command.
3. Download the Zenarmor packages, which include os-sensei, os-sensei-update, ubenc, and os-sunnyvalley.
4. Copy the Zenarmor packages to the "All" folder.
5. Create a new tar package using the "tar -cvf" command.
6. Copy the tar file to "/usr/local/opnsense/build/23.7/amd64/sets/".
7. Use the ISO file to "make dvd" command.





Title: Re: How to include zenarmor while making the ISO
Post by: Vharry on October 09, 2023, 09:21:21 AM
Thanks for your response, actually I was trying the same. However, I did not understand the third step you mentioned. from where can I download the Zenarmor packages, I could not find the repository...

Thanks,
Vivek.
Title: Re: How to include zenarmor while making the ISO
Post by: ureyni on October 09, 2023, 11:18:51 AM
Hi,
Please find the repository link in the Sunnvalley.conf file located in the /usr/local/etc/pkg/repos/ folder.

The link is https://updates.zenarmor.com/opnsense/${ABI}/23.7/latest, which can also be accessed through https://updates.zenarmor.com/opnsense/FreeBSD:13:amd64/23.7/latest/All/.

You can use curl to download the following files:
os-sensei-1.15.1.pkg,
os-sensei-agent-1.15.1.pkg,
os-sensei-updater-1.15.pkg, and
ubench-0.32.pkg.

Best of luck.
Title: Re: How to include zenarmor while making the ISO
Post by: nitish.patel on October 09, 2023, 12:49:40 PM
Hi ureyni,

Thanks for your respond but the link you provided shows "Sorry the page can't be loaded", and also after using curl on freeBSD machine it returns the html page stating the same.

Please let me know how can I get those .pkg files, so that I can pre-install zenarmor on my ISO.
Title: Re: How to include zenarmor while making the ISO
Post by: ureyni on October 09, 2023, 03:07:16 PM
Hi,
I can download following command
curl https://updates.zenarmor.com/opnsense/FreeBSD:13:amd64/23.7/latest/All/os-sensei-1.15.1.pkg -o os-sensei-1.15.1.pkg
Title: Re: How to include zenarmor while making the ISO
Post by: nitish.patel on October 10, 2023, 03:00:14 PM
Hi ureyni,

Thanks for your help, please verify the steps as mentioned below,

1. Edit the file in /usr/local/opnsense/build/23.7/amd64/sets/packages***.txz
         Extract the txz file then download the os-sensei and all the packages inside "All" folder and then using tar -cvf command make the .txz file and copy it at the above mentioned location.
2. then run make dvd

Also made changes on Makefile inside tools /usr/tools/ add ADDITIONS to os-sensio

Please let me know is their any other steps which is missing or am I doing it wrong.

You mentioned to download OPNsense ISO but their is not any "All" folder inside the ISO but I got the "All" folder inside the packages file.
Title: Re: How to include zenarmor while making the ISO
Post by: CJ on October 10, 2023, 04:22:22 PM
Quote from: nitish.patel on September 28, 2023, 01:27:41 PM
I want to make an ISO with the pre-installed ZENARMOR on it. How can I achieve it?

Let me know the complete procedure of doing it.

Cheers,
Nitish

Are you trying to make your own distro?  You've posted a lot of threads about adding things to the ISO and I'm curious why.  What use case are you trying to solve?
Title: Re: How to include zenarmor while making the ISO
Post by: nitish.patel on October 11, 2023, 07:22:37 AM
Hi CJ,

I am a 3rd year student  trying to develop a custom fw for our lab, I plan to present this as a final year project. My professor actually had recommended to use OPNsense as it has a proper development manual given and opensource support.

With respect,
Nitish
Title: Re: How to include zenarmor while making the ISO
Post by: Patrick M. Hausen on October 11, 2023, 09:10:43 AM
You can just install OPNsense and adopt it for your lab environment, no?
Title: Re: How to include zenarmor while making the ISO
Post by: nitish.patel on October 11, 2023, 10:27:13 AM
Well, Thanks for the suggestions, I thought about it, But I think that I might have to submit the ISO image to the department for testing. So I think things changed in the pre-built would standout! I think for this stage it is sufficient but making it more relevant seems the right step.