I'm running into some issues setting up a Raspberry Pi 4B (RP4) as a firewall. My intention is to place it in between my modem (AT&T, bog standard POS) and my managed switch (TP-Link model TL-SG1024DE). I would like to avoid mirroring traffic and instead set it up physically between the two points, with all traffic from the RP4's ethernet port (eth0) bridged to a USB3 adapter (eth1) and exposed to the switch. This would (in theory) allow me to set filtering on a number of criteria for packets sent between the two ports (eth0 and eth1) and my only limitation would be the theoretical throughput of both physical devices and the processing capabilities of the RP4.
I've tried a variety of options and followed a number of great tutorials (many on this excellent forum!) to do something similar, however, I haven't come across anything that spells out exactly what I'm after and, after hours of trying - and failing - to make it work, am starting to believe there is a reason for this.
Therefor, my question is thus: is it possible to set up my RP4 using OpenWRT to pass all traffic from the RP4's ethernet port to a USB3 port with an ethernet cable plugged into my switch? And, if so, what are the settings I need to focus on in order to achieve this goal? (If anyone knows of a tutorial or guide, I would be forever in your debt!)
Thank you (kind soul) for trudging through my admittedly awkward explanation and I sincerely hope someone has advice and/or an answer!
I must first commit that I'm a total noob too on OpenWrt...
I have set up a PineA64 with the same intention. It acts as a "standard" router (double NAT). So yes, it's possible. From a short overlook, I see there is only snapshot for RPi4, means if you like to have a GUI, you have to install luci on your own over "ssh".