惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

WordPress大学
WordPress大学
T
Threatpost
阮一峰的网络日志
阮一峰的网络日志
美团技术团队
F
Fortinet All Blogs
The GitHub Blog
The GitHub Blog
月光博客
月光博客
V
Visual Studio Blog
T
Tailwind CSS Blog
Stack Overflow Blog
Stack Overflow Blog
博客园 - 聂微东
Jina AI
Jina AI
J
Java Code Geeks
Martin Fowler
Martin Fowler
大猫的无限游戏
大猫的无限游戏
Recorded Future
Recorded Future
C
Check Point Blog
腾讯CDC
N
Netflix TechBlog - Medium
aimingoo的专栏
aimingoo的专栏
罗磊的独立博客
Hacker News: Ask HN
Hacker News: Ask HN
SecWiki News
SecWiki News
博客园 - Franky
Hacker News - Newest:
Hacker News - Newest: "LLM"
N
News | PayPal Newsroom
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
S
Security @ Cisco Blogs
W
WeLiveSecurity
The Last Watchdog
The Last Watchdog
Cloudbric
Cloudbric
F
Full Disclosure
The Cloudflare Blog
Y
Y Combinator Blog
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
Recent Commits to openclaw:main
Recent Commits to openclaw:main
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Google DeepMind News
Google DeepMind News
MongoDB | Blog
MongoDB | Blog
S
Schneier on Security
Schneier on Security
Schneier on Security
Spread Privacy
Spread Privacy
L
LINUX DO - 热门话题
AI
AI
N
News and Events Feed by Topic
T
Tor Project blog
P
Palo Alto Networks Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
H
Hackread – Cybersecurity News, Data Breaches, AI and More
G
Google Developers Blog

博客园 - 房客

用JavaDoc生成项目文档 thymeleaf参考手册 转的一个Java基本功 杂记 修改Esxi克隆的CentOS的IP地址 CentOS上搭建Nginx + Mono 运行 asp.net 启动PPT的时候一直配置vs2013的问题解决 swift 元组 swift 集合类型(二) swift 集合类型(一) swift 定时器的使用 swift UIImage加载远程图片和圆角矩形 swift 随机生成背景颜色 VSFTPD配置TLS/SSL JayProxy的设置 CentOS 安装配置 PPTP VPN 服务器 - 房客 Nginx + fastcgi 处理php 编译安装php5.3.8(含php-fpm) CentOS 安装eaccelerator PHP加速
CentOS搭建socket5代理服务器
房客 · 2015-08-31 · via 博客园 - 房客

1.安装socket5依赖包

yum -y install gcc automake make pam-devel openldap-devel cyrus-sasl-devel

2.下载ss5并安装

下载官网:http://ss5.sourceforge.net/

软件包:http://iweb.dl.sourceforge.net/project/ss5/ss5/3.8.9-6/ss5-3.8.9-6.tar.gz

注意:不要下载最新版ss5-3.8.9-7.tar.gz,这个包安装后布不能启动,报以下错误:

[11/Dec/2012:14:44:50 CST] [INFO] SS5 Version 3.8.9 - Release 7 starting

[11/Dec/2012:14:44:50 CST] [INFO] Copyright (C) 2002-2011 by Matteo Ricchetti - <matteo.ricchetti@libero.it>

[11/Dec/2012:14:44:50 CST] [INFO] Setting dynamic configuration.

[11/Dec/2012:14:44:50 CST] [INFO] Cleaning old configuration.

[11/Dec/2012:14:44:50 CST] [INFO] Loading and validating new configuration.

[11/Dec/2012:14:44:50 CST] [0] [ERRO] $S5LoadConfData$: (No such file or directory).

[11/Dec/2012:14:44:50 CST] [ERRO] Configuration not switched.

root@test:~# tar zxvf ss5-3.8.9-6.tar.gz

root@test:~# cd ss5-3.8.9

root@test:~# ./configure && make && make install

root@test:~# cd /etc/opt/ss5

root@test:/etc/opt/ss5# ls

ss5.conf  ss5.ha  ss5.passwd

ss5.conf配置

#auth    0.0.0.0/0               -               -

去掉注释,改为

auth    0.0.0.0/0               -               u

u:使用ss5.passwd帐号密码登录,-:默认任何人都可使用

#permit -        0.0.0.0/0       -       0.0.0.0/0       -       -       -       -       -

去掉注释:

permit -        0.0.0.0/0       -       0.0.0.0/0       -       -       -       -       -

添加用户名密码

vim ss5.passwd

test test

3. 启动socks服务测试

root@test:~# chmod 777 /etc/rc.d/init.d/ss5

root@test:~# /etc/init.d/ss5 start

如果遇到问题   can't unlink pid file /var/run/ss5/ss5.pid

这是因为已经有ss5在运行,ps -A | grep ss5

kill掉它,再start即可

添加 ss5 到服务中,并随机启动

chkconfig --add ss5

chkconfig ss5 on

这样就可以直接service ss5 restart了,不用指定路径/etc/init.d/ss5

默认是1080端口

改ss5端口,格式为ss5  -b ip地址:端口