首页 > 系统相关 >centos下搭建sockets5代理

centos下搭建sockets5代理

时间:2022-11-06 15:33:51浏览次数:52  
标签:gcc enable redhat centos -- 0.0 ss5 sockets5 搭建

#安装依赖及ss5
yum -y install gcc openldap-devel pam-devel openssl-devel

wget https://nchc.dl.sourceforge.net/project/ss5/ss5/3.8.9-8/ss5-3.8.9-8.tar.gz

tar -xf ss5-3.8.9-8.tar.gz

cd ss5-3.8.9/

./configure && make && make install


//修改配置文件
vim /etc/opt/ss5/ss5.conf
auth 0.0.0.0/0 – -
改为
auth 0.0.0.0/0 – u

permit – 0.0.0.0/0 – 0.0.0.0/0 – – – – -
改成为
permit u 0.0.0.0/0 – 0.0.0.0/0 – – – – -

//修改默认端口
vim /etc/sysconfig/ss5
//在/etc/sysconfig/ss5这个文件中,添加下面这一行命令,-b后面的参数代表监听的ip地址和端口号
SS5_OPTS=" -u root -b 0.0.0.0:8080"

//添加账户和密码
vim /etc/opt/ss5/ss5.passwd
##用户 密码
user 123456

//添加开机启动
chmod u+x /etc/rc.d/init.d/ss5
chkconfig --add ss5 //可选
chkconfig ss5 on //可选
service ss5 start

//sockets5启动
sh /etc/rc.d/init.d/ss5 start
doneting ss5...

//查看软件启动状态
netstat -lntp | grep ss5
tcp 0 0 0.0.0.0:1080 0.0.0.0:* LISTEN 14262/ss5

curl myip.ipip.net --socks5 test:[email protected]:1080

编译中可能出现下面错误,可能是gcc版本问题,我出错的版本是:

[root@xuan ss5-3.8.9]# gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/opt/rh/devtoolset-8/root/usr/libexec/gcc/x86_64-redhat-linux/8/lto-wrapper
Target: x86_64-redhat-linux
Configured with: ../configure --enable-bootstrap --enable-languages=c,c++,fortran,lto --prefix=/opt/rh/devtoolset-8/root/usr --mandir=/opt/rh/devtoolset-8/root/usr/share/man --infodir=/opt/rh/devtoolset-8/root/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared --enable-threads=posix --enable-checking=release --enable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-gcc-major-version-only --with-linker-hash-style=gnu --with-default-libstdcxx-abi=gcc4-compatible --enable-plugin --enable-initfini-array --with-isl=/builddir/build/BUILD/gcc-8.3.1-20190311/obj-x86_64-redhat-linux/isl-install --disable-libmpx --enable-gnu-indirect-function --with-tune=generic --with-arch_32=x86-64 --build=x86_64-redhat-linux
Thread model: posix
gcc version 8.3.1 20190311 (Red Hat 8.3.1-3) (GCC)

 换了一台其它版本的就编译 成功了:

[root@C20220506139283 ~]# gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/lto-wrapper
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go,lto --enable-plugin --enable-initfini-array --disable-libgcj --with-isl=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/isl-install --with-cloog=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/cloog-install --enable-gnu-indirect-function --with-tune=generic --with-arch_32=x86-64 --build=x86_64-redhat-linux
Thread model: posix
gcc version 4.8.5 20150623 (Red Hat 4.8.5-44) (GCC) 

 

转载:http://t.zoukankan.com/linyouyi-p-10414366.html

标签:gcc,enable,redhat,centos,--,0.0,ss5,sockets5,搭建
From: https://www.cnblogs.com/grasp/p/16862684.html

相关文章

  • CentOS 8.3 XXX Cluster Initialization Configuration
    一、CentOS8.3XXXClusterInitializationConfiguration1节点规划官方建议节点数量为奇数个hostnameIP节点规划角色maset01192.168.80.31Master01(主节......
  • 9.Vue项目搭建:脚手架
    vue2:使用vue_cli创建vue3:可以使用vue_cli创建,官方更推荐使用vite:更快更小脚手架:内置了很多组件来帮助我们更便捷的的开发vue.js项目。 1.使用vue_cli创建项目vue_cl......
  • MinIO搭建本地图床
    本文记录了使用MiniIO搭建本地图床,搭配PicGo实现Typora图片自动上传。壹丨为什么要搭建本地图床?由于公司保密要求高,网盘、云笔记类软件一概不得使用,多番尝试过后,决定......
  • 手把手教你搭建消防安全答题小程序-实现转发分享答题成绩功能
    手把手教你搭建知识竞答小程序,系列文章前面的三章是界面设计篇,分别写了如何搭建答题小程序的首页、答题页以及答题结果页。现在进入到功能交互篇,此为功能交互篇的第二章,实......
  • 关于阿里云搭建ftp时,客户端可以连接成功,但是无法显示目录的情况
    本人主要是再阿里云使用vsftpd服务端,在vmWare下使用linux的客户端连接。在百度等操作之后,还是会出现无法连接的情况可以连接成功但是无法显示目录基本配置根据官方操作的​......
  • MyBatis框架快速入门-搭建环境,编写代码,测试。
    MyBatis框架快速入门1入门案例案例的结构如下:MyBatis开发准备搭建MyBatis开发环境,实现第一个案例2使用Mybatis准备下载mybatishttps://github.com/mybati......
  • macOS使用docker搭建hadoop集群
    启动集群安装docker下载网址:https://www.docker.com/products/docker-desktop/构建基础镜像拉取centos镜像dockerpullcentos:7.5.1804创建文件夹,将jdk安装包放入,......
  • pycharm+selenium搭建环境之no module named 'selenium'异常解决
    在pycharm上搭建python+selenium自动化测试环境时,遇到一个很坑的问题:nomoduelnamed‘selenium’如下图:解决方法:1.查看你的python是否正确安装了selenium包,没有的话,在......
  • 测试框架搭建
    1、新建一个module,在pom.xml中新增如下内容:<properties><maven.compiler.source>8</maven.compiler.source><maven.compiler.target>8</maven.compiler.target></......
  • M1芯片虚拟机搭建Harbor私有镜像仓库!
    看了CSDN上的博主的教程,完美运行。博客地址:https://blog.csdn.net/q_hsolucky/article/details/125236163。前提条件是你需要自己搭建好虚拟机,并安装好dockercompose。......