SOCKS.CONF(5)

NAME
socks.conf - socks client configuration file syntax

DESCRIPTION
The configuration file for the socks client library allow control over logging and server selection. It is divided into two parts, miscellaneous settings and routes. A line can be commented using the standard comment character #.

FORMAT
The miscellaneous settings have a keyword followed by a colon and the value.

logouput
    This value controls where the sends logoutput. It can be either syslog, stdout, stderr, a filename, or a combination.

debug
    Setting this field to 1 turns on debugging.

ROUTES
The routes are specified with a route keyword.  Inside a pair of
    parens ({}) a set of keywords control the behavior of the route. A route is selected for a connection based on the values within the route block. The route block can contain the following:

ADDRESSES
Each address specification consists of a ipaddress/netmask or a hostname
    and a optional port specifier. Each route can contain three address specifications; from, to and via.

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 socks server to be used for the connection.

port
    Parameter to from, to and via. Accepts the keywords eq/=, neq/!=, ge/>=, le/<=, gt/>, lt/< followed by a number. A portrange can also be given as "port <start #> - <end #>", which will match all port numbers within the range <start #> and <end #>.

protocol
    The protocols the server supports. Currently supported values are tcp and udp.

resolveprotocol
    The protocol used to resolve hostnames. Valid values are udp (default), tcp and fake.

proxyprotocol
    The proxy protocols the server supports. Currently supported values are socks_v4, socks_v5 and msproxy_v2.

method
    List of authentication methods the client supports and which to offer the server. Currently supported values are none and username.

EXAMPLES
See the example directory in the distribution.

FILES
/etc/socks.conf

AUTHORS
For Inferno Nettverk A/S, Norway:
 Michael Shuldman <michaels@inet.no>: Design and implementation.
 Karl-Andre' Skevik <karls@inet.no>: Autoconf and porting.

SEE ALSO
sockd(8)