"M. Wolffensperger" wrote: > > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > I have a problem with Redhat linux 7.2. > I have installed ipchains now I want to create some chains so that > the client machines can use the linuxbox as a router I did the > following. > > echo 1 > /proc/sys/net/ipv4/ip_forward > So far no problem > > Than I want to add a chain as followd. > ipchains -A forward -s 10.1.1.2/24 -d 0.0.0.0/0 -j MASQ > > But than I got the following error > ipchains: protocol unknown
If you type uname -a you'll see if it's a 2.2.x or 2.4.x based kernel. Chances are it's a 2.4.x kernel with iptables + netfilter enabled. Ipchains will not work with those running on your system, even if you have just installed ipchains. You will need to re-compile a kernel, preferably with ipchains and iptables as modules, and you load one of those when you boot your machine. The advantage of compiling both as modules is that you can test both methods of packet filtering without re-compiling more kernels.. -- Patrick Benson Stockholm, Sweden
