<?xml version="1.0" encoding="utf-8" ?>
<rss version="2.0">
  <channel>
    <title>DLFP - Entrées de forums de WaVeR</title>
    <link>http://linuxfr.org/~WaVeR/</link>
     
    <description>LinuxFr</description>
    <language>fr</language>
    <image>
      <title>DLFP - Entrées de forums de WaVeR</title>
      <link>http://linuxfr.org/~WaVeR/</link>
      <url>http://linuxfr.org/images/favicon.png</url>
    </image>
    <ttl>30</ttl>
    

    <item>
      <title>Ucarp et adresse MAC</title>
      <author>null@linuxfr.org (WaVeR)</author>
      <pubDate>Fri, 17 Nov 2006 10:05:12 +0100</pubDate>
      <link>http://linuxfr.org/forums/10/19646.html</link>
      <guid>http://linuxfr.org/forums/10/19646.html</guid>
      <category>general</category>
      <description>Salut,&lt;br /&gt;
&lt;br /&gt;
Actuellement je teste ucarp afin de mettre en place un firewall redondant. J'ai trouvé un soucis au niveau de l'adresse MAC de l'interface virtuel fait par ucarp.&lt;br /&gt;
&lt;pre&gt;Nov 17 10:11:53 localhost ucarp[11181]: [INFO] Using [eth0] as a network interface&lt;br /&gt;
Nov 17 10:11:53 localhost ucarp[11182]: [INFO] Local advertised ethernet address is [00:50:bf:32:2f:69]&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
Il utilise l'adresse MAC de l'interface réseau réel, ceci me dérange car dans le cas ou le master est donw le routeur gardera dans son cahce arp l'adresse MAC du master.&lt;br /&gt;
&lt;br /&gt;
L'un de vous à une idée afin que la même MAC de l'interface virtuel soit sur le Master et le Slave? (Je précise que je veux rester sous Linux et non passer à une solution BSD)</description>
    </item>
    <item>
      <title>Syslog-ng et iptables</title>
      <author>null@linuxfr.org (WaVeR)</author>
      <pubDate>Thu, 21 Oct 2004 14:57:27 +0200</pubDate>
      <link>http://linuxfr.org/forums/10/4377.html</link>
      <guid>http://linuxfr.org/forums/10/4377.html</guid>
      <category>general</category>
      <description>Bonjour,&lt;br /&gt;
