I am working on a kernel module that will be used in a standalone firewall unit. The basic structure of the network will, I assume, be:
LAN <---> Gateway <---> Firewall <---> Internet
The firewall itself has no DHCP server. It has two network interface cards, eth0 which is connected to the internet and eth1 which is connected to the gateway. The gateway will be configured to by default forward outgoing packets to the firewall, I'm assuming this is possible as well.
I am in the process of writing the kernel module using the Netfilter kernel library and I need a way to forward (or not) packets between the two network interfaces. Will setting up a bridge work? I'm more of a programmer and less of a network engineer, so I'm sort of at a loss here. How should this work?
brctl
manpage and maybe some articles on bridging? If it's at the IP layer, exactly what feature is the kernel's IP forwarding support missing that you need? Also, what exactly do you mean by "not close to being scalable enough"? Scalable in what way? – pmdj