socks5.passwd.5
上传用户:sddyfurun
上传日期:2007-01-04
资源大小:525k
文件大小:2k
源码类别:

代理服务器

开发平台:

Unix_Linux

  1. .TH socks5.passwd 5 "02 May 1997"
  2. .SH NAME
  3. .HP 16
  4. socks5.passwd - Contains usernames and passwords to authorize users in the socks5 environment
  5. .SH SYNOPSIS
  6. socks5 usually reads the password file, socks5.passwd, in the /etc directory. When you configure and build socks5 with the
  7. .PP
  8. .RS 5
  9. --with-srvpwdfile=pathname
  10. .RE
  11. .PP
  12. option, you can change the directory. Under FreeBSD's UNIX port, the password file resides in /usr/local/etc/socks5.passwd. 
  13. .PP
  14. You can set the password file location with the option or the SOCKS5_PWDFILE environment variable. See the socks5.conf(5) man page for a complete list of environment variables.
  15. .SH DESCRIPTION
  16. To enable Username/Password authentication with the socks5 daemon you must create a password file, and modify the socks5 configuration file, socks5.conf.
  17. .PP
  18. In the password file, add one line for each user. Each line should contain the username and password for the user, separated by white space. 
  19. In the socks5 configuration file, add an auth line and a permit line to require authentication and allow the user access. For additional information about the socks5 configuration file, refer to the socks5.conf(5) man page.
  20. .PP
  21. Adding Username/Password authentication to socks5 requires 3 steps:
  22. .RS 5
  23. .HP 3
  24. 1. Create the password file with one entry per line. To create an entry for the user named joe, whose password is secret, add this line to the socks.passwd file: 
  25. .RS 8
  26. joe secret 
  27. .RE
  28. .HP 3
  29. 2. Edit the auth and permit lines in the configuration file to require Username/Password authentication. The configuration file may contain auth lines such as: 
  30. .RS 8
  31. auth - - -
  32. .RE
  33. .PP
  34. .RS 3
  35. To add username and password authentication, change the line to: 
  36. .RS 5
  37. auth - - u
  38. .RE
  39. .PP
  40. To require access permission, edit the permit line in the configuration file. To require access permission for joe, edit the permit line for joe in the configuration file: 
  41. .RS 5
  42. permit u - - - - - joe
  43. .RE
  44. .RE
  45. .RE
  46. .PP
  47. 3. Restart the server.
  48. .SH SOCKS5 Clients
  49. The socks5 client library uses the SOCKS5_USER and SOCKS5_PASSWD environment variables for a user's username and password. Set the username on the client with the SOCKS5_USER environment variable. Set the password on the client with the SOCKS5_PASSWD variable.
  50. .SH SEE ALSO
  51. socks5(1), socks5.conf(5) libsocks.conf(5)
  52. .SH AUTHOR
  53. NWSL SOCKS5 Development Team
  54. .br
  55. Send comments to socks5-comments@socks.nec.com