<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML ><HEAD ><TITLE >Loading up the rc.firewall ruleset</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK REL="HOME" TITLE="Linux IP Masquerade HOWTO" HREF="index.html"><LINK REL="UP" TITLE="Testing IP Masquerade " HREF="testing.html"><LINK REL="PREVIOUS" TITLE="Testing IP Masquerade " HREF="testing.html"><LINK REL="NEXT" TITLE="Testing internal MASQ client PC connectivity" HREF="testing-the-masqed-pc.html"></HEAD ><BODY CLASS="SECT1" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#840084" ALINK="#0000FF" ><DIV CLASS="NAVHEADER" ><TABLE SUMMARY="Header navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TH COLSPAN="3" ALIGN="center" >Linux IP Masquerade HOWTO</TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="bottom" ><A HREF="testing.html" ACCESSKEY="P" >Prev</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" >Chapter 5. Testing IP Masquerade</TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="testing-the-masqed-pc.html" ACCESSKEY="N" >Next</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><DIV CLASS="SECT1" ><H1 CLASS="SECT1" ><A NAME="LOADING-RC.FIREWALL" ></A >5.1. Loading up the rc.firewall ruleset</H1 ><P >Step One: run the correct firewall for your machine via command "/etc/rc.d/rc.firewall-[iptables / ipchains /ipfwadm]". For example, Linux 2.6 users would run "/etc/rc.d/rc.firewall-iptables"</P ><P >Does it load with some strange errors? Here are some exmaples and help to fix them: <P ></P ><UL ><LI ><P > Problem #1: </P ><P > <TABLE BORDER="1" BGCOLOR="#E0E0E0" WIDTH="90%" ><TR ><TD ><FONT COLOR="#000000" ><PRE CLASS="SCREEN" >ip_tables, Using /lib/modules/2.4.2-2/kernel/net/ipv4/netfilter/ip_tables.o /lib/modules/2.4.2-2/kernel/net/ipv4/netfilter/ip_tables.o: init_module: Device or resource busy Hint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters </PRE ></FONT ></TD ></TR ></TABLE > </P ><P > Run the command "/sbin/lsmod" and make sure the module "ipchains.o" is NOT installed. If it is installed, your machine (most likely Redhat-7.x based) is probably trying to load an IPCHAINS ruleset which is incompatible with IPTABLES. </P ><P > To disable this from happening in the future, run the command: <TABLE BORDER="1" BGCOLOR="#E0E0E0" WIDTH="90%" ><TR ><TD ><FONT COLOR="#000000" ><PRE CLASS="SCREEN" > chkconfig --level=2345 ipchains off </PRE ></FONT ></TD ></TR ></TABLE > </P ><P > To remove the "ipchains" module without rebooting, run the command: <TABLE BORDER="1" BGCOLOR="#E0E0E0" WIDTH="90%" ><TR ><TD ><FONT COLOR="#000000" ><PRE CLASS="SCREEN" > /sbin/rmmod ipchains </PRE ></FONT ></TD ></TR ></TABLE > and the re-try to load the rc.firewall-* ruleset. </P ></LI ><LI ><P > Problem #2: </P ><P > <TABLE BORDER="1" BGCOLOR="#E0E0E0" WIDTH="90%" ><TR ><TD ><FONT COLOR="#000000" ><PRE CLASS="SCREEN" > . . Creating a DROP chain.. iptables v1.2.3: log-level `info' ambiguous . . </PRE ></FONT ></TD ></TR ></TABLE > </P ><P > Your version of IPTABLES it too old. You need to upgrade it with a newer version via an updated RPM, DEB, or via compiling up the source. You can get an updated version from your Linux distribution manufacturer or from the NetFilter WWW site. This is all covered in the <A HREF="kernel-2.4.x-requirements.html" >Section 2.6</A > section. </P ></LI ><LI ><P > Problem #3: </P ><P > <TABLE BORDER="1" BGCOLOR="#E0E0E0" WIDTH="90%" ><TR ><TD ><FONT COLOR="#000000" ><PRE CLASS="SCREEN" > No such file: </PRE ></FONT ></TD ></TR ></TABLE > </P ><P >Did you copy this rc.firewall-* file from a DOS machine? Load the rc.firewall-* file in a binary editor such as ViM (vim -b /etc/rc.d/rc.firewall-*) and make sure that every line is NOT finished with a ^M. </P ></LI ></UL ></P ></DIV ><DIV CLASS="NAVFOOTER" ><HR ALIGN="LEFT" WIDTH="100%"><TABLE SUMMARY="Footer navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" ><A HREF="testing.html" ACCESSKEY="P" >Prev</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="index.html" ACCESSKEY="H" >Home</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="testing-the-masqed-pc.html" ACCESSKEY="N" >Next</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >Testing IP Masquerade</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="testing.html" ACCESSKEY="U" >Up</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >Testing internal MASQ client PC connectivity</TD ></TR ></TABLE ></DIV ></BODY ></HTML >