-
Notifications
You must be signed in to change notification settings - Fork 6
/
pingu.conf
58 lines (44 loc) · 1.12 KB
/
pingu.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
# comments are prefixed with #
# global options. Those can be overidden in the host definition
interval 30
retry 5
required 3
timeout 1.0
# interface definitions
interface eth1 {
# label used by pinguctl
label ISP via eth1
# define a route table to use. If unset it will be picked auto.
# Setting this to 0 means do not manage routes for this interface
# route-table 10
# define the rule priority for policy routing
rule-priority 20000
# minimum hosts online to consider the gateway online
required-hosts-online 1
# execute action when gateway goes up
# gateway-up-action echo "ISP via eth1 is ONLINE"
# execute action when gateway goes down
# gateway-down-action echo "ISP via eth1 is OFFLINE"
# shorthand for setting up a ping host. this is equivalent to define
# a host and bind it to this interface:
# host 8.8.4.4 {
# bind-interface eth1
# }
ping 8.8.4.4
}
interface dummy0 {
label Dummy ISP
}
# host to ping
host 10.65.0.1 {
label My Host
bind-interface eth1
}
host 8.8.8.8 {
label Google public DNS (via eth1)
bind-interface eth1
}
host 192.168.1.5 {
label Dummy Local
bind-interface dummy0
}