Re: Saving IPTable rules..oops

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxx
---
If you are interested in helping to develop a GPL enterprise class
VPN/Firewall/Security device management console, please visit
http://iscs.sourceforge.net 



[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux