Skip to content

Instantly share code, notes, and snippets.

@peterblazejewicz
Last active April 15, 2024 09:48
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peterblazejewicz/024cd0e6b3cae977ff39f975c4bc7fe9 to your computer and use it in GitHub Desktop.
Save peterblazejewicz/024cd0e6b3cae977ff39f975c4bc7fe9 to your computer and use it in GitHub Desktop.
How to enable logging in Dante server

Modify Dante configuration file to enable logging, here for errors and debug:

errorlog: /var/log/sockd.errlog
logoutput: /var/log/sockd.log

In case you are receiving errors after configuring log sinks for danted service, like:

alert: configparsing(): could not (re)open logfile "/var/log/socks.log": Read-only file system
  • stop service
  • edit service config:
vim /lib/systemd/system/danted.service
  • add entry to allow writing to /var/log/ directory:
InaccessibleDirectories=...
ReadOnlyDirectories=...
ReadWriteDirectories=/var/log
  • reload service:
systemctl daemon-reload
service danted restart

this will fix issues with write access to logs

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