[Linuxtrent] Re: Shorewall e ISP multipli

  • From: Mauro Colorio <mauro.colorio@xxxxxxxxx>
  • To: linuxtrent@xxxxxxxxxxxxx
  • Date: Mon, 28 May 2012 10:01:28 +0200

> It's method of determining whether an interface is up or down is
> crude. You will normally specify the default gateway for each provider
> as the sites to ping and being able to ping the default gateway is not
> a surefire indication that the provider is usable. The method of
> determining whether a site is up or down is also crude.
> "

in effetti anche lo stesso autore preferisce ed usa per shorewall.net
lsm, ma è veramente poco documentato,
comunque lsm ha un metodo per filtrare i falsi positivi:

LSM keeps track of
1) the result of the most recent pings (up to 100)
2) the number of consecutive lost pings.
3) the number of consecutive received pings.

Let A == the number of recently lost pings
Let B == the number of consecutive lost pings
Let C == the number of consecutive returned pings

If connection (or group) is UP AND ( (A >= max_packet_loss) OR (B >=
max_successive_pkts_lost) then change the connection (or group) to
down.

Else If connection (or group) is DOWN AND ( (A <= min_packet_loss) AND
(C > min_successive_pkts_rcved) ) then change the connection (or
group) to up.

ci provo :)

ciao
Mauro
--
Per iscriversi  (o disiscriversi), basta spedire un  messaggio con OGGETTO
"subscribe" (o "unsubscribe") a mailto:linuxtrent-request@xxxxxxxxxxxxx


Other related posts: