热门标签 | HotTags
当前位置:  开发笔记 > 运维 > 正文

CentOS下的socks5详细安装配置教程

CentOS下的socks5详细安装配置教程,在CentOS下配置安装socks5代理.SOCKS5协议对于处在内部网络中的机器,需要透过网络中某些可以联通外部Internet的机器访问外部时,有用

1.配置编译环境
yum -y install gcc automake make
2.安装socks5必要的包
yum -y install pam-devel openldap-devel cyrus-sasl-devel
3.下载,编译安装ss5(socks5)
wget http://jaist.dl.sourceforge.net/sourceforge/ss5/ss5-3.6.1-1.tar.gz
tar zxvf ss5-3.6.1-1.tar.gz
cd ss5-3.6.1
./configure
make
make install
#启动ss5服务
/etc/init.d/ss5 start
添加ss5到服务中,并随机启动
chkconfig --add ss5
chkconfig ss5 on
ss5 默认使用1080端口,并允许任何人使用。
我们可以修改 /etc/opt/ss5/ss5.conf 中的
#     SHost       SPort       Authentication
#
auth   0.0.0.0/0           -         -

#     SHost       SPort       Authentication
#
auth   0.0.0.0/0           -         u
在 /etc/opt/ss5/ss5.passwd 中添加 用户名和密码 如:
test test
使用用户验证,重启ss5服务
/etc/init.d/ss5 restart
         
_____________________________________________________________


下面运行代码,没复制全,差不多吧


