OPNsense Forum

English Forums => Hardware and Performance => Topic started by: Jhjacobs81 on December 02, 2020, 10:26:26 pm

Title: OPNSense & Intel AES-NI J3160 Yanling NUC
Post by: Jhjacobs81 on December 02, 2020, 10:26:26 pm
so, i got me one of those to try, but it ends up with a kernel panic :(

Anyone any experience with one of those?
https://dutch.alibaba.com/product-detail/intel-celeron-j3160-quad-core-nuc-mini-pc-with-4-intel-gbe-lan-for-pfsense-firewall-and-network-server-60778936461.html?spm=a2700.md_nl_NL.deiletai6.1.595418c8dOmxan

Its supposed to work with pfsense, so i thought OPNSense shouldnt be a problem either, maybe my usb disk is broken.. or so i hope ;-)
Title: Re: OPNSense & Intel AES-NI J3160 Yanling NUC
Post by: ChrisChros on December 20, 2020, 11:10:16 am
Any updates on this topic?
I have also ordered such a device from Banggood.com. Manufacturer is a different brand but looks similar. Will arrive on monday and then I want to install OPNsense.
Have you tried to update the bios?
Title: Re: OPNSense & Intel AES-NI J3160 Yanling NUC
Post by: datenimperator on December 22, 2020, 11:47:29 am
Oh oh... have also ordered one. Can anybody shed some light on the details? Regards

Christian

EDIT: Mine arrived yesterday. Came with pfSense installed, the USB installer of OpnSense 20.7 worked flawlessly. Replaced the config backup, and it runs nicely. No issues whatsoever yet.
Title: Re: OPNSense & Intel AES-NI J3160 Yanling NUC
Post by: jwketchum on December 28, 2020, 05:33:25 pm
I purchased a similar device in 2017 from Protectli, but likely also made by Yangling, with AES-NI, atom e3845.  It ran pfSense, and then opnsense, until it bricked yesterday while updating opnsense.  It ran opnsense in my easy SOHO environment very nicely with much room to spare, until the untimely hardware failure.  These devices are well-suited to opnsense, but I am now uncertain about the hardware reliability.
Title: Re: OPNSense & Intel AES-NI J3160 Yanling NUC
Post by: thowe on January 18, 2021, 01:25:38 am
@datenimperator: as you had an APU2 and now have this J3160, can you compare the two? Speed, stability, heat, etc.

Thanks, Tom
Title: Re: OPNSense & Intel AES-NI J3160 Yanling NUC
Post by: ChrisChros on January 21, 2021, 04:21:31 pm
my j3160 arrived a few days before christmas and had up to now no problems with the installation or operation, except the problem who sitting in front of the device ???
Title: Re: OPNSense & Intel AES-NI J3160 Yanling NUC
Post by: datenimperator on January 24, 2021, 02:34:17 pm
@datenimperator: as you had an APU2 and now have this J3160, can you compare the two? Speed, stability, heat, etc.

Thanks, Tom

Can't say anything on stability yet apart from "works". As I said, installation was easy. I replaced a few tunables that explicitly targeted the AMD platform. No dropouts, no high CPU. Performance of the i210 ethernet ports seems to be better than those on the AMD SoC, but that was to be expected.

On the APU I disabled some services to save CPU: Netflow & insight, IDS. Re-enabled them without a noticeable effect on performance.

Overall, the J3160 feels a little warmer on the outside, but in the 45-48 degree celsius range (CPU temp). Given that this thing is passively cooled I think that's pretty good. I even replaced the BIOS with coreboot from the Protectli FW4B which is the same hardware.

The Yanling NUC comes with a 12V/3A power supply. I continued to use the 12V/2A supply that I had from the APU, no issues yet. So far I'm very happy with it. BTW I like the overall mechanical quality. A good, solid "weighty" feeling.

Regards

Christian
Title: Re: OPNSense & Intel AES-NI J3160 Yanling NUC
Post by: ChrisChros on January 24, 2021, 10:36:07 pm

As I said, installation was easy. I replaced a few tunables that explicitly targeted the AMD platform. No dropouts, no high CPU.

Can you please specify which tunables you mean. Would like to check mine, maybe I can improve my system a little bit.
Thanks.
Title: Re: OPNSense & Intel AES-NI J3160 Yanling NUC
Post by: datenimperator on January 26, 2021, 03:01:37 pm
Can you please specify which tunables you mean. Would like to check mine, maybe I can improve my system a little bit.

My setup on the J3160 NUC is currently like this (all others are at their defaults)

Code: [Select]
# Increase VFS read-ahead
vfs.read_max=128

# No ICMP redirects
net.inet.ip.redirect = 0

# A speedup of 40 to 60% in packet forwarding performance!
net.inet.ip.fastforwarding = 1

# Disable hardware flow control, CPU is faster
dev.igb.0.fc = 0
dev.igb.1.fc = 0
dev.igb.2.fc = 0
dev.igb.3.fc = 0

# The OS buffer / backlog queue depth for accepting new TCP connections
kern.ipc.somaxconn = 1024

# Loopback interface tuning
net.inet.tcp.nolocaltimewait = 1

## IPv6 Security
# Disable Node info replies
net.inet6.icmp6.nodeinfo = 0
# Disable IP/ICMP redirect
net.inet6.icmp6.rediraccept = 0
net.inet6.ip6.redirect = 0


Credits go to https://gist.github.com/clemensg/8828061 and others. Cheers!
Title: Re: OPNSense & Intel AES-NI J3160 Yanling NUC
Post by: ChrisChros on January 26, 2021, 05:56:37 pm
Thnaks.
Where have you insert the tunables, whitin the UI or in /etc/sysctl.conf?
Title: Re: OPNSense & Intel AES-NI J3160 Yanling NUC
Post by: thowe on January 26, 2021, 07:21:57 pm
In OPNsense you don't have to edit files at OS level in order to set tunables. Just add them in GUI. This is true even for the boot/loader.conf ones, as all entries are added there as well.
Title: Re: OPNSense & Intel AES-NI J3160 Yanling NUC
Post by: ChrisChros on January 26, 2021, 07:33:41 pm
In OPNsense you don't have to edit files at OS level in order to set tuneables. Just add them in GUI. This is true even for the boot/loader.conf ones, as all entries are added there as well.
Thanks for you answer.