GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
CSOCKS.CONF(5) FreeBSD File Formats Manual CSOCKS.CONF(5)

csocks.conf - Configuration file for csocks library

csocks.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.

In 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).

This 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

The SOCKS5/GSSAPI aren't implemented in the current version.

Raffaele De Lorenzo (raffaele.delorenzo@libero.it) (http://csocks.altervista.org)

csocks(1)

Version 1.5 - January 5 2008

Search for    or go to Top of page |  Section 5 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.