From bc53c4c6d176aa8f64712d733125d0d1a6251b3e Mon Sep 17 00:00:00 2001 From: Daniel STAN Date: Fri, 18 Jan 2013 01:46:45 +0100 Subject: [PATCH] =?UTF-8?q?[arpwatch]=20oubli=20de=20la=20g=C3=A9n=C3=A9ra?= =?UTF-8?q?tion=20de=20la=20conf?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ignore-this: df7dde18204b968273f19dc3ce86bff On liste les interfaces sur lesquelles on écoute darcs-hash:20130118004645-28565-c0c9f4622a1c85a2a45e4b7b77ee1d5ecf257a79.gz --- Python/etc/arpwatch.conf | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Python/etc/arpwatch.conf diff --git a/Python/etc/arpwatch.conf b/Python/etc/arpwatch.conf new file mode 100644 index 0000000..0e4d693 --- /dev/null +++ b/Python/etc/arpwatch.conf @@ -0,0 +1,27 @@ +# -*- coding: utf-8; mode: python -*- +header("Fichier gere par Bcfg2 (module Python) !") + +info["owner"] = "root" +info["group"] = "root" +info["perms"] = 0644 + + +# /etc/arpwatch.conf: Debian-specific way to watch multiple interfaces. +# Fichier gere par Bcfg2 (module Cfg) +# +# Format of this configuration file is: +# +# +# +#... +# +# +# You can set global options for all interfaces by editing +# /etc/default/arpwatch + +include("arpwatch") +for vlan in watched_vlans: + iface = 'eth0' + if vlan <> 0: + iface += '.%d' % vlan + print("%s -m root@crans.org" % iface)