DANTE.CONF(5)
β¨ NAME β¨
dante.conf β the socks client configuration file syntax, bestie π
(aka page 5 of the File Formats Manual, in case you were wondering where to look π)
π¦ DESCRIPTION π¦
So the configuration file for the socks client library is literally how you control logging and which server gets picked. That's it, that's the whole vibe. It's split into two parts: global settings and routes.
Oh and btw, any line can be commented out using the standard comment character # β go ahead, silence it, she deserves a break π
πΈ FORMAT πΈ
The global settings are giving keyword + colon + value. Very demure. Very mindful.
debugβ set this field to1and boom, debugging is turned on π₯logoutputβ controls where the client library sends its logoutput. Can besyslog,stdout,stderr, a filename, or honestly a combination of them. The default is no logging at all. Heads up tho: the valuesyslogmay conflict with the program being socksified if that program also usessyslogπresolveprotocolβ the protocol used to resolve hostnames. Valid values areudp,tcpandfake. The default isudp.route.badexpireβ how long the "bad" marking of a route should remain set before it is removed. Default is300seconds.route.maxfailβ how many times a route can fail before it gets marked as bad. Default is1.timeout.connectβ the number of seconds the client will wait for a connect to the proxy server to complete. The default is0, indicating the client should use the system's default.
π ROUTES π
Routes are specified with a route keyword. Inside a pair of parenthesis ({}) a set of keywords control the behavior of the route. Each route can contain three address specifications: from, to and via. A route is selected for a connection based on the values within the route block. It's giving casting call, honestly π
When searching for a route to match the client's request, the library will first look for a direct route. Then for a socks_v4 route, a socks_v5 route, a http route, and lastly for a upnp route. Order matters, bestie, it's a whole line-up π
Depending on how the library is configured and environment variables set (see the manual for socksify(1)), there may or may not be an automatic fallback to an auto-generated direct route if no other route is found. So likeβ¦ don't just assume, okay? π
The route block can contain the following:
π ADDRESSES π
Each address field can consist of a IP-address (and where meaningful, a netmask, separated from the IP-address by a '/' sign.), a hostname, a domainname (designated by the leading '.'), or an interfacename (where meaningful). Each address can also be followed by a optional port specifier. Flexible queen π
fromβ the route is used only by requests coming from the address given as value.toβ the route is used only by requests going to the address given as value.viaβ address of the proxy server that should be used as a gateway for the connection, or the special valuedirectto indicate the connection should be direct rather than go via any proxy server.
In the case of upnp, the address can also be the name of the interface to use for discovering the upnp controlpoint, if the full url for the IGD is not yet known, or the special value broadcast to indicate the client should broadcast for an upnp-router on all available network interfaces. Main character behavior, no cap π‘
portβ parameter tofrom,toandvia. Accepts the keywordseq/=,ne/!=,ge/>=,le/<=,gt/>,lt/<followed by a number. A portrange can also be given asport <start #> - <end #>, which will match all port numbers within the range<start #>and<end #>.
β¨ Options β¨
clientcompatibilityβ enables certain options for compatibility with broken servers. Valid values are:necgssapi, for compatibility with servers implementing gssapi the NEC socks way. Yes we're being nice to the broken ones πcommandβ the server supports the given commands. Valid commands arebind,bindreply,connect,udpassociateandudpreply. The default is all commands supported by the protocols set for the route.
Can be used instead of, or to complement, protocol.
gssapi.enctypeβ which encryption to enforce for GSSAPI-authenticated communication. Possible values areclear,integrity, orconfidentiality. The default is to try for confidentially, but accept whatever the server offers exceptclear, asclearis not part of the SOCKS GSSAPI standard.gssapi.servicenameβ which servicename to use when involving GSSAPI. Default is"rcmd".methodβ list of authentication methods the client supports and which to offer the server. Currently supported values arenone,gssapi, andusername. The default is all supported methods.protocolβ the protocols the server supports. Supported values aretcpandudp. The default is all supported protocols.proxyprotocolβ the proxy protocols the server supports. Currently supported values aresocks_v4,socks_v5,http, andupnp. The default issocks_v4andsocks_v5. Note that if the socks server requires any form of authentication, you need to explicitly set this tosocks_v5, as v4 does not support authentication. β οΈ literally write it down.
π EXAMPLES π
See the example directory in the distribution. (Yes bestie, that's the whole section, go look at the files π)
π ENVIRONMENT π
SOCKS_USERNAMEβ use the value ofSOCKS_USERNAMEas the username when doing username authentication.SOCKS_PASSWORDβ use the value ofSOCKS_PASSWORDas the password when doing username authentication. Not recommended as other users on the system might be able to see your password. π¨ girly pop please, don't do this one.SOCKS_AUTOADD_LANROUTESβ if this variable is set to"no", the client will not try to auto-add direct routes for all addresses on the LAN. The default is to add them.SOCKS_DISABLE_THREADLOCKβ if this variable is set, the client will not perform threadlocking. The default is for the client to attempt to figure out for itself whether the application to socksify needs threadlocking or not.
Some additional environment variables are documented in socksify(1).
π FILES π
/etc/dante.conf
π«Ά AUTHORS π«Ά
For inferno Nettverk A/S:
- Michael Shuldman
- Karl-Andre' Skevik
β SEE ALSO β
socksify(1), danted(8), danted.conf(5)
Information about new releases and other related issues can be found on the Dante WWW home page: http://www.inet.no/dante/
π BUGS π
See the accompanying BUGS file. New ones should be reported to dante-bugs@inet.no.
okay that's the whole page, you ate that π
Signing off with love: this was the DANTE.CONF(5) page from the File Formats Manual, dated July 29 2013 β yes it's an old queen but she still serves β¨π
π¦ where this page comes from
- ubuntu noble: dante-client 1.4.3+dfsg-1 Β· BSD-3-clause-Inferno
- ubuntu questing: dante-client 1.4.3+dfsg-3.1build1
- ubuntu resolute: dante-client 1.4.4+dfsg-1build1 Β· BSD-3-clause-Inferno
- ubuntu stonking: dante-client 1.4.4+dfsg2-1build1 Β· BSD-3-clause-Inferno
- Copyright (c) 1997, 1998, 1999, 2000, 2001, 2003, 2005, 2008, 2009, 2010 2011, 2012, 2013
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms