RedHat Linux 9's built-in iptables file
This is my first try configuring a linux box to serve as an internet server for about 75 PCs in our office. I am using a Red Hat Linux 9 distribution with kernel 2.4.20-8, and iptables ver. 1.2.7a. I need to create a customized iptables script to allow our private network to access the internet using NAT or masquerading since we have only one official IP address assigned. The built-in iptables file in the directory /etc/sysconfig/iptables cannot be customized. It can only be modified with its features using the "lokkit" utility for allowing incoming packets such as HTTP and Mail but it has no feature for doing NAT or MASQUERADING. I tried manually editing the /etc/sysconfig/iptables file and did a /etc/init.d/iptables restart but it did not work. It only issued a "Bad argument 'iptables'" error and a "Try 'iptables-restore' and a [FAILED] message instead of [OK] it if started normal. How do I go about this? I replaced the built-in iptables file with the one I created but it also does not work. Please advise.
Last edited by thelR; 08-24-2004 at 11:20 PM.