I would like to create an OnenWrt router on a raspberry pi ( i tried this both on a 3 and a 4)
*So I have Ethernet "built in" for br-bridge eth0 with a static IP and DHCP
*next I added the driver for my tp- link adapters kmod-usb-net-rtl8152. connected my PI to a monitor and the bootup confirmed that this is the right driver. I added adapter eth1and configured it for wan with DHCP. did the appropriate FW zone changes and everything works great.
Next I plugged the second tp-link option eth2 was available so I used that for the my "DMZ" network. configured with a static IP and anther DHCP scope. the link shows traffic but I can't connect to that network or get A DHCP address and manual configuration on my mac can't reach the "DMZ" netwok
What am I doing wrong/ I tied this on RPI3 and 4 and can't get the second USB adapter to serve
Please connect to your OpenWrt device using ssh and copy the output of the following commands and post it here using the "Preformatted text </> " button:
Remember to redact passwords, MAC addresses and any public IP addresses you may have:
As the default policy on DMZ is reject input, DHCP and DNS services on the router will not work unless you add specific rules to permit those. Suggest changing DMZ zone default to input ACCEPT at least for testing.
You also need conditional routing such as pbr to have one network go to the Internet via wan and one via a VPN. Firewall rules alone do not make that happen. The firewall only allows traffic to move after the decision of the destination has been made by the routing tables.
You can stop right here. The RPi3 is still limited by its USB 2.0 system bus, performance for multiple USB ethernet cards would be horrible (the situation would be different for RPi4 or RPi5, but even there I would seriously reconsider any plans involving 2+ USB ethernet cards). There is much better hardware (even cheaper) than dealing with the headaches of multiple USB cards on a RPi.
This is a good point, and also I don't think that USB3 Ethernet adapters work very well plugged into a USB2 port.
If the router is going to be a Raspberry Pi 3 it would be better to set up VLANs on the internal port and then separate the networks with a managed switch.