当前位置: 首页 > 图文教程 > 服务器 > Linux服务器 > DebianLinux系统Socks5服务器安装方法

Linux服务器
在虚拟机RedhatLinux下安装Samba服务器
Linux系统下服务器硬件检查和文件传输
LinuxFtp服务器搭建支持Anonymous读写
Linux操作系统下Vsftp配置使用详细解析
Linux服务器的常用备份方法
SUSELinuxsubversion服务器自启动
RHEL下DHCP服务的配置与应用
linux自带的MAIL客户端用法
用NFS服务开发ARMLinux程序的方法
新手学堂:在Linux系统下mail命令的测试
UbuntuLinux系统下ApacheSSL配置方法
为Solaris服务器配置开源安全工具(下)
在Linux系统环境下配置WU-FTP服务器
Redhatlinux自动FTP传送备份
UbuntuLinux6.06LTS下安装Samba服务
在Centos5安装配置VNC的方法详细介绍
FedoraLinux8配置SAMBA服务的过程
Linux下成功安装和配置Sock5代理过程
实用技巧:Linux系统服务器快速登录
UbuntuServer系统用户安全优化方法

Linux服务器 中的 DebianLinux系统Socks5服务器安装方法


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-10-18   浏览: 41 ::
收藏到网摘: n/a

[1]下载

http://www.haikuo.googlepages.com/socks5-v1.0r11.patched.tgz

[2]编译

$./configure——with-threads——with-srvconffile=/etc/socks5/config——with-srvpwdfile=/etc/socks5/passwd

$make

[3]安装

$sudomakeserver.install

[4]配置

$vim/etc/socks5/config

###Asocks5Configfiletousebetween2servers,usingaVPN

#

#authsource-hostsource-portauth-methods

#permitauthcmdsrc-hostdest-hostsrc-portdest-port[user-list]

#denyauthcmdsrc-hostdest-hostsrc-portdest-port[user-list]

#Proxylinesareoftheform:

#proxy-typedest-hostdest-portproxy-list

#socks4dest-hostdest-portproxy-list

#socks5dest-hostdest-portproxy-list

#noproxydest-hostdest-portproxy-list

#setSOCKS5_BINDINFC9301

#SOCKS4

setSOCKS5_V4SUPPORT

#

setSOCKS5_MAXCHILD30

#

setSOCKS5_TIMEOUT15

setSOCKS5_NOIDENT

setSOCKS5_DEMAND_IDENT

#

#setSOCKS5_PWDFILE/etc/socks5.pwd

#用户认证方式

auth--u

#允许所有IP的用户

permitu------

#若限制某个IP段(192.168.0.0/255.255.255.0)可访问

#permit--192.168.0.---

#若限制某个IP(192.168.0.10)可访问

#permit--192.168.0.10---

deny------

#级连

#socks4--202.110.217.75:1080

#socks5--61.167.58.77:1080

然后是密码文件

$vim/etc/socks5/passwd

#userApasswd

userApassA

[5]启动服务

确定你的/etc/services文件中有包含socks的描述,否则就手动加入

$vim/etc/services

socks1080/tcp#socksproxyserver

socks1080/udp

服务采用inetd的方式

在/etc/inetd.conf中加入

$vim/etc/inetd.conf

#socks5server

socks5streamtcpnowaitroot/usr/local/bin/socks5socks5-i

重启inetd

$sudo/etc/init.d/inetdrestart

现在,一个socks5的服务就启动了。