> Not sure if this is what you want, but for the eth3-eth4 routing you
> might want to use ipchains instead of iptables. Yes, I know that
> sounds backwards, but I find ip masquerading (NAT) much simpler with
> ipchains.
iptables separates routing (the FORWARD table) from NAT (the NAT table).
Maybe this is more complicated. I don't have any experience with ipchains,
but I had no problem setting up a firewall and static router using
iptables.
> As for a good resource, if you decide to take the big leap backwards
> and use ipchains, there's a really good book that details how to get a
> good firewall running on it: "Building Linux and OpenBSD Firewalls"
> (http://www.amazon.com/exec/obidos/tg
detail/-/0471353663/104-4689293-9712741?v=glance).
> That book details about getting a standard firewall running (good for
> eth0-3) and getting NAT/IPMASQ running (good for eth3-4). Just combine
> them in a sensible manner, and off you go.
A similar book for iptables is "Linux Firewalls", 2nd ed., by Robert
Ziegler, from New Riders. It's a comprehensive description of firewalling
via iptables. Routing comes along for the ride. I started reading that
book with only a basic knowledge of IP, and came out the other side having
built my own firewall and static router by hand, using iptables. It takes
some time to get through, but the time is well-invested. I recommend it
highly.
I'm sure that David could solve his problem using either ipchains or
iptables, using the books that we've mentioned. ipchains will probably be
phased out relatively soon, but not so soon that David can't solve his
problem with it for now.
--
To reply by email, change "deadspam.com" to "alumni.utexas.net"