Closed darius-khll closed 6 years ago
https://github.com/schors/tgdante2/blob/master/dante/files/conf/dante.conf
make like this:
#logging
logoutput: stderr
#debug: 1
#server address specification
internal: 0.0.0.0 port = 1080
external: eth0
#server identities (not needed on solaris)
user.privileged: root
user.notprivileged: nobody
#authentication methods
clientmethod: none
socksmethod: username
# allow any client connection
client pass {
from: 0.0.0.0/0 port 1-65535 to: 0.0.0.0/0
log: connect disconnect error
}
# deny proxied to lo
socks block {
from: 0.0.0.0/0 to: 127.0.0.0/8
log: error
}
# deny binding
socks block {
from: 0.0.0.0/0 to: 0.0.0.0/0
command: bind
log: error
}
socks pass {
from: 0.0.0.0/0 to: 0.0.0.0/0
log: connect disconnect error
socksmethod: username
}
and https://github.com/schors/tgdante2/blob/master/dante/files/conf/dante6.conf same:
#logging
logoutput: stderr
#debug: 1
#server address specification
internal: 0.0.0.0 port = 1080
internal: :: port = 1080
external: eth0
#server identities (not needed on solaris)
user.privileged: root
user.notprivileged: nobody
#authentication methods
clientmethod: none
socksmethod: username
# allow any client connection
client pass {
from: 0/0 port 1-65535 to: 0/0
log: connect disconnect error
}
# deny proxied to lo
socks block {
from: 0.0.0.0/0 to: 127.0.0.0/8
log: error
}
socks block {
from: ::/0 to: ::1/128
log: error
}
# deny binding
socks block {
from: 0/0 to: 0/0
command: bind
log: error
}
#91.108.4.0/22
#91.108.8.0/22
#91.108.12.0/22
#91.108.16.0/22
#91.108.56.0/22
#91.108.56.0/23
#91.108.56.0/24
#149.154.160.0/20
#149.154.160.0/22
#149.154.164.0/22
#149.154.168.0/22
#149.154.168.0/23
#149.154.170.0/23
socks pass {
from: 0.0.0.0/0 to: 0.0.0.0/0
log: connect disconnect error
socksmethod: username
}
socks pass {
from: ::/0 to: ::/0
log: connect disconnect error
socksmethod: username
}
@MeGaPk
What about "reverse socks5 proxy", using route
Dante command (or other method)?
Is it possible to create socks5 server using this image to proxy request to another socks5 proxy server, passing credentials from first server to second?
Thanks.
@Kylmakalle i don't know :) I don't use dante unfortunately.
But understood dante config for @Alikhll :)
Thanks, it makes sense
This docker image just has used for telegram, How can I use this for another stuff instead of telegram application, I just can do curl telegram and nothing else, is there any config to disable this restriction?