Coder Social home page Coder Social logo

Comments (10)

 avatar commented on June 8, 2024

检查端口是否被占用,服务端是放置到服务器上使用的,一般不使用常用端口。
注意:80、443端口需要root(免流需要使用80端口)。
非免流条件下,Linux和Windows需要使用端口号大于1024的端口(否则需要root),建议使用4097 - 9999的端口。
具体端口的讲解可以看这个文章:https://blog.csdn.net/js8355081/article/details/73265032

from sksocks.

briteming avatar briteming commented on June 8, 2024

我删除了SKSocks目录,重新克隆,然后成功,最终显示:
初始化环境成功,开始响应远程请求。

不过在mac系统上,make遇错:
yudeMacBook-Air:SKSocks brite$ make
g++ -c ./SKSocks/pch.cpp -o ./SKSocks/pch.obj -Ofast -std=c++11
g++ -c ./SKSocks/SKSocks.cpp -o ./SKSocks/SKSocks.obj -Ofast -std=c++11
./SKSocks/SKSocks.cpp:73:10: fatal error: 'sys/epoll.h' file not found
#include <sys/epoll.h>
^
1 error generated.
make: *** [SKSocks.obj] Error 1
yudeMacBook-Air:SKSocks brite$

如何解决问题?

from sksocks.

 avatar commented on June 8, 2024

已修复,目前已移除Linux的epoll

from sksocks.

luckypoem avatar luckypoem commented on June 8, 2024

hi.
问题依旧。
我重新克隆,然后,
yudeMacBook-Air:SKSocks-by-lianglixin brite$ make
g++ -c ./SKSocks/pch.cpp -o ./SKSocks/pch.obj -Ofast -std=c++11
g++ -c ./SKSocks/SKSocks.cpp -o ./SKSocks/SKSocks.obj -Ofast -std=c++11
./SKSocks/SKSocks.cpp:73:10: fatal error: 'sys/epoll.h' file not found
#include <sys/epoll.h>
^
1 error generated.
make: *** [SKSocks.obj] Error 1
yudeMacBook-Air:SKSocks-by-lianglixin brite$

如何解决问题?

from sksocks.

 avatar commented on June 8, 2024

hi.
问题依旧。
我重新克隆,然后,
yudeMacBook-Air:SKSocks-by-lianglixin brite$ make
g++ -c ./SKSocks/pch.cpp -o ./SKSocks/pch.obj -Ofast -std=c++11
g++ -c ./SKSocks/SKSocks.cpp -o ./SKSocks/SKSocks.obj -Ofast -std=c++11
./SKSocks/SKSocks.cpp:73:10: fatal error: 'sys/epoll.h' file not found
#include <sys/epoll.h>
^
1 error generated.
make: *** [SKSocks.obj] Error 1
yudeMacBook-Air:SKSocks-by-lianglixin brite$

如何解决问题?

已修复,删除 epool.h引用即可,新版不依赖epool而是依赖自建线程池与自建流控制

from sksocks.

luckypoem avatar luckypoem commented on June 8, 2024

hi.
这次可以成功在mac上生成可执行文件SKSocks-Cli.run了。不过在服务器上遇错:
root@localhost:/SKSocks-by-lianglixin# ./SKSocks-Server.run
SK Socks 支持IPV6。可以使用SK Socks穿透防火墙访问内网资源哦

仅供学习用途,SK团队不对本工具的稳定性以及使用用途作出任何保证。
本版本为服务器端。
我们的博客网址为 https://www.fou.ink/
请输入要绑定的端口。。。
5789
您输入的端口是5789,请输入是否自动运行,输入auto为自动运行(以后不提示直接运行),其它为不自动运行。
auto
请输入是否为IPV6,yes即为是。
no
请输入是否需要免流?需要请输入yes,不需要请输入任意字符。
yes
您选择了需要免流。
请输入是否需要用户登陆,用户名和密码列表在ufile.txt里面,输入yes即为需要。
用户名密码格式为:用户名 (空格) 密码,一行一个数据,用户名和密码不能有空格。如有需要可以自己定制用户名密码验证。
注意:用户名和密码的长度均不能超过31个字符。
yes
打开用户数据文件操作失败,请检查权限。
初始化环境成功,开始响应远程请求。

如何解决?

from sksocks.

 avatar commented on June 8, 2024

hi.
这次可以成功在mac上生成可执行文件SKSocks-Cli.run了。不过在服务器上遇错:
root@localhost:/SKSocks-by-lianglixin# ./SKSocks-Server.run SK Socks 支持IPV6。可以使用SK Socks穿透防火墙访问内网资源哦
仅供学习用途,SK团队不对本工具的稳定性以及使用用途作出任何保证。
本版本为服务器端。
我们的博客网址为 https://www.fou.ink/
请输入要绑定的端口。。。
5789
您输入的端口是5789,请输入是否自动运行,输入auto为自动运行(以后不提示直接运行),其它为不自动运行。
auto
请输入是否为IPV6,yes即为是。
no
请输入是否需要免流?需要请输入yes,不需要请输入任意字符。
yes
您选择了需要免流。
请输入是否需要用户登陆,用户名和密码列表在ufile.txt里面,输入yes即为需要。
用户名密码格式为:用户名 (空格) 密码,一行一个数据,用户名和密码不能有空格。如有需要可以自己定制用户名密码验证。
注意:用户名和密码的长度均不能超过31个字符。
yes
打开用户数据文件操作失败,请检查权限。
初始化环境成功,开始响应远程请求。

如何解决?

可以不使用用户文件,可以不使用免流,正常不需要配置用户帐户的

from sksocks.

luckypoem avatar luckypoem commented on June 8, 2024

hi,

服务器上:
root@localhost:# lsof -i:4578
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
SKSocks-S 569983 root 3u IPv4 15535502 0t0 TCP *:4578 (LISTEN)
root@localhost:
# ps aux|grep SKSocks-Server.run
root 569983 0.0 0.0 14260 1772 pts/1 Sl+ 04:44 0:00 ./SKSocks-Server.run
root 570079 0.0 0.1 6440 2608 pts/3 S+ 04:59 0:00 grep --color=auto SKSocks-Server.run
root@localhost:~#

在本地的mac机器上:
yudeMacBook-Air:SKSocks-by-lianglixin brite$ ./SKSocks-Cli.run
SK Socks 支持IPV6。可以使用SK Socks穿透防火墙访问内网资源哦~
仅供学习用途,SK团队不对本工具的稳定性以及使用用途作出任何保证。
我们的博客网址为 https://www.fou.ink/
本版本为客户端。
请输入本地端口(火狐、QQ等使用Socks5的时候使用的端口)
2478
您输入的本地端口是2478,请输入远程端口
4578
您输入的远程端口是4578,请输入远程域名或IP地址
my-server-ip
您输入的远程地址为my-server-ip,请输入远程机器是否为IPV6,yes即为是
no
解析的IP地址是:my-server-ip
您的选择为no,请输入是否自动读取配置运行(以后不显示设置消息),输入auto即为是。
auto
您的选择是auto。请输入用户名,如不需要登陆请直接按回车键。

我按了回车。
然后我设置浏览器的socks5代理服务器地址为127.0.0.1 ,端口为2478 ,但是浏览器却翻墙失败。这是为什么?

from sksocks.

 avatar commented on June 8, 2024

https://www.die.lu/core/index.php/2021/02/24/386/
新文章已经介绍了这个工具的使用方法以及注意事项

from sksocks.

luckypoem avatar luckypoem commented on June 8, 2024

还是不行。你这程序没有‘配置文件’的吗?我没看到。

from sksocks.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.