Re: How to view blacklist ip ?

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

 



Pascal Hambourg wrote:
> J. Bakshi a écrit :
>   
>> # cat /proc/net/ipt_recent/blacklist
>>
>> src=183.131.207.0 ttl: 0 last_seen: 4298214902 oldest_pkt: 1 4298214902
>> src=240.168.95.31 ttl: 0 last_seen: 4298214902 oldest_pkt: 1 4298214902
>>     
> [...]
>   
>> And If I try to remove a line it reports
>>
>> ```````````````
>> WARNING: The file has been changed since reading it!!!
>> Do you really want to write to it (y/n)?
>> `````````````````
>>
>> A yes puts me again into the file. and it is recursive.
>>     
>
> You are not supposed to open this pseudo-file and remove lines with a
> text editor, you are supposed to *write* commands (e.g. with echo) into
> it as indicated in the manpage. This is not a real file but an interface
> to the kernel.
>   

Hello,

Yes, I have found the specific section in the man page and it is
successully do the job as described. Now I can modify my script
accordingly to do the job.
Thanks a lot for he right direction.
wish you a nice time.


> --
> To unsubscribe from this list: send the line "unsubscribe netfilter" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>
>   

--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[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