SS5Mod_socks4.c:705: warning: cast to pointer from integer of different size
gcc -g -O2 -DLINUX -I . -I ../../include -shared -fPIC   -c -o SS5OpenLdap.o S                                                   S5OpenLdap.c
SS5OpenLdap.c: In function \'DirectoryQuery\':
SS5OpenLdap.c:163: warning: assignment makes pointer from integer without a cast
SS5OpenLdap.c:165: warning: cast to pointer from integer of different size
gcc -g -O2 -DLINUX -I . -I ../../include -shared -fPIC   -o mod_socks4.so SS5Mod                                                   _socks4.o SS5OpenLdap.o -lpthread
make[2]: Leaving directory `/root/ss5-3.6.1/modules/mod_socks4\'
make[2]: Entering directory `/root/ss5-3.6.1/modules/mod_socks5\'
gcc -g -O2 -DLINUX -I . -I ../../include -shared -fPIC   -c -o SS5Mod_socks5.o                                                     SS5Mod_socks5.c
SS5Mod_socks5.c: In function \'MethodParsing\':
SS5Mod_socks5.c:68: warning: cast to pointer from integer of different size
SS5Mod_socks5.c:114: warning: cast to pointer from integer of different size
SS5Mod_socks5.c:122: warning: cast to pointer from integer of different size
SS5Mod_socks5.c: In function \'RequestParsing\':
SS5Mod_socks5.c:151: warning: cast to pointer from integer of different size
SS5Mod_socks5.c: In function \'UpstreamServing\':
SS5Mod_socks5.c:228: warning: cast to pointer from integer of different size
SS5Mod_socks5.c:245: warning: cast to pointer from integer of different size
SS5Mod_socks5.c:262: warning: cast to pointer from integer of different size
SS5Mod_socks5.c:266: warning: cast to pointer from integer of different size
SS5Mod_socks5.c:273: warning: cast to pointer from integer of different size
SS5Mod_socks5.c:281: warning: cast to pointer from integer of different size
SS5Mod_socks5.c:295: warning: cast to pointer from integer of different size
SS5Mod_socks5.c: In function \'ConnectServing\':
SS5Mod_socks5.c:350: warning: cast to pointer from integer of different size
SS5Mod_socks5.c:367: warning: cast to pointer from integer of different size
SS5Mod_socks5.c:381: warning: cast to pointer from integer of different size
SS5Mod_socks5.c:425: warning: cast to pointer from integer of different size
SS5Mod_socks5.c: In function \'BindServing\':
SS5Mod_socks5.c:495: warning: cast to pointer from integer of different size
SS5Mod_socks5.c:503: warning: cast to pointer from integer of different size
SS5Mod_socks5.c:529: warning: cast to pointer from integer of different size
SS5Mod_socks5.c:543: warning: cast to pointer from integer of different size
SS5Mod_socks5.c:579: warning: cast to pointer from integer of different size
SS5Mod_socks5.c:605: warning: cast to pointer from integer of different size
SS5Mod_socks5.c:631: warning: cast to pointer from integer of different size
SS5Mod_socks5.c: In function \'UdpAssociateServing\':
SS5Mod_socks5.c:706: warning: cast to pointer from integer of different size
SS5Mod_socks5.c:734: warning: cast to pointer from integer of different size
SS5Mod_socks5.c:772: warning: cast to pointer from integer of different size
SS5Mod_socks5.c:780: warning: cast to pointer from integer of different size
SS5Mod_socks5.c:807: warning: cast to pointer from integer of different size
SS5Mod_socks5.c:914: warning: cast to pointer from integer of different size
SS5Mod_socks5.c: In function \'UdpAssociateResponse\':
SS5Mod_socks5.c:992: warning: cast to pointer from integer of different size
SS5Mod_socks5.c: In function \'FileCheck\':
SS5Mod_socks5.c:1191: warning: cast to pointer from integer of different size
gcc -g -O2 -DLINUX -I . -I ../../include -shared -fPIC   -c -o SS5OpenLdap.o S                                                   S5OpenLdap.c
SS5OpenLdap.c: In function \'DirectoryQuery\':
SS5OpenLdap.c:163: warning: assignment makes pointer from integer without a cast
SS5OpenLdap.c:165: warning: cast to pointer from integer of different size
gcc -g -O2 -DLINUX -I . -I ../../include -shared -fPIC   -o mod_socks5.so SS5Mod                                                   _socks5.o SS5OpenLdap.o -lpthread
make[2]: Leaving directory `/root/ss5-3.6.1/modules/mod_socks5\'
make[2]: Entering directory `/root/ss5-3.6.1/modules/mod_authen\'
gcc -g -O2 -DLINUX -I . -I ../../include -shared -fPIC   -c -o SS5Mod_authenti                                                   cation.o SS5Mod_authentication.c
SS5Mod_authentication.c: In function \'Authentication\':
SS5Mod_authentication.c:68: warning: cast to pointer from integer of different s                                                   ize
SS5Mod_authentication.c:153: warning: cast to pointer from integer of different                                                     size
SS5Mod_authentication.c:163: warning: cast to pointer from integer of different                                                     size
SS5Mod_authentication.c:182: warning: cast to pointer from integer of different                                                     size
gcc -g -O2 -DLINUX -I . -I ../../include -shared -fPIC   -c -o SS5Basic.o SS5B                                                   asic.c
SS5Basic.c: In function \'S5PwdFileOpen\':
SS5Basic.c:30: warning: cast to pointer from integer of different size
SS5Basic.c: In function \'S5PwdFileClose\':
SS5Basic.c:59: warning: cast to pointer from integer of different size
gcc -g -O2 -DLINUX -I . -I ../../include -shared -fPIC   -c -o SS5ExternalProg                                                   ram.o SS5ExternalProgram.c

