|
NAMEcsocks.conf - Configuration file for csocks libraryDESCRIPTIONcsocks.conf the CSOCKS configuration file (usually is /usr/local/etc/csocks.conf in FreeBSD and /etc/csocks.conf in Linux). You must indicate for all rules:Socks protocol (socks4 or socks5) Destination Address (you can specify entire network) (IPv4 and IPv6) NetMask (IPv4 and IPv6) Destination Port (you can specify "0" for all ports) Destination Address for socks Server and port Protocol (TCP or UDP) Direction (IN for Active connections and OUT for other) socks5 152.33.28.56 255.255.255.0 22 10.253.14.156 1080 TCP OUT Network Rule: socks5 152.33.28.0 255.255.255.0 22 10.253.14.156 1080 TCP OUT IPv6 Rule (only socks5): socks5 fe80::242:3hff:fe54:e7e6 ffff::ffff:ffff:1111:1111 22 fe80::242:3hff:fe54:e4e3 1080 TCP OUT In the csocks.conf you can indicate the username (socks4 and 5) and password (only socks5) used globally. In alternative you can set CSOCKS_USER and CSOCKS_PASSWD environment (in this case the global declarations in csocks.conf are ignored). Remember that inbound connection rule must have a corrispective outbound connection rule, this is necessary for RFC compliant. ENVIRONMENTIn the "csocks.conf" configuration file you can indicate the username (socks4 and 5) and password (only socks5) used globally. In alternative you can set CSOCKS_USER and CSOCKS_PASSWD environment (in this case the global declarations in csocks.conf are ignored).EXAMPLEThis is a simple "csocks.conf" file:credential for socks5 (only user for socks4) # CSOCKS_USER charlie CSOCKS_PASSWD passwd # scocks_version host mask port socks_server port_socks_server protocol direction # directions: IN for BIND connections, OUT for CONNECT connections # NB: The BIND connections required 2 rules, one for BIND and one for CONNECT. socks5 10.10.0.20 255.255.255.0 21 10.10.0.21 1080 TCP OUT socks5 10.10.0.20 255.255.255.0 21 10.10.0.21 1080 TCP IN NOTEThe SOCKS5/GSSAPI aren't implemented in the current version.COPYRIGHTRaffaele De Lorenzo (raffaele.delorenzo@libero.it) (http://csocks.altervista.org)SEE ALSOcsocks(1)
Visit the GSP FreeBSD Man Page Interface. |