Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
iptables and log
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
jufoa
Apprentice
Apprentice


Joined: 10 Dec 2002
Posts: 213
Location: Rovaniemi, Finland

PostPosted: Sun Dec 15, 2002 1:00 pm    Post subject: iptables and log Reply with quote

is there away to log blocked connection attemps with iptables?
Back to top
View user's profile Send private message
klieber
Bodhisattva
Bodhisattva


Joined: 17 Apr 2002
Posts: 3657
Location: San Francisco, CA

PostPosted: Sun Dec 15, 2002 2:04 pm    Post subject: Reply with quote

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
View user's profile Send private message
rtn
Guru
Guru


Joined: 15 Nov 2002
Posts: 427

PostPosted: Mon Dec 16, 2002 4:51 pm    Post subject: Reply with quote

... 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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum