1# Copyright (C) 2020, Dirk Krause. All rights reserved. 2# SPDX-License-Identifier: BSD-3-Clause 3 4# Allowed sender address, optional: 5# --------------------------------- 6# - One machine specified by IPv6 address: ::1 7# - One machine specified by IPv4 address: 192.0.2.100 8# - One network specified by IPv4 address/mask: 192.0.2.0/24 9# - Alternatively mask in dotted notation: 192.0.2.0/255.255.255.0 10sender = 192.0.2.100 11 12# Allowed sender port (any if not specified here). 13# ------------------------------------------------ 14sender port = 1234 15 16# Local UDP port we are using. 17# ---------------------------- 18receiver port = 1234 19 20# File containing data to compare against packet contents. 21# -------------------------------------------------------- 22file = /etc/rshdown/secret 23 24# Signal number or case-insensitive name to send to init process 25# -------------------------------------------------------------- 26# Only used if no command specified below. 27# Signal names: hup int quit ill trap abrt iot bus fpe kill usr1 28# segv usr2 pipe alrm term stkflt cld cont stop ttin 29# ttou urg xcpu xfsz vtalrm prof winch poll io pwr sys 30# Alternatively: sighup sigint sigquit ... 31# Signal names are system dependant, not every signal is supported on every 32# system. 33signal = sigpwr 34 35# Command to execute on arrival of shutdown packet 36# ------------------------------------------------ 37# The command is passed to /bin/sh by the system() function. 38# The shutdown command syntax is OS dependant, i.e. on Solaris 39# we would use "shutdown -i0 -g0 -y" instead. 40command = shutdown -h now > /dev/null 2>&1 & 41 42# Syslog facility to use 43# ---------------------- 44# One from: 45# auth authpriv cron daemon ftp kern lpr mail news security syslog user 46# uucp local0 local1 local2 local3 local4 local5 local6 local7 47syslog facility = auth 48 49# Flag: Syslog messages for discarded packets 50# ------------------------------------------- 51debug = off 52 53