Gentoo Archives: gentoo-user

From: Peter Humphrey <peter@××××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Shorewall config problem [SOLVED]
Date: Sun, 10 May 2015 09:17:33
Message-Id: 2442871.vZ6LR7RNj4@wstn
In Reply to: [gentoo-user] Shorewall config problem by Peter Humphrey
1 On Wednesday 06 May 2015 16:20:19 I wrote:
2 > I've recently installed a new ADSL modem, and now I'm trying to get it to
3 > log to my LAN server. The modem seems to be sending log messages but
4 > Shorewall is dropping them at the server.
5
6 --->8
7
8 It seems I had missed something in the kernel configuration. I can't say what
9 exactly because I added several options (life's too short to go through all
10 the network options one at a time).
11
12 So now, Shorewall is not dropping syslog packets, and syslog-ng is logging
13 correctly. This is my /etc/syslog-ng/syslog-ng.conf:
14
15 ----------------
16 @version: 3.6
17 @include "scl.conf"
18 options {
19 threaded(yes);
20 chain_hostnames(no);
21 stats_freq(43200);
22 mark_freq(0);
23 };
24
25 source src { system(); internal(); };
26 source s_remote { udp (ip(192.168.1.2) port(514) ); };
27
28 filter f_cron { facility (cron); };
29 filter f_ncron { not facility (cron); };
30
31 destination d_remote { file("/var/log/remote"); };
32 destination d_cron { file("/var/log/cron"); };
33 destination messages { file("/var/log/messages"); };
34 destination console_all { file("/dev/tty12"); };
35
36 log { source(src); filter(f_cron); destination(d_cron); };
37 log { source(src); filter(f_ncron); destination(messages); };
38 log { source(src); filter(f_ncron); destination(console_all); };
39 log { source(s_remote); destination(d_remote); };
40 ----------------
41
42 I hope that will be useful to someone.
43
44 --
45 Rgds
46 Peter