News for hackers. Stuff that matters.
Re:Ubiquiti Networks Breach by pimeys on Monday January 11, 2021 @04:17PM (#25737180)
Just ordered a Chinese box with 8th gen U-series i5, 8 GB of RAM and 120 GB of SSD. Has six ethernet connections, HDMI and COM. Planning to install OpenWRT to it, and with AES-NI the system should be easily able to push the full 1 Gbps of traffic through Wireguard.

I've had whatever routers before, but mostly when using some VPN to hide the traffic from your home network, and if having fast enough internet, a good CPU is a must.

Re:Ubiquiti Networks Breach by comboy on Monday January 11, 2021 @04:38PM (#25737617)
I still put the important part of my network behind my own router similar to yours (and in terms of security I think ubuntu server + whatever you need has likely much smaller attack surface than OpenWRT which is a piece of software just too tasty not to be exploited).

Outside that, wifi part is hard to get right and smart switches are nice to have, but they are PITA if the firmware is never updated and there's no single place to nicely manage it all.

Re:Ubiquiti Networks Breach by aborsy on Monday January 11, 2021 @05:25PM (#25738382)
Can you expand on the security of an Ubuntu server (acting as firewall, router and vpn), versus a dedicated router hardware and software (eg pfsense or OpenWRT)?
Re:Ubiquiti Networks Breach by gcblkjaidfj on Monday January 11, 2021 @07:52PM (#25740743)
openwrt contributor's focus is consumer hardware support.

I don't think the distro was ever security audited.

Re:Ubiquiti Networks Breach by pimeys on Monday January 11, 2021 @04:45PM (#25737732)
I'm having already Unifi's AP's, the controller running in my NAS and a good switch for the current setup.

Do you have some better suggestions for the router software? I'd love to run Opnsense, but a native Wireguard client is a must, and so is a good web interface for the setup.

Re:Ubiquiti Networks Breach by unethical_ban on Monday January 11, 2021 @04:22PM (#25737305)
Link to the box you got? That sounds interesting.
Re:Ubiquiti Networks Breach by pimeys on Monday January 11, 2021 @04:31PM (#25737470)
Oh, sorry!

These are available from Europe, but I've heard good things from US about similar boxes, when I searched with "best pfsense computer". Not the same brand, but similar hardware.

https://www.amazon.de/gp/product/B08JHKZMTN/ref=ppx_yo_dt_b_...

Let's see how it works, but I expect it to be much faster than my current ARMv7 box. Of course if you have space for a rack, go with something actively cooled. In our apartment, we expect the router to not make any noise.

Re:Ubiquiti Networks Breach by pilsetnieks on Monday January 11, 2021 @04:44PM (#25737716)
Despite the name in the Amazon listing, it has nothing to do with Mikrotik; also a 1Gbit ARM Mikrotik router/firewall can be had for considerably less.
Re:Ubiquiti Networks Breach by OJFord on Monday January 11, 2021 @07:06PM (#25740214)
I can't read German, but maybe it's a bare Mikrotik router board in a custom enclosure?

That said, it also says 'Pfsense', so I suppose more likely it's a typical 'Chinesium' listing.

Re:Ubiquiti Networks Breach by pimeys on Monday January 11, 2021 @04:49PM (#25737802)
How fast are the ARM CPU they have in their routers, do they support AES-NI and how much data you can push with VPN encryption through their boxes?

The current ARMv7 I have goes to about 100 degrees Celsius and loads in the level of 4 to 6 when downloading a bunch of data full speed.

Re:Ubiquiti Networks Breach by pilsetnieks on Monday January 11, 2021 @05:02PM (#25737982)
I'm not sure if they support AES-NI on ARM. I found some changelogs indicating that they do support it on x86 and x64, and most ARM routers list "hardware IPsec" encryption, so maybe?
Re:Ubiquiti Networks Breach by xvf22 on Monday January 11, 2021 @04:30PM (#25737444)
$350-$400ish search AliExpress for "i5 7200U firewall"
Re:Ubiquiti Networks Breach by AndrewDavis on Monday January 11, 2021 @04:26PM (#25737372)
Also curious, and wondering how much that cost.
Re:Ubiquiti Networks Breach by dpzmick on Monday January 11, 2021 @04:32PM (#25737486)
similar boxes are on amazon, with worse(ish) specs under the brand "Protectli "
Re:Ubiquiti Networks Breach by searchableguy on Monday January 11, 2021 @04:23PM (#25737314)
Raspberry pi 4 compute module might be good for building your own router too. You can attach a pcie network extension or usb to Ethernet for local usage. All of that would cost under $70.

https://www.raspberrypi.org/products/compute-module-4/?varia...

https://www.zahradnik.io/raspberry-pi-as-a-home-router

Edit: You would be better served by other boards from this benchmark repo for vpn usage: https://github.com/ThomasKaiser/sbc-bench/blob/master/Result...

Re:Ubiquiti Networks Breach by tjohns on Monday January 11, 2021 @04:27PM (#25737390)
It's worth noting that the Unifi gateways have hardware offload for traffic routing.

While a Raspberry Pi might work for some folks, it's worth noting that these are two very different performance classes.

Re:Ubiquiti Networks Breach by aborsy on Monday January 11, 2021 @04:28PM (#25737409)
How is it great with one NIC?

Ethernet adapter and USB speeds seem less than ideal.

Re:Ubiquiti Networks Breach by searchableguy on Monday January 11, 2021 @04:47PM (#25737764)
I don't need many ethernet ports so it works for me. My home network speed is less than a gigabit.

It's definitely not for people like OP but may work for other people who don't want to pay much and still have something decent that they can hack themselves.

I have tried to flash open firmware on my router before but it didn't work out. I had a raspberry pi already so I decided to convert it into a router and use it.

Re:Ubiquiti Networks Breach by jsight on Monday January 11, 2021 @04:51PM (#25737826)
A Pi 4 can handle about 1 Gb without issue. It is a great option for consumer workloads at consumer prices. I've certainly seen far worse consumer gear.
Re:Ubiquiti Networks Breach by geerlingguy on Monday January 11, 2021 @05:37PM (#25738608)
The CM4 can hit up to ~3.4 Gbps for one interface over PCI-E, and 4.15 Gbps if you also use the onboard Gigabit interface. Use a 1, 2, or 4-port network card and you can do some interesting things at 1+ Gbps: https://pipci.jeffgeerling.com/#network-cards-nics
Re:Ubiquiti Networks Breach by pimeys on Monday January 11, 2021 @04:55PM (#25737873)
It misses AES-NI though, so missing encryption hardware and would be subpar if running a VPN client for the network...
Re:Ubiquiti Networks Breach by centimeter on Monday January 11, 2021 @04:27PM (#25737398)
FWIW, I tried using OpenWRT on a box with similar specs to yours and it was a nightmare. Ended up using FreeBSD instead and it was a vastly better experience. I think OpenWRT might only be worth it on very low-spec hardware.
Re:Ubiquiti Networks Breach by pimeys on Monday January 11, 2021 @04:35PM (#25737560)
Hey! Could you please share what you think didn't work so well with OpenWRT? I'm currently running a Turris Omnia with their custom OpenWRT that I know how to use and it's been working quite well. What's missing is a better CPU to run Wireguard encryption full speed through our fast internet connection.

I'm seriously thinking about pfSense or Opnsense, but FreeBSD still misses native Wireguard support, leaving the encryption to the go implementation, which is subpar for our use cases. But, I'd be happy to run Opnsense, with jails and all those goodies from FreeBSD.

Re:Ubiquiti Networks Breach by gonzo on Monday January 11, 2021 @06:55PM (#25740061)
Since Netgate (the company behind pfSense) paid for the Wireguard work, you can make a good bet that same will appear in a near-future release of pfSense.
Re:Ubiquiti Networks Breach by floatboth on Monday January 11, 2021 @05:55PM (#25738956)
Wireguard has been merged into upstream FreeBSD almost a couple months ago.
Re:Ubiquiti Networks Breach by pimeys on Monday January 11, 2021 @06:00PM (#25739078)
FreeBSD 13 is out in March 2021 and opnSense with that system much later. Might be a bit complex to go that route right now, but it might be a great choice one year from now...
Re:Ubiquiti Networks Breach by nicolas314 on Tuesday January 12, 2021 @04:03AM (#25744151)
"with AES-NI the system should be easily able to push the full 1 Gbps of traffic through Wireguard"

You were probably thinking of OpenVPN? Wireguard is not based on AES and thus has no use for AES-NI.

Re:Ubiquiti Networks Breach by waynesonfire on Monday January 11, 2021 @04:39PM (#25737641)
i've got this on my todo list of projects. looks super interesting. there seem to be a lot of flavors of these boxes and i'm having a difficult time figuring which one will work best. i don't know anything about the manufacturers.