View previous topic :: View next topic |
Author |
Message |
jufoa Apprentice


Joined: 10 Dec 2002 Posts: 213 Location: Rovaniemi, Finland
|
Posted: Sun Dec 15, 2002 1:00 pm Post subject: iptables and log |
|
|
is there away to log blocked connection attemps with iptables? |
|
Back to top |
|
 |
klieber Bodhisattva


Joined: 17 Apr 2002 Posts: 3657 Location: San Francisco, CA
|
Posted: Sun Dec 15, 2002 2:04 pm Post subject: |
|
|
iptables has extensive logging capabilities. man iptables for examples or search google. There are literally hundreds of examples and resources out there.
--kurt _________________ The problem with political jokes is that they get elected |
|
Back to top |
|
 |
rtn Guru

Joined: 15 Nov 2002 Posts: 427
|
Posted: Mon Dec 16, 2002 4:51 pm Post subject: |
|
|
... but you may need to include the iptables LOG directive into your kernel.
That bites me every time I build a clean kernel. One of the iptables
firewall HOWTOs says to use this:
Code: |
iptables -A INPUT -j LOG -m limit --limit 30/minute --log-prefix "Dropping: "
|
--rtn |
|
Back to top |
|
 |
|