Networking Forums

Networking Forums > Computer Networking > Linux Networking > iptables rule disappear after restart the service

Reply
Thread Tools Display Modes

iptables rule disappear after restart the service

 
 
athatisme4@gmail.com
Guest
Posts: n/a

 
      08-13-2006, 11:55 AM
Hi all,

I use Fedora core 3

i use iptables -L then show a list of rules that running,
then i try to add new rule, and /etc/rc.d/init.d/iptables restart .
I use iptables -L, there is nothing rule i can see~ why ??

 
Reply With Quote
 
 
 
 
Unruh
Guest
Posts: n/a

 
      08-13-2006, 04:05 PM
(E-Mail Removed) writes:

>Hi all,


>I use Fedora core 3


>i use iptables -L then show a list of rules that running,
>then i try to add new rule, and /etc/rc.d/init.d/iptables restart .
>I use iptables -L, there is nothing rule i can see~ why ??


Because iptables does not memorize everything you tell it. It places it in
short term storage. When you restart, it reads what it needs from long term
storage ( the disk) and since you did not place your changes into long term
storage, it is gone.



 
Reply With Quote
 
Michael Heiming
Guest
Posts: n/a

 
      08-13-2006, 08:58 PM
In comp.os.linux.networking Unruh <unruh-(E-Mail Removed)>:
> (E-Mail Removed) writes:


>>Hi all,


>>I use Fedora core 3


>>i use iptables -L then show a list of rules that running,
>>then i try to add new rule, and /etc/rc.d/init.d/iptables restart .
>>I use iptables -L, there is nothing rule i can see~ why ??


> Because iptables does not memorize everything you tell it. It places it in
> short term storage. When you restart, it reads what it needs from long term
> storage ( the disk) and since you did not place your changes into long term
> storage, it is gone.


Indeed, though he can utilize the system init script to do just
that:

# /etc/init.d/iptables
Usage: /etc/init.d/iptables
{start|stop|restart|condrestart|status|panic|save}

# lsb_release -d
Description: Fedora Core release 5 (Bordeaux)

Should be the same on FC3 and an additional ncurses tool called
'lokkit' allowing for easy configuration suitable for some basic
firewall. Or just read the iptables script what it does.

BTW
Would be nice if the OP could stop multi-posting, seems another
G/2 cancer? Don't they tell how to cross-post and does it work
with their interface? Taking into account it is after a few years
still labeled "beta"?

--
Michael Heiming (X-PGP-Sig > GPG-Key ID: EDD27B94)
mail: echo (E-Mail Removed) | perl -pe 'y/a-z/n-za-m/'
#bofh excuse 389: /dev/clue was linked to /dev/null
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
iptables rule Bonno Bloksma Linux Networking 6 03-06-2010 10:48 PM
iptables: rule with RETURN target just after a rule with ACCEPT target Neroku Linux Networking 0 04-25-2007 08:13 AM
iptables: rule with RETURN target after a rule with the ACCEPT target Neroku Linux Networking 0 04-24-2007 08:43 PM
iptables add rule case jeniffer Linux Networking 4 11-07-2006 09:35 AM
Iptables rule ID drg Linux Networking 3 02-22-2006 02:24 AM



1 2 3 4 5 6 7 8 9 10 11