OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • Hardware and Performance »
  • OPNsense 20.1 on RaspberryPI 3
« previous next »
  • Print
Pages: [1] 2 3 ... 5

Author Topic: OPNsense 20.1 on RaspberryPI 3  (Read 118968 times)

rene_

  • Newbie
  • *
  • Posts: 33
  • Karma: 10
    • View Profile
OPNsense 20.1 on RaspberryPI 3
« on: November 05, 2019, 11:16:59 am »
Hello all,

with OPNsense 20.1, FreeBSD12.1 will be the base system.

Within FreeBSD12.1 the RaspberryPI3 Board is fully supported by BSD.

Further also OPNsense is running on the pi3.

Download site: https://opnsense.rene.network/
(Please don't mirror files!)
PLEASE KEEP IN MIND:
  • this is not an official OPNsense release, so there is no official support for this image!
  • theres no update functionality at the moment!
  • this is a git build, there will be bugs!
  • this is the not yet released 20.1

Whats working
  • it boots
  • onboard lan adapter
  • usb2lan adapters
  • usb wifi adapters
  • Grow rootfs on boot
  • HDMI Output and usb keyboard

Whats not working:
  • onboard Wifi is still not supported by FreeBSD
  • Power off causes a reboot (reported by @monstermania)
  • Firewall LiveView
  • ...


Not confirmed:
  • ...


All the best,
René
« Last Edit: November 30, 2019, 12:29:24 am by rene_ »
Logged

monstermania

  • Hero Member
  • *****
  • Posts: 524
  • Karma: 47
    • View Profile
Re: OPNsense 20.1 on RaspberryPI 3
« Reply #1 on: November 05, 2019, 01:21:32 pm »
Will your Image support Pi3+ too!?
I tried ipfire on my Pi3+ and it works up to a wan speed of 60 Mbit.
I think that Pi4 and Opnsense should be an interesting option for small soho firewall.

Logged

nekoprog

  • Newbie
  • *
  • Posts: 49
  • Karma: 9
  • Warranty voided..
    • View Profile
    • Neko Prog
Re: OPNsense 20.1 on RaspberryPI 3
« Reply #2 on: November 05, 2019, 01:31:52 pm »
Nice, tools.git is now ready for aarch64 production with the upcoming HBSD patch. Hope that in future Deciso will sell arm-based appliances for a low cost deployment on small premises.
Logged
[Work In Progress] OPNsense Ported into ARM Devices
[Experimental] opnsense/tools for ARM

rene_

  • Newbie
  • *
  • Posts: 33
  • Karma: 10
    • View Profile
Re: OPNsense 20.1 on RaspberryPI 3
« Reply #3 on: November 05, 2019, 01:37:14 pm »
Quote from: monstermania on November 05, 2019, 01:21:32 pm
Will your Image support Pi3+ too!?
I tried ipfire on my Pi3+ and it works up to a wan speed of 60 Mbit.
I think that Pi4 and Opnsense should be an interesting option for small soho firewall.

Can't promise, but i think it should work, the boards aren't that different :-)
Does ipfire support the onboard wlan chip?

Oh yes, RPi4 looks very promising :-)

Quote from: nekoprog on November 05, 2019, 01:31:52 pm
Nice, tools.git is now ready for aarch64 production with the upcoming HBSD patch. Hope that in future Deciso will sell arm-based appliances for a low cost deployment on small premises.

Nearly, when i finished i will create a pr of my tool.git modifications for openssl and miniupnpd ;-)

According  arm devices, The Marvell Armada 385 (also known as Netgate SG3100) would be a perfect Device ;-)
Still trying to port opnsense there, but it still wont boot :-(
Logged

monstermania

  • Hero Member
  • *****
  • Posts: 524
  • Karma: 47
    • View Profile
Re: OPNsense 20.1 on RaspberryPI 3
« Reply #4 on: November 05, 2019, 01:49:02 pm »
Quote from: rene_ on November 05, 2019, 01:37:14 pm
Does ipfire support the onboard wlan chip?
The wlan should work. Take a look on this:
https://wiki.ipfire.org/hardware/arm/rpi/threeplus
I don't use the wlan for my tests and i also only use an 100Mbit USB2LAN adapter.
Logged

nekoprog

  • Newbie
  • *
  • Posts: 49
  • Karma: 9
  • Warranty voided..
    • View Profile
    • Neko Prog
Re: OPNsense 20.1 on RaspberryPI 3
« Reply #5 on: November 05, 2019, 01:52:16 pm »
Does SG3100 boots on normal FreeBSD or HBSD? If it doesn't maybe Netgate installed custom firmware inside. Might want to grab those firmwares from Netgate. Use the Netgate provided .dtb first to see if it works.
Logged
[Work In Progress] OPNsense Ported into ARM Devices
[Experimental] opnsense/tools for ARM

rene_

  • Newbie
  • *
  • Posts: 33
  • Karma: 10
    • View Profile
Re: OPNsense 20.1 on RaspberryPI 3
« Reply #6 on: November 05, 2019, 02:00:50 pm »
Quote from: monstermania on November 05, 2019, 01:49:02 pm
The wlan should work. Take a look on this:
https://wiki.ipfire.org/hardware/arm/rpi/threeplus
I don't use the wlan for my tests and i also only use an 100Mbit USB2LAN adapter.

well, i see .... ipfire is linux based, so the wifi is supported, sadly there still aren't wifi drivers for freebsd (bsd is not linux)
Just ordered some usb wifi sticks, lets see if they are working within opnsense ;-)
Want to try it with "Wireless WAN"

