OPNsense Forum

English Forums => Tutorials and FAQs => Topic started by: Maurice on September 06, 2023, 07:28:35 pm

Title: OPNsense aarch64 firmware repository
Post by: Maurice on September 06, 2023, 07:28:35 pm
Hello all,

After testing OPNsense on ARM64 (aarch64) virtual machines for some time, I've decided to make my firmware repository public. It can be used for installing updates and plugins on existing OPNsense aarch64 systems as well as for quickly building aarch64 images. Updates typically get published the day after the official amd64 updates.

https://opnsense-update.walker.earth

Configure OPNsense to use the repository for updates and plugins

Build aarch64 images
For building VM images, my fork of the OPNsense tools (https://github.com/maurice-w/opnsense-vm-images) allows configuring the default console. Sample VM images are available in the releases section.


None of this is supported by Deciso or the OPNsense core team! Use at your own risk.


Thanks to everyone who contributed to OPNsense-aarch64. I only use the tools others have created.

Cheers
Maurice


The public key for my 24.1-aarch64 packages and sets is:
Code: [Select]
-----BEGIN PUBLIC KEY-----
MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAzMwX5pdTxFltQrLqv+rj
jictq2E0TqB3kCrsE4wZ2z7CxuXwqxNrv5Y/847MDWfycyPgxyZx5Iuu/5LapiT4
ilVXkx4hmrrdmpXYiUYgXpMXtRPtbYHIje0QN8YJI5lV1qFLErhkuhr5Ch1o3BYS
Schiq+f9D2/RQtgNp6wySV8wgsoE+71G1z4jJMNQK5Rhnz5s9LRtXLWepevsyYB2
nDBqtLIVckGvM/0ivZtTBj+AHkwRUoN5dBIXJigdU6VXnOJQMSWyNC7c1AwzEp5p
1vyKQVAcuK8Y8424SA1CgqxlKb/Z7s5SIn35DLuQd1JcoxYUKBvykzEJQksL6IsO
Of2KJcVn05l5YbyX3UorNam4De003Gx0UWRDFHRBzASVDktihfanWqyDvNty6/ob
yfhRj6rE9cAXKOYBkckTa0B/G4Fw1Qx2GX9oX6ZAqUphfmaBpBnGOt8nQ+8BxMtm
1J2kH4NQ3uOwxWJPkHx08JzPrAxhtFjjvSsQLYULEWM9yA/+nw3HyhDmOtTCbhMQ
o4qq5FV+g7T8g14jLx+ZkPA+W+ax+n46p3ujv2v4U3x5aZtBTGeBV7TadVwikqJ2
d5lSJU0O0F7pCYqwtPkOacK2w/BeYOwpLTXpBY5JlwC+f5kTKs/7gzc4FY3gfgGe
tsY4Z1KlXUh6KTBDhkKk2y0CAwEAAQ==
-----END PUBLIC KEY-----
Title: Re: OPNsense aarch64 firmware repository
Post by: franco on September 08, 2023, 09:31:38 am
Nice. Thanks for your work!

Only for reference: what's your update strategy? Providing snapshots (time frame?) or follow stable releases?


Cheers,
Franco
Title: Re: OPNsense aarch64 firmware repository
Post by: Maurice on September 08, 2023, 01:17:48 pm
The plan is to follow stable releases. So far I've released packages and sets matching the 23.7, 23.7.1, 23.7.2 and 23.7.3 tags. When you release an official update, I fire up my build system and set the VERSION accordingly.

Not entirely sure how to deal with hotfixes yet. My 23.7.3 packages do include the hotfixed os-wireguard 2.0_2, but the 23.7.1 packages do not include opnsense 23.7.1_3.

Cheers
Maurice
Title: Re: OPNsense aarch64 firmware repository
Post by: franco on September 08, 2023, 01:30:06 pm
Hotfixes are tricky indeed as they leave the basic formula of building what is tagged.

I wouldn't worry too much about these if you don't happen to be able to pick them up right away (build delay). Following releases sounds like a working strategy for everyone using this. :)

Snapshots are handy too, but too many surprises on updates.

I also see you don't publish development packages (EXTRABRANCH=master). The feature formerly known as "rewind" doesn't like this anyway. It's almost like snapshot releases inside the stable releases so not needed as well.


Cheers,
Franco
Title: Re: OPNsense aarch64 firmware repository
Post by: Monviech on September 09, 2023, 08:58:26 am
Did you get any experience with the performance of a Raspberry Pi 4?

I'm kinda curious since I have a few CM4 with waveshare boards, some with pcie nvme or with pcie 2 Nics. But if you already made some tests yourself it would be nice to know what to expect.

I'll definitely try to build it and implement your firmware repo for tests, thank you.
Title: Re: OPNsense aarch64 firmware repository
Post by: Maurice on September 09, 2023, 12:34:41 pm
I'm currently using this on Ampere Altra based Cloud VMs exclusively (which works flawlessly). Don't own a Raspberry Pi.

