letmeind.conf 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. # letmeind daemon configuration.
  2. [GENERAL]
  3. # This config section holds general options.
  4. # Enable debugging.
  5. # This will print verbose syslog messages while modifying the firewall.
  6. #
  7. # Possible values: true, false
  8. debug = true
  9. # The port that letmeind will listen on.
  10. # This is the public internet facing port of the daemon.
  11. #
  12. # Possible values: Any valid TCP/IP port.
  13. port = 5800
  14. # Turn the Linux seccomp feature on.
  15. #
  16. # Possible values: off, log, kill
  17. #
  18. # off: Seccomp turned off.
  19. # log: Seccomp turned off, but access of prohibited syscalls will be logged to syslog.
  20. # kill: Seccomp turned on. Letmeind will be killed if prohibited syscalls are called.
  21. seccomp = off
  22. [NFTABLES]
  23. # This config section holds the nftables firewall configuration.
  24. # nftables chain that letmeinfwd will modity.
  25. family = inet
  26. table = filter
  27. chain-input = LETMEIN-INPUT
  28. # Timeout of installed knock-open rules.
  29. # Knocked-open ports will be closed again this many seconds after the knocking.
  30. timeout = 600
  31. [KEYS]
  32. # This config section holds the table of users with their corresponding keys.
  33. #
  34. # Use command to generate new keys:
  35. # letmein gen-key
  36. # User 00000001:
  37. #00000001 = FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
  38. # User 00000002:
  39. #00000002 = FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
  40. [RESOURCES]
  41. # This config section holds the table of knock-able ports.
  42. # Resource ID '1A' maps to TCP port 2000:
  43. #0000001A = port: 2000
  44. # Resource ID '1B' maps to TCP port 3500:
  45. #0000001B = port: 3500
  46. # A resource can be restricted to one or more users.
  47. # Restricted to users 1 and 2:
  48. #0000001C = port: 4500 / users: 00000001, 00000002
  49. # Restricted to user 1:
  50. #0000001D = port: 5500 / users: 00000001
  51. # Open port 6500 for TCP and UDP.
  52. #0000001E = port: 6500 / tcp,udp