&lt;br /&gt;
J'ai un soucis avec syslog-ng et mes logs iptables, non seulement syslog-ng destine les logs vers /var/log/firewall mais je les trouve aussi dans ma console et à la sortie de la commande dmesg malgré un dmesg -n 1. J'ai essayé tout les niveaux (info, warning, ...) de log et c'est tjrs le même résultat. :o&lt;br /&gt;
&lt;br /&gt;
ma règle iptables:&lt;br /&gt;
iptables -A INPUT -m state --state INVALID -m limit --limit 3/s -j LOG --log-tcp-option --log-ip-options --log-level warning --log-prefix &quot;## INVALID INPUT ## &quot;&lt;br /&gt;
&lt;br /&gt;
mon fichier de conf syslog-ng.conf:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
#&lt;br /&gt;
# Configuration file for syslog-ng under Debian&lt;br /&gt;
#&lt;br /&gt;
# attempts at reproducing default syslog behavior&lt;br /&gt;
&lt;br /&gt;
# the standard syslog levels are (in descending order of priority):&lt;br /&gt;
# emerg alert crit err warning notice info debug&lt;br /&gt;
# the aliases &quot;error&quot;, &quot;panic&quot;, and &quot;warn&quot; are deprecated&lt;br /&gt;
# the &quot;none&quot; priority found in the original syslogd configuration is&lt;br /&gt;
# only used in internal messages created by syslogd&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
######&lt;br /&gt;
# options&lt;br /&gt;
&lt;br /&gt;
options {&lt;br /&gt;
        # &lt;br /&gt;
        long_hostnames(0);&lt;br /&gt;
&lt;br /&gt;
        # the time to wait before a died connection is re-established&lt;br /&gt;
        # (default is 60)&lt;br /&gt;
        time_reopen(10);&lt;br /&gt;
&lt;br /&gt;
        # the time to wait before an idle destination file is closed&lt;br /&gt;
        # (default is 60)&lt;br /&gt;
        time_reap(360);&lt;br /&gt;
&lt;br /&gt;
        # the number of lines buffered before written to file&lt;br /&gt;
        # you might want to increase this if your disk isn't catching with&lt;br /&gt;
        # all the log messages you get or if you want less disk activity&lt;br /&gt;
        # (say on a laptop)&lt;br /&gt;
        # (default is 0)&lt;br /&gt;
        #sync(0);&lt;br /&gt;
&lt;br /&gt;
        # the number of lines fitting in the output queue&lt;br /&gt;
        log_fifo_size(2048);&lt;br /&gt;
&lt;br /&gt;
        # enable or disable directory creation for destination files&lt;br /&gt;
        create_dirs(yes);&lt;br /&gt;
&lt;br /&gt;
        # default owner, group, and permissions for log files&lt;br /&gt;
        # (defaults are 0, 0, 0600)&lt;br /&gt;
        #owner(root);&lt;br /&gt;
        group(adm);&lt;br /&gt;
        perm(0640);&lt;br /&gt;
&lt;br /&gt;
        # default owner, group, and permissions for created directories&lt;br /&gt;
        # (defaults are 0, 0, 0700)&lt;br /&gt;
        #dir_owner(root);&lt;br /&gt;
        #dir_group(root);&lt;br /&gt;
        dir_perm(0755);&lt;br /&gt;
&lt;br /&gt;
        # enable or disable DNS usage&lt;br /&gt;
        # syslog-ng blocks on DNS queries, so enabling DNS may lead to&lt;br /&gt;
        # a Denial of Service attack&lt;br /&gt;
        # (default is yes)&lt;br /&gt;
        use_dns(no);&lt;br /&gt;
&lt;br /&gt;
        # maximum length of message in bytes&lt;br /&gt;
        # this is only limited by the program listening on the /dev/log Unix&lt;br /&gt;
        # socket, glibc can handle arbitrary length log messages, but -- for&lt;br /&gt;
        # example -- syslogd accepts only 1024 bytes&lt;br /&gt;
        # (default is 2048)&lt;br /&gt;
        #log_msg_size(2048);&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
######&lt;br /&gt;
# sources&lt;br /&gt;
&lt;br /&gt;
# all known message sources&lt;br /&gt;
source s_all {&lt;br /&gt;
        # message generated by Syslog-NG&lt;br /&gt;
        internal();&lt;br /&gt;
        # standard Linux log source (this is the default place for the syslog()&lt;br /&gt;
        # function to send logs to)&lt;br /&gt;
        unix-stream(&quot;/dev/log&quot;);&lt;br /&gt;
        # messages from the kernel&lt;br /&gt;
        file(&quot;/proc/kmsg&quot; log_prefix(&quot;kernel: &quot;));&lt;br /&gt;
        # use the above line if you want to receive remote UDP logging messages&lt;br /&gt;
        # (this is equivalent to the &quot;-r&quot; syslogd flag)&lt;br /&gt;
        # udp();&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
######&lt;br /&gt;
# destinations&lt;br /&gt;
&lt;br /&gt;
# some standard log files&lt;br /&gt;
destination df_auth { file(&quot;/var/log/auth.log&quot;); };&lt;br /&gt;
destination df_syslog { file(&quot;/var/log/syslog&quot;); };&lt;br /&gt;
destination df_cron { file(&quot;/var/log/cron.log&quot;); };&lt;br /&gt;
destination df_daemon { file(&quot;/var/log/daemon.log&quot;); };&lt;br /&gt;
destination df_kern { file(&quot;/var/log/kern.log&quot;); };&lt;br /&gt;
destination df_lpr { file(&quot;/var/log/lpr.log&quot;); };&lt;br /&gt;
destination df_mail { file(&quot;/var/log/mail.log&quot;); };&lt;br /&gt;
destination df_user { file(&quot;/var/log/user.log&quot;); };&lt;br /&gt;
destination df_uucp { file(&quot;/var/log/uucp.log&quot;); };&lt;br /&gt;
&lt;br /&gt;
destination df_firewall { file(&quot;/var/log/firewall/firewall.log&quot;); };&lt;br /&gt;
destination df_pureftpd { file(&quot;/var/log/pure-ftpd/ftp.log&quot;); };&lt;br /&gt;
destination df_spamd { file(&quot;/var/log/spam/spam.log&quot;); };&lt;br /&gt;
destination df_ssh { file(&quot;/var/log/ssh/ssh.log&quot;); };&lt;br /&gt;
&lt;br /&gt;
# these files are meant for the mail and news systems log files&lt;br /&gt;
# and provide re-usable destinations for {mail,news,...}.info,&lt;br /&gt;
# {mail,news,...}.notice, etc.&lt;br /&gt;
destination df_facility_dot_info { file(&quot;/var/log/$FACILITY.info&quot;); };&lt;br /&gt;
destination df_facility_dot_notice { file(&quot;/var/log/$FACILITY.notice&quot;); };&lt;br /&gt;
destination df_facility_dot_warn { file(&quot;/var/log/$FACILITY.warn&quot;); };&lt;br /&gt;
destination df_facility_dot_err { file(&quot;/var/log/$FACILITY.err&quot;); };&lt;br /&gt;
destination df_facility_dot_crit { file(&quot;/var/log/$FACILITY.crit&quot;); };&lt;br /&gt;
&lt;br /&gt;
# some more classical and useful files found in standard syslog configurations&lt;br /&gt;
destination df_debug { file(&quot;/var/log/debug&quot;); };&lt;br /&gt;
destination df_messages { file(&quot;/var/log/messages&quot;); };&lt;br /&gt;
&lt;br /&gt;
# pipes&lt;br /&gt;
# a console to view log messages under X&lt;br /&gt;
destination dp_xconsole { pipe(&quot;/dev/xconsole&quot;); };&lt;br /&gt;
&lt;br /&gt;
# consoles&lt;br /&gt;
# this will send messages to everyone logged in&lt;br /&gt;
destination du_all { usertty(&quot;*&quot;); };&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
######&lt;br /&gt;
# filters&lt;br /&gt;
&lt;br /&gt;
# all messages from the auth and authpriv facilities&lt;br /&gt;
filter f_auth { facility(auth, authpriv); };&lt;br /&gt;
&lt;br /&gt;
# all messages except from the auth and authpriv facilities&lt;br /&gt;
filter f_syslog { not facility(auth, authpriv) and not match(&quot;.*IN=.*OUT=.*MAC=.*&quot;)  and not match(&quot;## Identd ## &quot;) and not match(&quot;pure-ftpd&quot;) and not match(&quot;spamd&quot;); };&lt;br /&gt;
&lt;br /&gt;
# respectively: messages from the cron, daemon, kern, lpr, mail, news, user,&lt;br /&gt;
# and uucp facilities&lt;br /&gt;
filter f_cron { facility(cron); };&lt;br /&gt;
filter f_daemon { facility(daemon); };&lt;br /&gt;
filter f_kern { facility(kern) and not match(&quot;.*IN=.*OUT=.*MAC=.*&quot;)  and not match(&quot;## Identd ## &quot;) and not match(&quot;pure-ftpd&quot;) and not match(&quot;spamd&quot;); };&lt;br /&gt;
filter f_lpr { facility(lpr); };&lt;br /&gt;
filter f_mail { facility(mail); };&lt;br /&gt;
filter f_news { facility(news); };&lt;br /&gt;
filter f_user { facility(user); };&lt;br /&gt;
filter f_uucp { facility(uucp); };&lt;br /&gt;
&lt;br /&gt;
# some filters to select messages of priority greater or equal to info, warn,&lt;br /&gt;
# and err&lt;br /&gt;
# (equivalents of syslogd's *.info, *.warn, and *.err)&lt;br /&gt;
filter f_at_least_info { level(info..emerg); };&lt;br /&gt;
filter f_at_least_notice { level(notice..emerg); };&lt;br /&gt;
filter f_at_least_warn { level(warn..emerg); };&lt;br /&gt;
filter f_at_least_err { level(err..emerg); };&lt;br /&gt;
filter f_at_least_crit { level(crit..emerg); };&lt;br /&gt;
&lt;br /&gt;
# all messages of priority debug not coming from the auth, authpriv, news, and&lt;br /&gt;
# mail facilities&lt;br /&gt;
filter f_debug { level(debug) and not facility(auth, authpriv, news, mail); };&lt;br /&gt;
&lt;br /&gt;
# all messages of info, notice, or warn priority not coming form the auth,&lt;br /&gt;
# authpriv, cron, daemon, mail, and news facilities&lt;br /&gt;
filter f_messages {&lt;br /&gt;
        level(info,notice,warn)&lt;br /&gt;
            and not facility(auth,authpriv,cron,daemon,mail,news)and not match (&quot;.*IN=.*OUT=.*MAC=.*&quot;) and not match (&quot;pure-ftpd*&quot;) and not match(&quot;spamd*&quot;) and not match(&quot;syslog-ng*:*STATS:*dropped&quot;); };&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# messages with priority emerg&lt;br /&gt;
filter f_emerg { level(emerg); };&lt;br /&gt;
&lt;br /&gt;
# complex filter for messages usually sent to the xconsole&lt;br /&gt;
filter f_xconsole {&lt;br /&gt;
    facility(daemon,mail)&lt;br /&gt;
        or level(debug,info,notice,warn)&lt;br /&gt;
        or (facility(news)&lt;br /&gt;
                and level(crit,err,notice));&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
filter f_iptables { match(&quot;.*IN=.*OUT=.*MAC=.*&quot;); };&lt;br /&gt;
filter f_pureftpd { match(&quot;pure-ftpd*&quot;); };&lt;br /&gt;
filter f_spamd { match(&quot;spamd*&quot;); };&lt;br /&gt;
filter f_ssh { match(&quot;sshd*&quot;); };&lt;br /&gt;
&lt;br /&gt;
######&lt;br /&gt;
# logs&lt;br /&gt;
# order matters if you use &quot;flags(final);&quot; to mark the end of processing in a&lt;br /&gt;
# &quot;log&quot; statement&lt;br /&gt;
&lt;br /&gt;
# these rules provide the same behavior as the commented original syslogd rules&lt;br /&gt;
&lt;br /&gt;
# auth,authpriv.*                 /var/log/auth.log&lt;br /&gt;
log {&lt;br /&gt;
        source(s_all);&lt;br /&gt;
        filter(f_auth);&lt;br /&gt;
        destination(df_auth);&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
# *.*;auth,authpriv.none          -/var/log/syslog&lt;br /&gt;
log {&lt;br /&gt;
        source(s_all);&lt;br /&gt;
        filter(f_syslog);&lt;br /&gt;
        destination(df_syslog);&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
# this is commented out in the default syslog.conf&lt;br /&gt;
# cron.*                         /var/log/cron.log&lt;br /&gt;
#log {&lt;br /&gt;
#        source(s_all);&lt;br /&gt;
#        filter(f_cron);&lt;br /&gt;
#        destination(df_cron);&lt;br /&gt;
#};&lt;br /&gt;
&lt;br /&gt;
# daemon.*                        -/var/log/daemon.log&lt;br /&gt;
log {&lt;br /&gt;
        source(s_all);&lt;br /&gt;
        filter(f_daemon);&lt;br /&gt;
        destination(df_daemon);&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
# kern.*                          -/var/log/kern.log&lt;br /&gt;
log {&lt;br /&gt;
        source(s_all);&lt;br /&gt;
        filter(f_kern);&lt;br /&gt;
        destination(df_kern);&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
# lpr.*                           -/var/log/lpr.log&lt;br /&gt;
log {&lt;br /&gt;
        source(s_all);&lt;br /&gt;
        filter(f_lpr);&lt;br /&gt;
        destination(df_lpr);&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
# mail.*                          -/var/log/mail.log&lt;br /&gt;
log {&lt;br /&gt;
        source(s_all);&lt;br /&gt;
        filter(f_mail);&lt;br /&gt;
        destination(df_mail);&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
# user.*                          -/var/log/user.log&lt;br /&gt;
log {&lt;br /&gt;
        source(s_all);&lt;br /&gt;
        filter(f_user);&lt;br /&gt;
        destination(df_user);&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
# uucp.*                          /var/log/uucp.log&lt;br /&gt;
log {&lt;br /&gt;
        source(s_all);&lt;br /&gt;
        filter(f_uucp);&lt;br /&gt;
        destination(df_uucp);&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
# mail.info                       -/var/log/mail.info&lt;br /&gt;
log {&lt;br /&gt;
        source(s_all);&lt;br /&gt;
        filter(f_mail);&lt;br /&gt;
        filter(f_at_least_info);&lt;br /&gt;
        destination(df_facility_dot_info);&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
# mail.warn                       -/var/log/mail.warn&lt;br /&gt;
log {&lt;br /&gt;
        source(s_all);&lt;br /&gt;
        filter(f_mail);&lt;br /&gt;
        filter(f_at_least_warn);&lt;br /&gt;
        destination(df_facility_dot_warn);&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
# mail.err                        /var/log/mail.err&lt;br /&gt;
log {&lt;br /&gt;
        source(s_all);&lt;br /&gt;
        filter(f_mail);&lt;br /&gt;
        filter(f_at_least_err);&lt;br /&gt;
        destination(df_facility_dot_err);&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
# news.crit                       /var/log/news/news.crit&lt;br /&gt;
log {&lt;br /&gt;
        source(s_all);&lt;br /&gt;
        filter(f_news);&lt;br /&gt;
        filter(f_at_least_crit);&lt;br /&gt;
        destination(df_facility_dot_crit);&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
# news.err                        /var/log/news/news.err&lt;br /&gt;
log {&lt;br /&gt;
        source(s_all);&lt;br /&gt;
        filter(f_news);&lt;br /&gt;
        filter(f_at_least_err);&lt;br /&gt;
        destination(df_facility_dot_err);&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
# news.notice                     /var/log/news/news.notice&lt;br /&gt;
log {&lt;br /&gt;
        source(s_all);&lt;br /&gt;
        filter(f_news);&lt;br /&gt;
        filter(f_at_least_notice);&lt;br /&gt;
        destination(df_facility_dot_notice);&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# *.=debug;\&lt;br /&gt;
#         auth,authpriv.none;\&lt;br /&gt;
#         news.none;mail.none     -/var/log/debug&lt;br /&gt;
log {&lt;br /&gt;
        source(s_all);&lt;br /&gt;
        filter(f_debug);&lt;br /&gt;
        destination(df_debug);&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# *.=info;*.=notice;*.=warn;\&lt;br /&gt;
#         auth,authpriv.none;\&lt;br /&gt;
#         cron,daemon.none;\&lt;br /&gt;
#         mail,news.none          -/var/log/messages&lt;br /&gt;
log {&lt;br /&gt;
        source(s_all);&lt;br /&gt;
        filter(f_messages);&lt;br /&gt;
        destination(df_messages);&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
# *.emerg                         *&lt;br /&gt;
log {&lt;br /&gt;
        source(s_all);&lt;br /&gt;
        filter(f_emerg);&lt;br /&gt;
        destination(du_all);&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# daemon.*;mail.*;\&lt;br /&gt;
#         news.crit;news.err;news.notice;\&lt;br /&gt;
#         *.=debug;*.=info;\&lt;br /&gt;
#         *.=notice;*.=warn       |/dev/xconsole&lt;br /&gt;
log {&lt;br /&gt;
        source(s_all);&lt;br /&gt;
        filter(f_xconsole);&lt;br /&gt;
        destination(dp_xconsole);&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
# Firewall&lt;br /&gt;
log { &lt;br /&gt;
	source(s_all);&lt;br /&gt;
	filter(f_iptables);&lt;br /&gt;
	destination(df_firewall);&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
# FTP&lt;br /&gt;
log { &lt;br /&gt;
	source(s_all);&lt;br /&gt;
	filter(f_pureftpd);&lt;br /&gt;
	destination(df_pureftpd);&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
# Spam&lt;br /&gt;
log { &lt;br /&gt;
	source(s_all);&lt;br /&gt;
	filter(f_spamd);&lt;br /&gt;
	destination(df_spamd);&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
# SSH&lt;br /&gt;
log { &lt;br /&gt;
	source(s_all);&lt;br /&gt;
	filter(f_ssh);&lt;br /&gt;
	destination(df_ssh);&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Qlq a une solution :o</description>
    </item>  </channel>
</rss>