yrzr.tk offers images for RPI and well-written docs. They've contributed a lot to OPNsense-aarch64. 👍🎉
Title: Re: OPNsense aarch64 firmware repository
Post by: Maurice on September 15, 2023, 02:50:10 pm
OPNsense 23.7.4 aarch64 packages and sets released.

Cheers
Maurice
Title: Re: OPNsense aarch64 firmware repository
Post by: Maurice on September 28, 2023, 08:33:48 pm
OPNsense 23.7.5 aarch64 packages and sets released.
Title: Re: OPNsense aarch64 firmware repository
Post by: Maurice on October 12, 2023, 05:25:53 pm
OPNsense 23.7.6 aarch64 packages and sets released.
Title: Re: OPNsense aarch64 firmware repository
Post by: hushcoden on October 13, 2023, 03:00:50 pm
Why don't you make this a sticky post?
Title: Re: OPNsense aarch64 firmware repository
Post by: franco on October 13, 2023, 03:14:41 pm
Waited for someone to ask about it ;)
Title: Re: OPNsense aarch64 firmware repository
Post by: Abbott on October 25, 2023, 06:57:09 am
I use the build of https://github.com/yrzr/opnsense-tools/releases
This repo worked for me.

Thank you very much.
Title: Re: OPNsense aarch64 firmware repository
Post by: Maurice on October 25, 2023, 10:41:56 pm
Yep, yrzr's work was the inspiration for my own repo. Their focus clearly is on images for various devices (RPI etc.), while mine is on virtualization and frequent updates.

Expect 23.7.7 by tomorrow.

Cheers
Maurice
Title: Re: OPNsense aarch64 firmware repository
Post by: Maurice on October 26, 2023, 10:04:37 pm
OPNsense 23.7.7 aarch64 packages and sets released. Includes hotfix 23.7.7_1.

[Update 2023-10-29]
Hotfix 23.7.7_3 released.
Title: Re: OPNsense aarch64 firmware repository
Post by: Maurice on November 10, 2023, 07:44:59 pm
OPNsense 23.7.8 aarch64 packages and sets released.

