[CentOS] how to get iptables rule to log actions?

Rudi Ahlers rudiahlers at gmail.com
Mon Apr 6 13:26:44 UTC 2009


On Mon, Apr 6, 2009 at 2:14 PM, Ian Blackwell <ian at ikel.id.au> wrote:
> Rudi Ahlers wrote:
>> On Mon, Apr 6, 2009 at 2:04 PM, Ian Blackwell <ian at ikel.id.au> wrote:
>>
>>> Rudi Ahlers wrote:
>>>
>>>> I have the following options in /etc/sysconfig/iptables:
>>>>
>>>>
>>>> -A RH-Firewall-1-OUTPUT -d 87.89.180.50 -j LOG
>>>> -A RH-Firewall-1-OUTPUT -d 87.89.180.50 - j DROP
>>>>
>>>>
>>> Perhaps it is the space between the hyphen and the j on your second line?
>>>
>>> Ian
>>> _______________________________________________
>>>
>>
>> Hi Ian,
>>
>> There's no space, I made a typo when I typed what I saw. I can't copy
>> & past from the remote KVM.
>>
>>
> Excusing the space, your syntax looks OK - as long as you have something
> like this at the top of your file:-
> :RH-Firewall-1-OUTPUT - [0:0]
>
> Can you send more detail about your OUTPUT chain?
>
> Ian
> _______________________________________________


Aha, that's what I've missed :)


-- 

Kind Regards
Rudi Ahlers


More information about the CentOS mailing list