2018-09-26 22:18:43 +00:00
|
|
|
#!rsc
|
2018-07-05 13:29:26 +00:00
|
|
|
# RouterOS script: global-config
|
2019-01-01 20:19:19 +00:00
|
|
|
# Copyright (c) 2013-2019 Christian Hesse <mail@eworm.de>
|
2018-07-05 13:29:26 +00:00
|
|
|
#
|
|
|
|
# global configuration
|
|
|
|
|
|
|
|
# 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" "";
|
|
|
|
|
2018-10-09 13:46:39 +00:00
|
|
|
# You can send Telegram notifications. Register a bot
|
|
|
|
# and add the token and chat ids here.
|
2018-10-10 08:22:18 +00:00
|
|
|
:global "telegram-tokenid" "";
|
|
|
|
:global "telegram-chatid" "";
|
|
|
|
#:global "telegram-tokenid" "123456:ABCDEF-GHI";
|
|
|
|
#:global "telegram-chatid" "12345678";
|
2018-10-09 13:46:39 +00:00
|
|
|
|
2018-07-05 13:29:26 +00:00
|
|
|
# This defines what backups to generate and what password to use.
|
|
|
|
:global "backup-send-binary" false;
|
|
|
|
:global "backup-send-export" true;
|
2018-12-18 21:48:28 +00:00
|
|
|
:global "backup-cloud" false;
|
2018-07-05 13:29:26 +00:00
|
|
|
:global "backup-password" "v3ry-s3cr3t";
|
|
|
|
|
2018-08-30 09:26:47 +00:00
|
|
|
# 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/";
|
|
|
|
|
2018-10-04 11:56:09 +00:00
|
|
|
# This controls what configuration is activated by bridge-port-to-default.
|
|
|
|
:global "bridge-port-to" "default";
|
|
|
|
|
2018-10-09 12:12:38 +00:00
|
|
|
# Access-list entries matching this comment are updated
|
|
|
|
# with daily pseudo-random PSK.
|
2018-07-05 13:29:26 +00:00
|
|
|
:global "daily-psk-match-comment" "Daily PSK";
|
2018-10-09 12:12:38 +00:00
|
|
|
: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" }
|
|
|
|
}
|
2018-07-05 13:29:26 +00:00
|
|
|
|
2018-09-10 20:15:54 +00:00
|
|
|
# Run different commands with multiple mode-button presses.
|
|
|
|
:global "mode-button" {
|
|
|
|
1="/ system script run leds-toggle-mode;";
|
2018-11-27 13:08:14 +00:00
|
|
|
2=":global SendNotification; :global identity; \$SendNotification (\"Hello...\") (\"Hello world, \" . \$identity . \" calling!\");";
|
2018-11-13 09:17:56 +00:00
|
|
|
3="/ system shutdown;";
|
|
|
|
4="/ system reboot;";
|
|
|
|
5="/ system script run bridge-port-toggle;";
|
2018-09-13 20:25:38 +00:00
|
|
|
# add more here...
|
2018-09-10 20:15:54 +00:00
|
|
|
};
|
|
|
|
|
2018-09-13 20:05:36 +00:00
|
|
|
# Run commands on SMS action.
|
|
|
|
:global "sms-action" {
|
2018-11-13 09:17:56 +00:00
|
|
|
bridge-port-toggle="/ system script run bridge-port-toggle;";
|
2018-11-13 09:20:45 +00:00
|
|
|
reboot="/ system reboot;";
|
|
|
|
shutdown="/ system shutdown;";
|
2018-09-13 20:05:36 +00:00
|
|
|
# add more here...
|
2018-10-04 11:32:21 +00:00
|
|
|
};
|
2018-09-13 20:05:36 +00:00
|
|
|
|
2018-07-05 13:29:26 +00:00
|
|
|
# This address should resolve ntp servers and is used to update
|
|
|
|
# ntp settings. A pool can rotate servers.
|
|
|
|
:global "ntp-pool" "pool.ntp.org";
|
|
|
|
|
2018-08-06 12:21:55 +00:00
|
|
|
# This is the address used to send gps data to.
|
|
|
|
:global "gps-track-url" "https://example.com/index.php";
|
|
|
|
|
2018-07-09 14:05:04 +00:00
|
|
|
# Enable this to fetch scripts from given url.
|
2018-07-09 20:59:16 +00:00
|
|
|
:global "script-updates-fetch" true;
|
2018-07-09 14:05:04 +00:00
|
|
|
:global "script-updates-baseurl" "https://git.eworm.de/cgit.cgi/routeros-scripts/plain/";
|
2018-07-09 15:06:17 +00:00
|
|
|
#: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/";
|
2018-08-27 09:15:03 +00:00
|
|
|
:global "script-updates-urlsuffix" "";
|
2018-10-09 11:32:45 +00:00
|
|
|
:global "script-updates-ignore" {
|
|
|
|
"global-config"
|
|
|
|
}
|
2018-07-09 14:05:04 +00:00
|
|
|
|
2018-12-20 14:55:40 +00:00
|
|
|
# Use this for certificate auto-renew
|
|
|
|
:global "cert-renew-url" "";
|
|
|
|
#:global "cert-renew-url" "https://example.com/certificates/";
|
|
|
|
:global "cert-renew-pass" "v3ry-s3cr3t";
|
|
|
|
|
2019-01-02 10:25:45 +00:00
|
|
|
# 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";
|
|
|
|
|
2018-07-05 13:29:26 +00:00
|
|
|
# Do *NOT* change these!
|
2018-08-30 06:18:17 +00:00
|
|
|
:global "sent-routeros-update-notification" "-";
|
2018-12-14 22:04:18 +00:00
|
|
|
:global "sent-lte-firmware-update-notification" "-";
|
2018-07-05 13:29:26 +00:00
|
|
|
:global "identity" [ / system identity get name ];
|
2018-10-09 11:12:08 +00:00
|
|
|
/ system script run global-functions;
|