[Update 2023-11-13]
Hotfix 23.7.8_1 released.
Title: Re: OPNsense aarch64 firmware repository
Post by: franco on November 10, 2023, 09:06:20 pm
Yay. all the tags in place. Thanks for your work!  8)
Title: Re: OPNsense aarch64 firmware repository
Post by: Maurice on November 24, 2023, 09:41:03 pm
OPNsense 23.7.9 aarch64 packages and sets released.
Title: Re: OPNsense aarch64 firmware repository
Post by: viumden on November 29, 2023, 10:45:01 am
Thanks for the awesome work!
I downloaded 23.7.9 image and it runs under proxmox arm64 with my RK3399 board!
But after a while I noticed below issue for Plugins I installed: it shows missing packages, and after doing the "Resolve Plugin Conficts> Run the automatic resolver", I got below error messages still:
Code: [Select]
***GOT REQUEST TO SYNC***
Currently running OPNsense 23.7.9 at Wed Nov 29 17:39:57 CST 2023
Updating OPNsense repository catalogue...
OPNsense repository is up to date.
All repositories are up to date.
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: database disk image is malformed
pkg: sqlite error while executing SELECT k.annotation AS tag, v.annotation AS value  FROM pkg_annotation p    JOIN annotation k ON (p.tag_id = k.annotation_id)    JOIN annotation v ON (p.value_id = v.annotation_id)  WHERE p.package_id = 1  ORDER BY tag, value in file pkgdb_iterator.c:198: database disk image is malformed
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: database disk image is malformed
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: database disk image is malformed
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: database disk image is malformed
pkg: sqlite error while executing SELECT p.name, p.origin, p.version, 0  FROM packages AS p    INNER JOIN deps AS d ON (p.id = d.package_id)  WHERE d.name = 'libyaml' in file pkgdb_iterator.c:412: database disk image is malformed
pkg: sqlite error while executing SELECT p.name, p.origin, p.version, 0  FROM packages AS p    INNER JOIN deps AS d ON (p.id = d.package_id)  WHERE d.name = 'libyaml' in file pkgdb_iterator.c:412: database disk image is malformed
pkg: sqlite error while executing SELECT p.name, p.origin, p.version, 0  FROM packages AS p    INNER JOIN deps AS d ON (p.id = d.package_id)  WHERE d.name = 'openssl111' in file pkgdb_iterator.c:412: database disk image is malformed
pkg: sqlite error while executing SELECT p.name, p.origin, p.version, 0  FROM packages AS p    INNER JOIN deps AS d ON (p.id = d.package_id)  WHERE d.name = 'openssl111' in file pkgdb_iterator.c:412: database disk image is malformed
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: database disk image is malformed
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: database disk image is malformed
pkg: sqlite error while executing SELECT p.name, p.origin, p.version, 0  FROM packages AS p    INNER JOIN deps AS d ON (p.id = d.package_id)  WHERE d.name = 'libffi' in file pkgdb_iterator.c:412: database disk image is malformed
pkg: sqlite error while executing SELECT k.annotation AS tag, v.annotation AS value  FROM pkg_annotation p    JOIN annotation k ON (p.tag_id = k.annotation_id)    JOIN annotation v ON (p.value_id = v.annotation_id)  WHERE p.package_id = 6  ORDER BY tag, value in file pkgdb_iterator.c:198: database disk image is malformed
pkg: sqlite error while executing SELECT k.annotation AS tag, v.annotation AS value  FROM pkg_annotation p    JOIN annotation k ON (p.tag_id = k.annotation_id)    JOIN annotation v ON (p.value_id = v.annotation_id)  WHERE p.package_id = 6  ORDER BY tag, value in file pkgdb_iterator.c:198: database disk image is malformed
pkg: sqlite error while executing SELECT p.name, p.origin, p.version, 0  FROM packages AS p    INNER JOIN deps AS d ON (p.id = d.package_id)  WHERE d.name = 'libffi' in file pkgdb_iterator.c:412: database disk image is malformed
pkg: sqlite error while executing SELECT p.name, p.origin, p.version, 0  FROM packages AS p    INNER JOIN deps AS d ON (p.id = d.package_id)  WHERE d.name = 'libedit' in file pkgdb_iterator.c:412: database disk image is malformed
pkg: sqlite error while executing SELECT p.name, p.origin, p.version, 0  FROM packages AS p    INNER JOIN deps AS d ON (p.id = d.package_id)  WHERE d.name = 'libedit' in file pkgdb_iterator.c:412: database disk image is malformed
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: database disk image is malformed
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: database disk image is malformed
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: database disk image is malformed
pkg: sqlite error while executing SELECT k.annotation AS tag, v.annotation AS value  FROM pkg_annotation p    JOIN annotation k ON (p.tag_id = k.annotation_id)    JOIN annotation v ON (p.value_id = v.annotation_id)  WHERE p.package_id = 15  ORDER BY tag, value in file pkgdb_iterator.c:198: database disk image is malformed
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: database disk image is malformed
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: database disk image is malformed
pkg: sqlite error while executing SELECT k.annotation AS tag, v.annotation AS value  FROM pkg_annotation p    JOIN annotation k ON (p.tag_id = k.annotation_id)    JOIN annotation v ON (p.value_id = v.annotation_id)  WHERE p.package_id = 15  ORDER BY tag, value in file pkgdb_iterator.c:198: database disk image is malformed
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: database disk image is malformed
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: database disk image is malformed
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: database disk image is malformed
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: database disk image is malformed
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: database disk image is malformed
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: database disk image is malformed
pkg: sqlite error while executing END TRANSACTION; in file pkgdb.c:2333: database disk image is malformed
Checking integrity...pkg: sqlite error while executing SELECT k.annotation AS tag, v.annotation AS value  FROM pkg_annotation p    JOIN annotation k ON (p.tag_id = k.annotation_id)    JOIN annotation v ON (p.value_id = v.annotation_id)  WHERE p.package_id = 6  ORDER BY tag, value in file pkgdb_iterator.c:198: database disk image is malformed
Assertion failed: (p != NULL), function pkg_conflicts_check_local_path, file pkg_jobs_conflicts.c, line 313.
Child process pid=19708 terminated abnormally: Abort trap
Updating OPNsense repository catalogue...
OPNsense repository is up to date.
All repositories are up to date.
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: database disk image is malformed
pkg: sqlite error while executing SELECT k.annotation AS tag, v.annotation AS value  FROM pkg_annotation p    JOIN annotation k ON (p.tag_id = k.annotation_id)    JOIN annotation v ON (p.value_id = v.annotation_id)  WHERE p.package_id = 1  ORDER BY tag, value in file pkgdb_iterator.c:198: database disk image is malformed
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: database disk image is malformed
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: database disk image is malformed
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: database disk image is malformed
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: database disk image is malformed
pkg: sqlite error while executing END TRANSACTION; in file pkgdb.c:2333: database disk image is malformed
Checking integrity... done (0 conflicting)
The following 2 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
os-wireguard: 2.5_1
wireguard-kmod: 0.0.20220615_1

