-
Notifications
You must be signed in to change notification settings - Fork 0
/
ampr.ini
65 lines (48 loc) · 1.8 KB
/
ampr.ini
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
58
59
60
61
62
63
64
###
### Written by Diego Molina
### diegoaugustomolina(at)gmail(dot)com
### August 2013
###
## Execute "apmr" without arguments to see full help,
# including help for this file.
# Default options ##########################################
[general]
## Sleep for this number of seconds after completion of each
# group of operations.
REST=0.1
## Wether to initialize or not the routes to each remote
# host
INIT=1
## Default weight for normal paths
NWEIGHT=4
## Default weight for high latency paths
HLWEIGHT=3
## Default options for "pingmon" function
PINGMONOPTS=-C 5 -F 1 -k 0.5 -K 3 -q 0 -U 10 -x 120 -X 6
## If non zero, will run the whole program but will write to
# stdout the 'ip' commands instead of actually executing
# them.
PRETEND=0
## If PRETEND is zero, file to log what otherwise would be
# printed to stdout.
LOGFILE=/var/log/ampr.log
## When non zero, will run interactively and ask where to
# save a troubleshooting report to attach to a bug report.
TROUBLESHOOT=0
# Example of route #########################################
## For each new route you add a section. The header section
# constitutes the next part of "ip route replace" command.
[default scope global src 192.168.1.1]
## In the section add the lines that describe the path. Each
# line is a white-space separated list of the following
# fileds (only the first three are mandatory), in order:
# * <RHOST>: the host to be monitored by "pingmon".
# * <DEV>: argument for "dev" in "nexthop".
# * <VIA>: argument for "via" in "nexthop".
# * <NORMAL_WEIGHT>[,<HLAT_WEIGHT>]: argument for "weight"
# in "nexthop". The <HLAT_WEIGHT> is optional.
# * <PINGMONOPTS>: the rest of the words found on the line
# will be passed to the "pingmon" function
8.8.8.8 eth0 192.168.1.2
## Router 192.168.1.3 has a big latency
4.4.4.4 eth0 192.168.1.3 2,1 -i 5