推荐阅读
  • Linux防火墙配置—允许转发
    nsitionalENhttp:www.w3.orgTRxhtml1DTDxhtml1-transitional.dtd ... [详细]
  • 本文介绍了Python高级网络编程及TCP/IP协议簇的OSI七层模型。首先简单介绍了七层模型的各层及其封装解封装过程。然后讨论了程序开发中涉及到的网络通信内容,主要包括TCP协议、UDP协议和IPV4协议。最后还介绍了socket编程、聊天socket实现、远程执行命令、上传文件、socketserver及其源码分析等相关内容。 ... [详细]
  • Skywalking系列博客1安装单机版 Skywalking的快速安装方法
    本文介绍了如何快速安装单机版的Skywalking,包括下载、环境需求和端口检查等步骤。同时提供了百度盘下载地址和查询端口是否被占用的命令。 ... [详细]
  • 开发笔记:计网局域网:NAT 是如何工作的?
    篇首语:本文由编程笔记#小编为大家整理,主要介绍了计网-局域网:NAT是如何工作的?相关的知识,希望对你有一定的参考价值。 ... [详细]
  • 缤果串口网络蓝牙调试助手的特点和下载链接
    本文介绍了缤果串口网络蓝牙调试助手的主要特点,包括支持常用的波特率、校验、数据位和停止位设置,以及以ASCII码或十六进制接收或发送数据或字符的功能。该助手还能任意设定自动发送周期,并能将接收数据保存成文本文件。同时,该软件支持网络UDP/TCP和蓝牙功能。最后,提供了腾讯微云和百度网盘的下载链接。 ... [详细]
  • 本文介绍了Python爬虫技术基础篇面向对象高级编程(中)中的多重继承概念。通过继承,子类可以扩展父类的功能。文章以动物类层次的设计为例,讨论了按照不同分类方式设计类层次的复杂性和多重继承的优势。最后给出了哺乳动物和鸟类的设计示例,以及能跑、能飞、宠物类和非宠物类的增加对类数量的影响。 ... [详细]
  • 本文介绍了网络编程的要点,包括InetAddress类获取IP地址的方法,IP地址的定义和表示方法,IPv4和IPv6的区别,以及网络通信协议中的端口和协议类型。 ... [详细]
  • 本文分享了一位Android开发者多年来对于Android开发所需掌握的技能的笔记,包括架构师基础、高级UI开源框架、Android Framework开发、性能优化、音视频精编源码解析、Flutter学习进阶、微信小程序开发以及百大框架源码解读等方面的知识。文章强调了技术栈和布局的重要性,鼓励开发者做好学习规划和技术布局,以提升自己的竞争力和市场价值。 ... [详细]
  • HSRP热备份路由器协议的应用及配置
    本文介绍了HSRP热备份路由器协议的应用及配置方法,包括设计目标、工作原理、配置命令等。通过HSRP协议,可以实现在主动路由器故障时自动切换到备份路由器,保证网络连通性。此外,还介绍了R1和R2路由器的配置方法以及Sw1和Sw2交换机的配置方法,最后还介绍了测试连通性和路由追踪的方法。 ... [详细]
  • 介绍一款好用的内网穿透工具FRP
    本文介绍了一款好用的内网穿透工具FRP,它是一个使用Go语言开发的高性能的反向代理应用。FRP支持多种协议类型,并且可以根据域名进行路由转发。 ... [详细]
  • 1、Ipv4只能用于内网,外网只能用2、DNS:把域名解析成ip地址3、MAC地址就是物理地址(网卡序列号)   IP地址:电脑序列号4、不同电脑,微信之间互相通信,靠的是端口;  ... [详细]
  • 概述H.323是由ITU制定的通信控制协议,用于在分组交换网中提供多媒体业务。呼叫控制是其中的重要组成部分,它可用来建立点到点的媒体会话和多点间媒体会议 ... [详细]
  • POCOCLibraies属于功能广泛、轻量级别的开源框架库,它拥有媲美Boost库的功能以及较小的体积广泛应用在物联网平台、工业自动化等领域。POCOCLibrai ... [详细]
  • 计算机网络计算机网络分层结构
    为了解决计算机网络复杂的问题,提出了计算机网络分层结构。计算机网络分层结构主要有OSI7层参考模型,TCPIP4层参考模型两种。为什么要分层不同产商 ... [详细]
  • 篇首语:本文由编程笔记#小编为大家整理,主要介绍了VoLTE端到端业务详解|VoLTE用户注册流程相关的知识,希望对你有一定的参考价值。书籍来源:艾怀丽 ... [详细]
author-avatar
Struggle大飞哥
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有