Quote from: nekoprog on November 05, 2019, 01:52:16 pm
Does SG3100 boots on normal FreeBSD or HBSD? If it doesn't maybe Netgate installed custom firmware inside. Might want to grab those firmwares from Netgate. Use the Netgate provided .dtb first to see if it works.
More or less, i achieved a boot with opnsense 19.7, but there all the Mavell network drivers are missing, so i had no interfaces to assign.

On opnsense 20.1 it stops at the start of the FreeBSD System, but I didn't looked at it closer at the moment.

According the dtb files, theres a dtb file in the stock /boot folder where i cant find any sources in the internet for it, i think that is exactly that :-(

But i have to tell the kernel conf, which dtb file should be included in the kernel, and when i use the Netgate dtb file, the whole build process just crashes.
Will create a issue in github later for better debugging
« Last Edit: November 05, 2019, 02:04:32 pm by rene_ »
Logged

monstermania

  • Hero Member
  • *****
  • Posts: 524
  • Karma: 47
    • View Profile
Re: OPNsense 20.1 on RaspberryPI 3
« Reply #7 on: November 05, 2019, 02:10:51 pm »
Quote from: rene_ on November 05, 2019, 02:00:50 pm
Just ordered some usb wifi sticks, lets see if they are working within opnsense ;-)
Want to try it with "Wireless WAN"
In the past i've using some Ralink USB wifi devices with my OPNense (RT2800 and RT5370). But not all tested devices works into ap mode!
And they work only up to 54Mbit
Logged

rene_

  • Newbie
  • *
  • Posts: 33
  • Karma: 10
    • View Profile
Re: OPNsense 20.1 on RaspberryPI 3
« Reply #8 on: November 05, 2019, 02:16:52 pm »
For my purpose, its enough when they support station mode :-)

Also 54 Mbit seems to be enough, because the pi cant handle much more in a openvpn tunnel.

Want to build a "Road warrior box"
Logged

rene_

  • Newbie
  • *
  • Posts: 33
  • Karma: 10
    • View Profile
Re: OPNsense 20.1 on RaspberryPI 3
« Reply #9 on: November 05, 2019, 03:33:04 pm »
i updated first post and added a download link

the cpu bug is fixed, all cores are recognized now.

Edit:
If anybody owns usb-(w)lan adapters, please let me know, if they are working  :)
« Last Edit: November 05, 2019, 04:39:14 pm by rene_ »
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 17712
  • Karma: 1618
    • View Profile
Re: OPNsense 20.1 on RaspberryPI 3
« Reply #10 on: November 05, 2019, 04:46:46 pm »
Nice work! I'm positive we'll iron out the quirks with the ports once HBSD and OPNsense patches are in the src tree.


Cheers,
Franco
Logged

rene_

  • Newbie
  • *
  • Posts: 33
  • Karma: 10
    • View Profile
Re: OPNsense 20.1 on RaspberryPI 3
« Reply #11 on: November 05, 2019, 07:52:17 pm »
Thanks :)

Will create a pr when everything is cleaned up, and changes are migrated to the make.conf

About the quirks ... We have to ;)

Most anoying bug, is the "checking if printf survieves out of memory condition"  :-\
Should i create an issue then for this?
Logged

monstermania

  • Hero Member
  • *****
  • Posts: 524
  • Karma: 47
    • View Profile
Re: OPNsense 20.1 on RaspberryPI 3
« Reply #12 on: November 08, 2019, 08:14:44 am »
Hi René,
yesterday i've made a quick test with your image.
1. I can't use a USB2LAN Adapter. The chipset should be supported by FreeBSD (ax88772)
https://www.freebsd.org/cgi/man.cgi?query=axe&sektion=4
2. 'Power Off' don't work and make a reboot.
Some more testing into the next days...

best regards
Dirk
Logged

rene_

  • Newbie
  • *
  • Posts: 33
  • Karma: 10
    • View Profile
Re: OPNsense 20.1 on RaspberryPI 3
« Reply #13 on: November 08, 2019, 08:35:44 am »
Hi Dirk,

thanks for testing :)

I added the requiered kernel modules, its currently compiling, i will upload the new image as soon as its finished.

I also found out, that some usb wlan modules are missing, i added them too, so Ralink wlan sticks should also work with the new image.


About the Poweroff, i will have a look at that, when everything else works :) (But mentioned it in first post, thanks for reporting)


Do you also own a RPi4?

Edit: new image is uploaded: https://opnsense.rene.network/

All the best,
René
« Last Edit: November 11, 2019, 02:52:42 pm by rene_ »
Logged

monstermania

  • Hero Member
  • *****
  • Posts: 524
  • Karma: 47
    • View Profile
Re: OPNsense 20.1 on RaspberryPI 3
« Reply #14 on: November 08, 2019, 09:56:38 am »
Quote from: rene_ on November 08, 2019, 08:35:44 am
I added the requiered kernel modules, its currently compiling, i will upload the new image as soon as its finished.

I also found out, that some usb wlan modules are missing, i added them too, so Ralink wlan sticks should also work with the new image.

Do you also own a RPi4?
Sounds Great.  :) Especially with the ralink devices because i only get internet by wifi.
I download the nw Image right now.

Right now i don't buy a RPi4, because i only use RPi for Retro Gaming. And the RPi3 has enough Power for my 80's games.  :)
Logged

  • Print
Pages: [1] 2 3 ... 5
« previous next »
  • OPNsense Forum »
  • English Forums »
  • Hardware and Performance »
  • OPNsense 20.1 on RaspberryPI 3
 

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