Number of packages to be installed: 2
[1/2] Installing wireguard-kmod-0.0.20220615_1...
pkg: sqlite error while executing INSERT OR REPLACE INTO packages( origin, name, version, comment, desc, message, arch, maintainer, www, prefix, flatsize, automatic, licenselogic, time, manifestdigest, dep_formula, vital)VALUES( 'net/wireguard-kmod', 'wireguard-kmod', '0.0.20220615_1', 'WireGuard implementation for the FreeBSD kernel', 'Kernel module for FreeBSD to support Wireguard.

At this time this code is new, unvetted, possibly buggy, and should be
considered "experimental". It might contain security issues. We gladly
welcome your testing and bug reports, but do keep in mind that this code
is new, so some caution should be exercised at the moment for using it
in mission critical environments.', '[{"message":"At this time this code is new, unvetted, possibly buggy, and should be\nconsidered \"experimental\". It might contain security issues. We gladly\nwelcome your testing and bug reports, but do keep in mind that this code\nis new, so some caution should be exercised at the moment for using it\nin mission critical environments.","type":"install"},{"message":"===>   NOTICE:\n\nThis port is deprecated; you may wish to reconsider installing it:\n\nOnly useful for FreeBSD 12 which is EoL soon.\n\nIt is scheduled to be removed on or after 2023-12-31."}]', 'FreeBSD:13:aarch64', 'decke@FreeBSD.org', 'https://git.zx2c4.com/wireguard-freebsd/', '/usr/local', 104803, 1, 1, NOW(), '2$2$yerp9xs6t9umh3ajk8pthp1ozapwaj9xse4a5gsp3tthgnrffxb99nka6738xqa4usgnyc4yq6rg51csew6ixu6pcujaawgui5kfmcb', NULL, 0 ) in file pkgdb.c:1633: database disk image is malformed
pkg: sqlite error while executing iterator in file pkgdb_iterator.c:1110: database disk image is malformed
pkg: sqlite error while executing SELECT k.annotation AS tag, v.annotation AS value  FROM pkg_annotation p    JOIN annotation k ON (p.tag_id = k.annotation_id)    JOIN annotation v ON (p.value_id = v.annotation_id)  WHERE p.package_id = 2  ORDER BY tag, value in file pkgdb_iterator.c:198: database disk image is malformed
pkg: sqlite error while executing END TRANSACTION; in file pkgdb.c:2333: database disk image is malformed
Checking integrity... done (0 conflicting)
Nothing to do.
***DONE***
Any idea how to fix it?
Title: Re: OPNsense aarch64 firmware repository
Post by: Maurice on November 29, 2023, 01:32:54 pm
Not sure what's going on there. Wild guess: Disk image full? Did you expand it before first boot?

Cheers
Maurice
Title: Re: OPNsense aarch64 firmware repository
Post by: viumden on December 02, 2023, 07:25:13 am
Not sure what's going on there. Wild guess: Disk image full? Did you expand it before first boot?

Cheers
Maurice
I deleted the sqlite file (/var/db/pkg/local.sqlite), then did an auto fix in webui, it seems then things get fixed.

But I have another confusing issue under proxmox for wan configuration, the lan seems work, while the wan cannot get DHCP ip address from upstream gateway:
1. I have only 1 ethernet port on my rockpi 4b (rk3399) board, so I created vlan aware vmbr0 in proxmox with parent port eth0 (the only ethernet port).
2. Then I created 2 virtio virtual nics for latest opnsense img virtual machine, one is just with pure vmbr0, the other one is with vlan tag = 10 on vmbr0, two nics have separate random mac address.
3. Both 2 nics appeared in opnsense, the one without vlan tag is vtnet0 and assigned to wan, while the one with vlan tag = 10 is vtnet1 and assigned to lan.
I messed around with all the configurations for a long time, just cannot get wan interface work with DHCP IP assinged from upstream gateway, by monitoring wan port on opnsense, I can see there is DHCP request sent, but no response received, and the strange thing is that when I changed the virtio to e1000 for the wan nic on proxmox, then restart the opnsense, then the DHCP assignment from upstream just worked...
Don't understand the reason here, maybe opnsense doesn't support to virtio nics in parallel, or there is something wrong in my proxmox settings?
Title: Re: OPNsense aarch64 firmware repository
Post by: Maurice on December 02, 2023, 10:30:59 pm
This doesn't seem to be a question specifically about OPNsense aarch64. Please look for threads about Proxmox or start a new one.
Title: Re: OPNsense aarch64 firmware repository
Post by: viumden on December 03, 2023, 06:30:46 am
This doesn't seem to be a question specifically about OPNsense aarch64. Please look for threads about Proxmox or start a new one.
I guess it is somehow relevant to opnsense virtual version, since the same exact proxmox virtual nic configuration works well on a virtualized aarch64 openwrt, both wan and lab work as expected, there is no dhcp ip fetch issue on wan with virtio bridge, with lan working in parallel with another virtio bridge (vlan id = 10).
Not sure it is an opnsense aarch64 virtual version issue, or common for all virtualized aarch64 freebsd system.
Title: Re: OPNsense aarch64 firmware repository
Post by: Maurice on December 13, 2023, 03:47:03 pm
OPNsense 23.7.10 aarch64 packages and sets released. Includes hotfix 23.7.10_1.

[Update 2023-12-30]
openssh 9.6p1 released.
Title: Re: OPNsense aarch64 firmware repository
Post by: Maurice on January 05, 2024, 01:05:59 pm
OPNsense 23.7.11 aarch64 packages and sets released.
Title: Re: OPNsense aarch64 firmware repository
Post by: Maurice on January 17, 2024, 12:23:57 pm
OPNsense 23.7.12 aarch64 packages and sets released.

[Update 2024-01-30]
Hotfix 23.7.12_5 released.
Title: Re: OPNsense aarch64 firmware repository
Post by: rdunkle84 on January 19, 2024, 09:13:11 am
This is really good work!  I am now running on orange pi 5 plus.  There were no problems at all.
Title: Re: OPNsense aarch64 firmware repository
Post by: Maurice on January 19, 2024, 02:07:41 pm
Thanks for the feedback! And more good news:

OPNsense 24.1.r1 aarch64 packages and sets released.

If you want to test this release candidate, you can upgrade from 23.7.12:

opnsense-update -u -r 24.1.r1

My 24.1-aarch64 builds use a new signing key. The fingerprint is already included in 23.7.12. The new public key is:
Code: [Select]
-----BEGIN PUBLIC KEY-----
MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAzMwX5pdTxFltQrLqv+rj
jictq2E0TqB3kCrsE4wZ2z7CxuXwqxNrv5Y/847MDWfycyPgxyZx5Iuu/5LapiT4
ilVXkx4hmrrdmpXYiUYgXpMXtRPtbYHIje0QN8YJI5lV1qFLErhkuhr5Ch1o3BYS
Schiq+f9D2/RQtgNp6wySV8wgsoE+71G1z4jJMNQK5Rhnz5s9LRtXLWepevsyYB2
nDBqtLIVckGvM/0ivZtTBj+AHkwRUoN5dBIXJigdU6VXnOJQMSWyNC7c1AwzEp5p
1vyKQVAcuK8Y8424SA1CgqxlKb/Z7s5SIn35DLuQd1JcoxYUKBvykzEJQksL6IsO
Of2KJcVn05l5YbyX3UorNam4De003Gx0UWRDFHRBzASVDktihfanWqyDvNty6/ob
yfhRj6rE9cAXKOYBkckTa0B/G4Fw1Qx2GX9oX6ZAqUphfmaBpBnGOt8nQ+8BxMtm
1J2kH4NQ3uOwxWJPkHx08JzPrAxhtFjjvSsQLYULEWM9yA/+nw3HyhDmOtTCbhMQ
o4qq5FV+g7T8g14jLx+ZkPA+W+ax+n46p3ujv2v4U3x5aZtBTGeBV7TadVwikqJ2
d5lSJU0O0F7pCYqwtPkOacK2w/BeYOwpLTXpBY5JlwC+f5kTKs/7gzc4FY3gfgGe
tsY4Z1KlXUh6KTBDhkKk2y0CAwEAAQ==
-----END PUBLIC KEY-----
Title: Re: OPNsense aarch64 firmware repository
Post by: franco on January 19, 2024, 02:21:31 pm
opnsense-update -u -r 24.1.r1

Keep in mind that upgrade sequence is not recommended for production use as it misses the pre-upgrade hook used by web proxy (squid) and unbound dns reporting (duckdb) migration scripts.


Cheers,
Franco
Title: Re: OPNsense aarch64 firmware repository
Post by: Maurice on January 19, 2024, 02:46:10 pm
Thanks for the heads-up, Franco!

I've successfully upgraded two systems, but neither of them use squid. Unbound DNS Reporting has indeed been reset, all entries before the upgrade are gone.
Title: Re: OPNsense aarch64 firmware repository
Post by: franco on January 19, 2024, 03:13:35 pm
I'm wondering what the best portable way is. I think at the moment the tooling requires /usr/local/etc/opnsense-update.conf to be set accordingly in order to use the console scripts (which don't support selecting an upgrade version in the menu for safety reasons).
Title: Re: OPNsense aarch64 firmware repository
Post by: rdunkle84 on January 20, 2024, 02:29:43 pm
Update to 24.1 r1 went fine.  Everything seems to be working normally.
Title: Re: OPNsense aarch64 firmware repository
Post by: Marinoz on January 21, 2024, 07:02:36 pm
Kinda late but will that work with a raspberry 5 ?
Title: Re: OPNsense aarch64 firmware repository
Post by: Maurice on January 21, 2024, 07:33:36 pm
The repository should work with all aarch64 systems, but it only provides packages and sets. Additionally, I do publish images on GitHub, but only for VMs. So unless you're planning to virtualize, you'll need to get a hardware specific image for initial installation from somewhere else (or build your own using the provided sets). Then you can configure this repository for updates and plugins.
Title: Re: OPNsense aarch64 firmware repository
Post by: Marinoz on January 22, 2024, 08:02:00 pm
The repository should work with all aarch64 systems, but it only provides packages and sets. Additionally, I do publish images on GitHub, but only for VMs. So unless you're planning to virtualize, you'll need to get a hardware specific image for initial installation from somewhere else (or build your own using the provided sets). Then you can configure this repository for updates and plugins.


 So can I run Ubuntu on the 5 and then use a vm to run olnsense ?
