Hello, at the moment I'm using a R-7800 Netgear behind my modem which is ofcourse my router, Wireguard server and AdGuardHome adblocker. Which works fine.
Because I am interested in what kind of traffic goes in and out my network, I was wondering if I could use my RP4 as router like my R-7800, with a graphical networkmonitor. My RP4 has 4GB memory and a 120GB SSD.
My R-7800 could be used as AP.
Is this possible or is my suggested config too heavy for the RP4?
I use my RPi4 2G for more than you want to do and it's plenty. You will need a USB-NIC for uplink to WAN. Recommend TP-Link USB 10/100/1000 LAN if you can find one.
Raspberry 4B is good for reasonable demanding processing (like traffic shaping) up to ~1Gbps, so will likely work well for your use-case. However as @frollic and @darksky mentioned you probably should use an USB3 gigabit ethernet dongle based on realtek ethernet chips (people reported bad experiences with asix). According to the forum tp-link's UE-300 works well.
You then would use the R7800 not only as AP, but also as switch to aggregate all your wired devices.
(Which I can not confirm or deny, as so far I only tested it under Macos, where it seems to have issues with bidirectionally saturating traffic, but that is likely a driver issue that is not representative for Linux/OpenWrt).
I think the main challenge is that the default images for the raspberry4B do not carry the required drivers for the ethernet dongle. Other than that I believe (not having done it myself) all you need to do is flash the image to a SD card and boot it up.
Highly recommend that you use the ext4 rootfs for your use case. The TP link dongle needs the rtl8150 kmod (CONFIG_PACKAGE_kmod-usb-net-rtl8150=y I believe.) You will probably want some additional packages to achieve what you want.
Wireguard server and AdGuardHome adblocker
Will you need VLANs (ie do you have guest networks, iot networks, etc.)?
Note that if VLANs are required for you, your R7800 does NOT use DSA, it uses the older switch interface. Here is a screenshot the swtich config of my R7800 using VLANs for reference.
The rootfs on uSD is rock solid. If you want storage, add a USB SSD. If you do not need storage, don't bother. Default rootfs on uSD is ~100 MiB. That is plenty but if needed you can scale it.
If you're worried about durability of the uSD card (a common concern on the Pi), then rest easy. When OpenWrt is running normally, it does not write anything to disk as all logging is to memory-based files. Of course you write disk files when you're changing configs, updating and installing software, but once set up, you don't have to worry about drive wear.
I have several uSD cards from before 2016 running Arch ARM on RPi models to this day. Must have thousands of read-write cycles without any damage or corruption. If you do get a bad uSD card eventually, reinstalling OpenWrt is soooo easy.
Reimage new uSD card
Restore the oh so convenient backup tarball of your settings
If you're messing around with external SSDs and if you have no need for extra storage beyond what you can do with a cheaper and easier to use uSD card, you're making your life more complex.
Hello, I've already decided to stay with an uSDcard. I'm waiting for my external USB--> RJ45 adapter.
Which graphical software do you advise for monitoring network traffic?