forked from NathanGibbs3/iplog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample-iplog.conf
71 lines (52 loc) · 1.63 KB
/
example-iplog.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
/*
** $Id: example-iplog.conf,v 1.2 2000/12/31 18:40:40 odin Exp $
**
** Example iplog configuration file.
** Edit me and copy me to /etc/iplog.conf
**
** See iplog.conf(5) for details on syntax and a full description
** of available options.
*/
# Run as an unprivileged account with the login "iplog"
user iplog
# Run with group "nogroup"
group nogroup
# User "iplog" has write permission for the directory "/var/run/iplog"
pid-file /var/run/iplog/iplog.pid
# Log to /var/log/iplog
logfile /var/log/iplog
# Use the syslog(3) facility log_daemon.
facility log_daemon
# Use the syslog(3) priority (level) log_info.
priority log_info
# Log the IP address as well as the hostname of packets.
set log_ip true
# Do not log the destination of packets.
set log_dest false
# Ignore DNS traffic from nameservers in /etc/resolv.conf.
set ignore_dns
# Listen on eth0 and eth1
interface eth0,eth1
# Operate in promiscuous mode and watch the 192.168.0.x network
promisc 192.168.0.0/24
/*
** Ignore DNS traffic from nameservers.
** Using the -d option will add similar rules for all nameservers
** listed in /etc/resolv.conf
*/
ignore udp from 192.168.0.1 sport 53
ignore udp from 192.168.0.2 sport 53
# Example log statement.
log tcp dport 1045:1055 sport ftp-data
# Ignore ftp-data connections from to ports 1024 and above.
ignore tcp dport 1024: sport 20
# Ignore WWW connections, if you're running a WWW server.
ignore tcp dport 80
# Ignore ICMP unreach.
ignore icmp type unreach
# Ignore all ICMP except ICMP echo packets.
ignore icmp type !echo
# Ignore UDP traffic from the 127.1.2 network
ignore udp from 127.1.2/24
# or
ignore udp from 127.1.2/255.255.255.0