Title: Re: OPNsense aarch64 firmware repository
Post by: Maurice on January 22, 2024, 09:12:21 pm
Yes, this should work.
Title: Re: OPNsense aarch64 firmware repository
Post by: chemlud on January 23, 2024, 08:27:54 am
The repository should work with all aarch64 systems, but it only provides packages and sets. Additionally, I do publish images on GitHub, but only for VMs. So unless you're planning to virtualize, you'll need to get a hardware specific image for initial installation from somewhere else (or build your own using the provided sets). Then you can configure this repository for updates and plugins.


 So can I run Ubuntu on the 5 and then use a vm to run olnsense ?

Question is: Why would one do that? Raspi 5 has one Interface. Router on a stick? LAN only via wifi?

Calculate the raspi 5, power supply, enclosure, fan etc. and you can buy a cheap x64 (refurbished SFF + PCIe networking card), no trouble with virtual machine. If the argument is "small, for travel", there are alternatives (little more expensive though), too.
Title: Re: OPNsense aarch64 firmware repository
Post by: Marinoz on January 23, 2024, 01:01:58 pm
The repository should work with all aarch64 systems, but it only provides packages and sets. Additionally, I do publish images on GitHub, but only for VMs. So unless you're planning to virtualize, you'll need to get a hardware specific image for initial installation from somewhere else (or build your own using the provided sets). Then you can configure this repository for updates and plugins.


 So can I run Ubuntu on the 5 and then use a vm to run olnsense ?

