I have RedHat 7.1, and I recently upgraded to kernel 2.4.7.
I would like to use this computer as an internet gateway for other
computers.
I went to this web site.
http://netfilter.filewatcher.org/unreliable-guides/NAT-HOWTO/NAT-HOWT...
doc.html#toc4
The section 4.1 says to type the following.
modprobe iptable_nat
iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
echo 1 > /proc/sys/net/ipv4/ip_forward
When I typed the first command, I got an error, but I think that's because
when I compiled the kernel, I selected all the networking options as "Y",
not as modules.
The second and the third command did not give me errors. There was no
response, so I guess the command was accepted.
However, it's not working. When I revert to RedHat 6.2, and use IP chains,
everything works.
What did I do wrong?
--
I've used the NATO & International Aviation Phonetic Alphabet in my email
address, so the spammers'll have to work a bit harder. Interestingly, in
Phonetic Alphabet, the letter "A" is represented by "Alfa", not "Alpha".
Anyway, if you're having trouble deciphering my cryptic email address, look
up "Phonetic Alphabet" on the web. Sorry for the inconvenience.