零零社区|百姓的网上家园-互动交流平台!(0.0)=^_^=(00社区)

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
热搜: 活动 交友 discuz

Debian Linux系统Socks5服务器安装方法

2013-4-7 10:49| 发布者: 123456000000| 查看: 10| 评论: 0

摘要: 下载 http://www.haikuo.googlepages.com/socks5-v1.0r11.patched.tgz 编译 $ ./configure --with-threads --with-srvconffile=/etc/socks5/config --with-srvpwdfile=/etc/socks5/passwd $ make 安装 $ sudo make ...
 

[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] 安装

$ sudo make server.install

[4] 配置

$ vim /etc/socks5/config

### A socks5 Config file to use between 2 servers, using a VPN

#

# auth source-host source-port auth-methods

# permit auth cmd src-host dest-host src-port dest-port [user-list]

# deny auth cmd src-host dest-host src-port dest-port [user-list]

# PRoxy lines are of the form:

# proxy-type dest-host dest-port proxy-list

# socks4 dest-host dest-port proxy-list

# socks5 dest-host dest-port proxy-list

# noproxy dest-host dest-port proxy-list

# set SOCKS5_BINDINFC 9301

# SOCKS4

set SOCKS5_V4SUPPORT

#

set SOCKS5_MAXCHILD 30

#

set SOCKS5_TIMEOUT 15

set SOCKS5_NOIDENT

set SOCKS5_DEMAND_IDENT

#

# set SOCKS5_PWDFILE /etc/socks5.pwd

# 用户认证方式

auth - - u

# 允许所有ip的用户

permit u - - - - - -

# 若限制某个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

# userA passwd

userA passA

[5] 启动服务

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

$ vim /etc/services

socks 1080/tcp # socks proxy server

socks 1080/udp

服务采用inetd的方式

在 /etc/inetd.conf 中加入

$ vim /etc/inetd.conf

#socks5 server

socks5 stream tcp nowait root /usr/local/bin/socks5 socks5 -i

重启 inetd

$ sudo /etc/init.d/inetd restart

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


路过

雷人

握手

鲜花

鸡蛋

相关阅读

发表评论

最新评论

相关分类


Archiver|手机版|小黑屋|00社区

GMT+8, 2023-1-31 10:50 , Processed in 0.053787 second(s), 18 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

返回顶部