[CentOS] how to get iptables rule to log actions?
ian at ikel.id.au
Mon Apr 6 13:14:39 UTC 2009
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 184.108.40.206 -j LOG
>>> -A RH-Firewall-1-OUTPUT -d 220.127.116.11 - j DROP
>> Perhaps it is the space between the hyphen and the j on your second line?
> 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?
More information about the CentOS