Question is: Why would one do that? Raspi 5 has one Interface. Router on a stick? LAN only via wifi?

Calculate the raspi 5, power supply, enclosure, fan etc. and you can buy a cheap x64 (refurbished SFF + PCIe networking card), no trouble with virtual machine. If the argument is "small, for travel", there are alternatives (little more expensive though), too.



 Quiet cheap and no heat emit. It's perfect for me
Title: Re: OPNsense aarch64 firmware repository
Post by: chemlud on January 23, 2024, 01:51:57 pm
No heat? Sure?
Title: Re: OPNsense aarch64 firmware repository
Post by: Marinoz on January 24, 2024, 01:05:56 pm
No heat? Sure?

 Well uhhh.... lol
Title: Re: OPNsense aarch64 firmware repository
Post by: Marinoz on January 24, 2024, 04:16:56 pm
No heat? Sure?


Also you said it has only one interface. What about using a switch (if not usb to rj45)
Title: Re: OPNsense aarch64 firmware repository
Post by: chemlud on January 24, 2024, 04:24:30 pm
Last time I tried was with raspi 3 some years ago. No arm builds available, lots of tinkering necessary, updates a minor nightmare.

If you want something stable and straight forward, go an buy a cheap old Dell Optiplex SFF (important! only in SFF you can have PCIe cards with further NICs) and have fun. Or for mobility: Have a look at some small device from China (Amazon) or what other recommend for fan-free use.

If it's just for fun: go ahead with some orangepi or alike, there are devices with more than 1 NIC. Router on a stick only if you really like the mess... :-D
Title: Re: OPNsense aarch64 firmware repository
Post by: Marinoz on January 24, 2024, 07:21:36 pm
Last time I tried was with raspi 3 some years ago. No arm builds available, lots of tinkering necessary, updates a minor nightmare.

If you want something stable and straight forward, go an buy a cheap old Dell Optiplex SFF (important! only in SFF you can have PCIe cards with further NICs) and have fun. Or for mobility: Have a look at some small device from China (Amazon) or what other recommend for fan-free use.

If it's just for fun: go ahead with some orangepi or alike, there are devices with more than 1 NIC. Router on a stick only if you really like the mess... :-D

 I just want an opnsene server quiet and not big because I already got i5 750 16 ddr3 ram old desktop gt 210 but I don't wanna use it because I can't fit it where I want
Title: Re: OPNsense aarch64 firmware repository
Post by: Patrick M. Hausen on January 24, 2024, 07:47:01 pm
Protectli or some other device from China with a more modern CPU ...
Title: Re: OPNsense aarch64 firmware repository
Post by: chemlud on January 24, 2024, 09:06:42 pm
For traveling I use something like this

https://www.amazon.de/-/en/dp/B0CCJ8K76Z/ref=twister_B0CCTJLVHY?_encoding=UTF8&psc=1

