From mboxrd@z Thu Jan 1 00:00:00 1970 From: "John A. Sullivan III" Subject: Re: Saving IPTable rules..oops Date: Thu, 30 Dec 2004 17:09:25 -0500 Message-ID: <1104444565.2006.16.camel@localhost> References: <6.1.2.0.0.20041229095858.02518240@corpmail.courtesymortgage.com> <002501c4edd3$872fb6b0$0500a8c0@floydian> <6.1.2.0.0.20041230123544.02691b78@corpmail.courtesymortgage.com> <002d01c4eeb1$7f6a1fe0$0500a8c0@floydian> <6.1.2.0.0.20041230133624.02598318@corpmail.courtesymortgage.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <6.1.2.0.0.20041230133624.02598318@corpmail.courtesymortgage.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: netfilter-bounces@lists.netfilter.org Errors-To: netfilter-bounces@lists.netfilter.org Content-Type: text/plain; charset="us-ascii" To: Jason Williams Cc: Netfilter users list On Thu, 2004-12-30 at 16:38, Jason Williams wrote: > At 12:52 PM 12/30/2004, you wrote: > >I don't think you can put your variables in /etc/sysconfig/iptables file. > >It follows a particular pattern which is not that difficult to learn. > > > >If you want to use variables and stuff, you gotta write your own script > >file and run it at bootup. I use do this way when my firewall rules were > >less than 50 lines. > > > >Now my firewall rules are more than 500 lines so I edit the > >/etc/sysconfig/iptables file directly. It is just an efficient way to load > >the rules through this file. > > > I see. so if i want to use variables, I need to edit/replace > /etc/init.d/iptables then? with my own custom script? > Sounds like i need to brush up on my scripting. :) > > Cheers, > > Jason > > > You could run a script to create the rules and then save them to the iptables file. -- John A. Sullivan III Chief Technology Officer Nexus Management +1 207-985-7880 john.sullivan@nexusmgmt.com --- If you are interested in helping to develop a GPL enterprise class VPN/Firewall/Security device management console, please visit http://iscs.sourceforge.net