[WBEL-users] iptables - where and how to insert the rules ?

Graham Purcocks grahamp@wsieurope.com
Fri, 03 Dec 2004 13:01:49 +0000


This is a multi-part message in MIME format.
--------------080102000009080704030202
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

Thats because sysconfig/iptables is iptabled dump format.

such as

-A INPUT -p tcp -j tcp_packets


Mário Gamito wrote:
> Hi,
> 
> I'm currently running a development server based on WBEL, with a few 
> iptables rules, because i don't want no one except the development team 
> to access it.
> 
> Well, i have this executable, rc.firewall in /etc, being called form 
> /etc/rc.local
> 
> I believe this is not the right thing (TM) to do, although it works.
> 
>  From what i saw in iptables ctl, the rules should be in 
> /etc/sysconfig/iptables, right ?
> But when i insert them in that file, i always get an error from 
> "/etc/init.d/iptables start", saying it doesn't recognize the text.
> 
> Any help about how it should be done ?
> 
> Thank you.
> 
> Warm Regards.

--------------080102000009080704030202
Content-Type: text/x-vcard; charset=utf-8;
 name="grahamp.vcf"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename="grahamp.vcf"

begin:vcard
fn:Graham Purcocks
n:Purcocks;Graham
org:WSI Ltd;Engineering
adr:Hockley;;22-24 Vittoria Street;Birmingham;W.Midlands;B1 3PE;U.K.
email;internet:grahamp@wsieurope.com
title:Consultant Engineer
tel;work:+44 121 233 7600
tel;fax:+44 121 233 7666
x-mozilla-html:FALSE
url:http://www.wsieurope.com
version:2.1
end:vcard


--------------080102000009080704030202--