or e.g.

https://www.amazon.de/-/en/dp/B0BP9QPMYW/ref=twister_B0B5DQLSQS?_encoding=UTF8&psc=1

Not exactly the same, but kind of.

Title: Re: OPNsense aarch64 firmware repository
Post by: Marinoz on January 25, 2024, 07:06:00 am
For traveling I use something like this

https://www.amazon.de/-/en/dp/B0CCJ8K76Z/ref=twister_B0CCTJLVHY?_encoding=UTF8&psc=1

or e.g.

https://www.amazon.de/-/en/dp/B0BP9QPMYW/ref=twister_B0B5DQLSQS?_encoding=UTF8&psc=1

Not exactly the same, but kind of.


Oh and I forgot, of course because it uses less power than a fat old desktop
Title: Re: OPNsense aarch64 firmware repository
Post by: Marinoz on January 25, 2024, 07:07:42 am
For traveling I use something like this

https://www.amazon.de/-/en/dp/B0CCJ8K76Z/ref=twister_B0CCTJLVHY?_encoding=UTF8&psc=1

or e.g.

https://www.amazon.de/-/en/dp/B0BP9QPMYW/ref=twister_B0B5DQLSQS?_encoding=UTF8&psc=1

Not exactly the same, but kind of.


217 euros? You crazy?
Title: Re: OPNsense aarch64 firmware repository
Post by: chemlud on January 25, 2024, 09:06:16 am
Do your maths. What do you need for the raspi? Plus a managable switch. Plus the time you loose every now and then to get the stuff updated, plus, plus plus.

It's not worth it. Try it out. Write us here how it worked.... ;-)
Title: Re: OPNsense aarch64 firmware repository
Post by: Marinoz on January 25, 2024, 03:33:49 pm
Do your maths. What do you need for the raspi? Plus a managable switch. Plus the time you loose every now and then to get the stuff updated, plus, plus plus.

It's not worth it. Try it out. Write us here how it worked.... ;-)


Well you are at a part right, like it will take time and it will be frustrating but 217? I can make a mini pc on my own with that.
Title: Re: OPNsense aarch64 firmware repository
Post by: chemlud on January 25, 2024, 04:13:01 pm
Yepp, fan-free? Go ahead! I built my first sense with an old notebook for testing, some old workstation, then fan-free stuff. Now mostly Optiplex or alike... :-)
Title: Re: OPNsense aarch64 firmware repository
Post by: Marinoz on January 27, 2024, 04:32:04 pm
Yepp, fan-free? Go ahead! I built my first sense with an old notebook for testing, some old workstation, then fan-free stuff. Now mostly Optiplex or alike... :-)

 This seems the most economical and then I add a cheap ram and an ssd I already have. What ram does this take really? Laptop ram?
Title: Re: OPNsense aarch64 firmware repository
Post by: chemlud on January 27, 2024, 05:51:04 pm
Which services are needes besides the simple routing? (4-)8 GB is OK for normal use, more is better for Suricata etc...
Title: Re: OPNsense aarch64 firmware repository
Post by: Maurice on January 27, 2024, 06:12:42 pm
Guys, just a little reminder that this is a sticky topic about an aarch64 firmware repo... Thank you.
Title: Re: OPNsense aarch64 firmware repository
Post by: Marinoz on January 27, 2024, 06:32:41 pm
Guys, just a little reminder that this is a sticky topic about an aarch64 firmware repo... Thank you.


Yeah I know from I would stop talking here about this subject when I got the answer
Title: Re: OPNsense aarch64 firmware repository
Post by: chemlud on January 27, 2024, 06:36:05 pm
Guys, just a little reminder that this is a sticky topic about an aarch64 firmware repo... Thank you.

...some mod can cut off this part...
Title: Re: OPNsense aarch64 firmware repository
Post by: Marinoz on January 27, 2024, 09:40:18 pm
Which services are needes besides the simple routing? (4-)8 GB is OK for normal use, more is better for Suricata etc...

yeah i meant to send a link to a no ram and storage firewall appliance that you linked above. its the same without ram so what ram does it use? and sorry for still talking about this thing thats the last question
Title: Re: OPNsense aarch64 firmware repository
Post by: Maurice on January 30, 2024, 05:19:41 pm
OPNsense 24.1 aarch64 packages and sets released.

The upgrade path from 23.7.x is the same as on amd64 - update to OPNsense 23.7.12_5 (also released today) to unlock the upgrade.

