Skip to content

Instantly share code, notes, and snippets.

@grammy-jiang
Last active March 7, 2020 12:50
Show Gist options
  • Save grammy-jiang/1149ccade81fe73d3c42be303ba1eaa1 to your computer and use it in GitHub Desktop.
Save grammy-jiang/1149ccade81fe73d3c42be303ba1eaa1 to your computer and use it in GitHub Desktop.
/etc/default/knockd on Raspberry Pi, refer to https://linux.die.net/man/1/knockd
# control if we start knockd at init or not
# 1 = start
# anything else = don't start
# PLEASE EDIT /etc/knockd.conf BEFORE ENABLING
START_KNOCKD=1
# command line options
KNOCKD_OPTS="--interface eth0"
@grammy-jiang
Copy link
Author

grammy-jiang commented Mar 7, 2020

For Raspbian and Ubuntu 18.04 of Raspberry Pi, the default ethernet interface name is eth0, which is listened by knockd.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment