blob: b77336c89bec3debdbe35531748ca8d44713a732 (
about) (
plain) (
blame)
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
|
#!rsc
# RouterOS script: global-config
# Copyright (c) 2013-2019 Christian Hesse <mail@eworm.de>
#
# global configuration
# Make sure all configuration properties are up to date and this
# value is in sync with value in script 'global-functions'!
:global GlobalConfigVersion 0;
# This is used for DNS and backup file.
:global "domain" "example.com";
:global "hostname-in-zone" true;
# These addresses are used to send e-mails to. The to-addresses need
# to be filled, cc-addresses can be empty, one address or a comma
# separated list of addresses.
:global "email-general-to" "mail@example.com";
:global "email-general-cc" "another@example.com";
:global "email-backup-to" "mail@example.com";
:global "email-backup-cc" "";
# You can send Telegram notifications. Register a bot
# and add the token and chat ids here.
:global "telegram-tokenid" "";
:global "telegram-chatid" "";
#:global "telegram-tokenid" "123456:ABCDEF-GHI";
#:global "telegram-chatid" "12345678";
# This defines what backups to generate and what password to use.
:global "backup-send-binary" false;
:global "backup-send-export" true;
:global "backup-cloud" false;
:global "backup-password" "v3ry-s3cr3t";
# Specify an address to enable auto update to version assumed safe.
# The configured channel (bugfix, current, release-candidate) is appended.
:global "safe-update-url" "";
#:global "safe-update-url" "https://example.com/ros/safe-update/";
# This controls what configuration is activated by bridge-port-to-default.
:global "bridge-port-to" "default";
# Access-list entries matching this comment are updated
# with daily pseudo-random PSK.
:global "daily-psk-match-comment" "Daily PSK";
:global "daily-psk-secrets" {
{ "Abusive"; "Aggressive"; "Bored"; "Chemical"; "Cold";
"Cruel"; "Curved"; "Delightful"; "Discreet"; "Elite";
"Evasive"; "Faded"; "Flat"; "Future"; "Grandiose";
"Hanging"; "Humorous"; "Interesting"; "Magenta";
"Magnificent"; "Numerous"; "Optimal"; "Pathetic";
"Possessive"; "Remarkable"; "Rightful"; "Ruthless";
"Stale"; "Unusual"; "Useless"; "Various" };
{ "Adhesive"; "Amusing"; "Astonishing"; "Frantic";
"Kindhearted"; "Limping"; "Roasted"; "Robust";
"Staking"; "Thundering"; "Ultra"; "Unusual" };
{ "Belief"; "Button"; "Curtain"; "Edge"; "Jewel";
"String"; "Whistle" }
}
# Run different commands with multiple mode-button presses.
:global "mode-button" {
1="/ system script run leds-toggle-mode;";
2=":global SendNotification; :global identity; \$SendNotification (\"Hello...\") (\"Hello world, \" . \$identity . \" calling!\");";
3="/ system shutdown;";
4="/ system reboot;";
5="/ system script run bridge-port-toggle;";
# add more here...
};
# Run commands on SMS action.
:global "sms-action" {
bridge-port-toggle="/ system script run bridge-port-toggle;";
reboot="/ system reboot;";
shutdown="/ system shutdown;";
# add more here...
};
# This address should resolve ntp servers and is used to update
# ntp settings. A pool can rotate servers.
:global "ntp-pool" "pool.ntp.org";
# This is the address used to send gps data to.
:global "gps-track-url" "https://example.com/index.php";
# Enable this to fetch scripts from given url.
:global "script-updates-fetch" true;
:global "script-updates-baseurl" "https://git.eworm.de/cgit.cgi/routeros-scripts/plain/";
#:global "script-updates-baseurl" "https://raw.githubusercontent.com/eworm-de/routeros-scripts/master/";
#:global "script-updates-baseurl" "https://gitlab.com/eworm-de/routeros-scripts/raw/master/";
:global "script-updates-urlsuffix" "";
:global "script-updates-ignore" {
"global-config"
}
# Use this for certificate auto-renew
:global "cert-renew-url" "";
#:global "cert-renew-url" "https://example.com/certificates/";
:global "cert-renew-pass" "v3ry-s3cr3t";
# Configuration for update-tunnelbroker
#:global tunnelurl "ipv4.tunnelbroker.net";
#:global tunneluser "user";
#:global tunnelpass "v3ry-s3cr3t";
#:global tunnelid "user-XXX.tunnel.tserv6.fra1.ipv6.he.net";
#:global tunnelint "tunnelbroker";
# Do *NOT* change these!
:global "sent-routeros-update-notification" "-";
:global "sent-lte-firmware-upgrade-notification" "-";
:global "identity" [ / system identity get name ];
/ system script run global-functions;
|