[Update 2024-01-31]
Hotfix 24.1_1 released.
Title: Re: OPNsense aarch64 firmware repository
Post by: franco on January 30, 2024, 09:57:47 pm
That was quick, nice!  8)
Title: Re: OPNsense aarch64 firmware repository
Post by: Maurice on January 30, 2024, 10:09:19 pm
Thanks for pushing the tags one day in advance, Franco! A full build always takes 10h+ on my aarch64 VM, but since this was done overnight, I only had to hotfix 23.7.12 and do some testing today. Working flawlessly so far!
Title: Re: OPNsense aarch64 firmware repository
Post by: franco on January 30, 2024, 10:16:25 pm
Except for Suricata it looks good indeed.
Title: Re: OPNsense aarch64 firmware repository
Post by: rdunkle84 on February 01, 2024, 05:29:21 pm
OPNsense 24.1 aarch64 ....  is working well on Orange Pi 5 Plus.
Title: Re: OPNsense aarch64 firmware repository
Post by: Maurice on February 07, 2024, 12:48:30 pm
OPNsense 24.1.1 aarch64 packages and sets released.
Title: Re: OPNsense aarch64 firmware repository
Post by: Maurice on February 21, 2024, 09:36:23 am
OPNsense 24.1.2 aarch64 packages and sets released.

[Update 2024-02-21]
Hotfix 24.1.2_1 released.
Title: Re: OPNsense aarch64 firmware repository
Post by: Maurice on March 09, 2024, 12:58:34 am
OPNsense 24.1.3 aarch64 packages and sets released. Includes hotfix 24.1.3_1.

This took longer than usual because my build attempts kept failing repeatedly. This issue (https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=277492) most likely was the culprit. The patch for portmaster was merged into opnsense/ports last night and I was able to complete the builds today.
Title: Re: OPNsense aarch64 firmware repository
Post by: Stephan4711 on March 09, 2024, 12:49:57 pm
Hi Maurice,

I yesterday read a news on heise.de newsticker a polish company will provide a 2,5Gbit/s hat for raspi 5.

Will that be supported? I really would like to safe some power. My x86 hardware uses over 30w at the moment and thiy would be a great improvement, if the raspi 5 incl addon. Realtek NICs would be supported
Title: Re: OPNsense aarch64 firmware repository
Post by: Maurice on March 09, 2024, 08:28:40 pm
See Marinoz' question earlier in this thread. My focus is on providing up-to-date packages, sets and VM images. I currently have no plans to work on hardware-specfic patches / images. Others are more active in this field.
Title: Re: OPNsense aarch64 firmware repository
Post by: Maurice on March 21, 2024, 01:38:45 pm
OPNsense 24.1.4 aarch64 packages and sets released.
Title: Re: OPNsense aarch64 firmware repository
Post by: Gx4tf3N47T on March 24, 2024, 10:19:11 am
Hello Maurice,

I successfully built the image using the precompiled set as per your instructions for the OPNsense VM. Here is the command I used:
Quote
make update prefetch-base,kernel,packages vm-qcow2,4G,never,serial SETTINGS=24.1 VERSION=24.1.3 DEVICE=ARM64VM MIRRORS=https://opnsense-update.walker.earth

After creating an A1.Flex instance on Oracle Cloud with this image, I installed the os-acme-client, os-haproxy, and os-iperf plugins. Everything seemed to work fine for a while, but I noticed that OPNsense is randomly rebooting. In the System: Log Files: General section of the web UI, only the message "---<<BOOT>>---" appears, and I cannot see what happened before that.
I'm curious to know if this issue is unique to me, if it's specific to the ARM64 platform, or if it's a bug in version 24.1.3.

Also, it seems that version 24.1.4 has been released recently. How can I update OPNsense to the latest version?

Thank you.
Title: Re: OPNsense aarch64 firmware repository
Post by: Maurice on March 24, 2024, 10:54:59 am
I haven't observed any unexpected reboots on OCI A1.Flex, so not sure what's going on there. The current uptime of my OPNsense test instance there is 32 days. I'm not using os-haproxy or os-iperf though, so you might want to test running it without these two plugins for a while.

The OPNsense package included in my aarch64 packages set is preconfigured with my firmware repo. Since you prefetched that, you can simply update OPNsense the normal way (using the Web UI or the console).
Title: Re: OPNsense aarch64 firmware repository
Post by: Gx4tf3N47T on March 27, 2024, 01:22:34 pm
Hello Maurice,

Thank you for your response. It seems that the issue has disappeared after updating to 24.1.4 using the Web UI. I'm not sure, but it seems there might have been some errors during the self-build process.

Edit: In fact, the random reboot issue was caused by suricata. However, it's not certain whether this issue is influenced by arm64 or Oracle Cloud virtualization.
Title: Re: OPNsense aarch64 firmware repository
Post by: Maurice on April 04, 2024, 02:56:27 pm
OPNsense 24.1.5 aarch64 packages and sets released. Includes hotfix 24.1.5_1.

[Update 2024-04-06]
Hotfix 24.1.5_3 released.
Title: Re: OPNsense aarch64 firmware repository
Post by: Maurice on April 19, 2024, 01:52:27 pm
OPNsense 24.1.6 aarch64 packages and sets released.