Lozy / danted

Fast script for installing & configing Danted--Socks5 Proxy Server.
1.43k stars 439 forks source link

CentOS 6 没法用了 #10

Closed wjz654 closed 7 years ago

wjz654 commented 7 years ago

CentOS 6 没法用了 bash install.sh后没反映

wjz654 commented 7 years ago

[root@MyCloudServer ~]# bash -x install.sh

Lozy commented 7 years ago

囧~ 看来你的系统木有 /etc/os-release 这个文件~ 这也是尴尬。

你可以直接用对应系统的脚本

wget --no-check-certificate https://raw.github.com/Lozy/danted/master/install_centos.sh -O install.sh
bash -x install.sh
wjz654 commented 7 years ago

我试过这个 wget --no-check-certificate https://public.sockd.info/install_centos.sh -O install_centos.sh bash install_centos.sh 不行啊 Ubuntu 14 安装完只有主ip出

wjz654 commented 7 years ago

Ubuntu 14 安装完并不是 什么ip进什么ip出 而且第一边安装一半就没了 还要再一次bash install.sh

wjz654 commented 7 years ago

之前版本还有吗

Lozy commented 7 years ago

Centos 那个是 start-stop-daemon 没有安装,所以启动不了,我更新一下脚本加上。

Ubuntu的那个可否确认一下配置文件 cat /etc/danted/sockd.confexternal.rotation: same-same

这一行。

wjz654 commented 7 years ago

要修改下吗 加到那一行

Lozy commented 7 years ago

hi. 你重新跑下脚本。根据你的反馈,我这边修复了这个bug 哈


bash install.sh

``
wjz654 commented 7 years ago

CentOS 6 还是 Ubuntu的

wjz654 commented 7 years ago

Ubuntu的 OK了 十分感谢

Lozy commented 7 years ago

CentOS 6 重新安装 应该可以适配了

mrlongshen commented 7 years ago

Hi @Lozy Sorry to disturb on this topic. May I ask you something. I dont know how to reach you. No email to email you. With danted script you make, can I connect from 1 vps at US and another Vps at Singapore ? I want redirect all traffic from US server to main server at Singapore. Can this script make it ? Lets me know. Thanks.

Lozy commented 7 years ago

@mrlongshen

In my view, you can simply running rinetd to redirect tcp traffic. Otherwise, Iptables(nat) will reach the same. However, this will lost client's ip address.

If you insist to use this sockd to get that, you can try Redirect Module configure. Edit the config file /etc/danted/sockd.conf

Lozy commented 7 years ago

It looks like Redirect Module is one of the dante's commercial modules. FYI.