Re: Adding/removing rules - works from stdin, not from file?

This is a discussion on Re: Adding/removing rules - works from stdin, not from file? within the IPFilter forums, part of the System Security and Security Related category; Jaroslaw Rafa napisal(a): > When I type the rules directly from terminal, like here: > > # ipf -f - > &...


Go Back   Usenet Forums > System Security and Security Related > IPFilter

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-20-2006
Jaroslaw Rafa
 
Posts: n/a
Default Re: Adding/removing rules - works from stdin, not from file?

Jaroslaw Rafa napisal(a):
> When I type the rules directly from terminal, like here:
>
> # ipf -f -
> <type rules here>
> ctrl-D
> #
>
> the rules are added, but when I put the rules into a file, and type:
>
> # ipf -f filename
>
> or type something like
>
> # echo '<rule text>' | ipf -f -
>
> it doesn't work - "ipfstat" shows that the filter rules are unchanged.



Excuse me for making a mistake - I actually tried to remove rules, and it
didn't work, and wrote about adding them.
I made some more experiments, and found out the following:
The rules can be removed ONLY in the same way they have been added, ie.

- when rules have been typed directly from a terminal, they need to be
removed also directly from a terminal;
- the rules that have been loaded from a file must be also removed by means
of a file (ipf -r -f filename)
- the rules that were added via redirected standard input, like in the above
example with "echo" command, must be also removed the same way

Removing the rule any other way doesn't work!
Why does it work so?
Regards,
Jaroslaw Rafa
raj@ap.krakow.pl

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:09 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0