SOCKS-proxy Dante — различия между версиями

Материал из megapuper
Перейти к: навигация, поиск
Строка 3: Строка 3:
 
apt install dante-server
 
apt install dante-server
  
−
---cut---
+
internal: 0.0.0.0 port = 1080
−
internal: 0.0.0.0 port = 1080
+
external: 185.21.9.173
−
external: 185.21.9.173
+
 +
clientmethod: none
 +
socksmethod: username
 +
user.privileged: root
 +
user.notprivileged: nobody
 +
errorlog: /var/log/danted/sockd.errlog
 +
logoutput: /var/log/danted/socksd.log
 +
 +
client pass {
 +
      from: 0.0.0.0/0 to: 0.0.0.0/0
 +
}
 +
 +
socks pass {
 +
      from: 0.0.0.0/0 to: 0.0.0.0/0
  
−
clientmethod: none
+
Modify Dante configuration file to enable logging, here for errors and debug:<br>
−
socksmethod: username
 
−
user.privileged: root
 
−
user.notprivileged: nobody
 
−
errorlog: /var/log/danted/sockd.errlog
 
−
logoutput: /var/log/danted/socksd.log
 
−
 
 
−
client pass {
 
−
    from: 0.0.0.0/0 to: 0.0.0.0/0
 
−
}
 
−
 
 
−
socks pass {
 
−
    from: 0.0.0.0/0 to: 0.0.0.0/0
 
−
---cut---
 
−
 
 
−
Modify Dante configuration file to enable logging, here for errors and debug:
 
 
In case you are receiving errors after configuring log sinks for danted service, like:
 
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
+
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:
+
stop service
−
systemctl daemon-reload
+
edit service config:
−
service danted restart
+
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

Версия 17:10, 11 февраля 2026

https://habr.com/post/354274/

apt install dante-server

internal: 0.0.0.0 port = 1080
external: 185.21.9.173

clientmethod: none
socksmethod: username
user.privileged: root
user.notprivileged: nobody
errorlog: /var/log/danted/sockd.errlog
logoutput: /var/log/danted/socksd.log

client pass {
     from: 0.0.0.0/0 to: 0.0.0.0/0
}

socks pass {
     from: 0.0.0.0/0 to: 0.0.0.0/0

Modify Dante configuration file to enable logging, here for errors and debug:
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