欢迎来到好人卡资源网,专注网络技术资源收集,我们不仅是网络资源的搬运工,也生产原创资源。寻找资源请留言

SolusVM破解安装、SolusVM NAT的设置、SolusVM与Whmcs的整合

linux sky995 4年前 (2018-11-04) 1289次浏览 0个评论

教程写的比较全,步骤详细,适合折腾的兄die折腾

该文在Centos 6 64位下成功。均为SSH下操作。
SolusVM分为主控和被控,主控为管理所有主机,虚拟主机、VPS、独服均可;被控为主机,需为独服。

一、SolusVM主控的安装及破解

1、安装SolusVM主控

<span class="pln">wget https</span><span class="pun">:</span><span class="com">//<a class="textToLink" href="https://www.zmrbk.com/files.soluslabs.com/install.sh" target="_blank" rel="noopener">files.soluslabs.com/install.sh</a></span><span class="pln">
sh install</span><span class="pun">.</span><span class="pln">sh</span>

等待一会,系统初始化。
SolusVM破解安装、SolusVM NAT的设置、SolusVM与Whmcs的整合

几分钟后会出现选择,建议选择 1(1-3均为主控,4-6为被控)
SolusVM破解安装、SolusVM NAT的设置、SolusVM与Whmcs的整合

安装完后会出现SolusVM控制台地址、用户名、密码等,记录下来。
SolusVM破解安装、SolusVM NAT的设置、SolusVM与Whmcs的整合

2、破解SolusVM主控
a、添加伪授权hosts

<span class="pln">vi </span><span class="pun">/</span><span class="pln">etc</span><span class="pun">/</span><span class="pln">hosts</span>

添加如下伪授权,套餐是 SolusVM Enterprise (NOC):

<span class="lit">150.95</span><span class="pun">.</span><span class="lit">9.225</span><span class="pln"> soluslabs</span><span class="pun">.</span><span class="pln">com
</span><span class="lit">150.95</span><span class="pun">.</span><span class="lit">9.225</span><span class="pln"> www</span><span class="pun">.</span><span class="pln">soluslabs</span><span class="pun">.</span><span class="pln">com
</span><span class="lit">150.95</span><span class="pun">.</span><span class="lit">9.225</span><span class="pln"> licensing1</span><span class="pun">.</span><span class="pln">soluslabs</span><span class="pun">.</span><span class="pln">net
</span><span class="lit">150.95</span><span class="pun">.</span><span class="lit">9.225</span><span class="pln"> licensing2</span><span class="pun">.</span><span class="pln">soluslabs</span><span class="pun">.</span><span class="pln">net
</span><span class="lit">150.95</span><span class="pun">.</span><span class="lit">9.225</span><span class="pln"> licensing3</span><span class="pun">.</span><span class="pln">soluslabs</span><span class="pun">.</span><span class="pln">net
</span><span class="lit">150.95</span><span class="pun">.</span><span class="lit">9.225</span><span class="pln"> licensing4</span><span class="pun">.</span><span class="pln">soluslabs</span><span class="pun">.</span><span class="pln">net
</span><span class="lit">150.95</span><span class="pun">.</span><span class="lit">9.225</span><span class="pln"> licensing5</span><span class="pun">.</span><span class="pln">soluslabs</span><span class="pun">.</span><span class="pln">net
</span><span class="lit">150.95</span><span class="pun">.</span><span class="lit">9.225</span><span class="pln"> licensing6</span><span class="pun">.</span><span class="pln">soluslabs</span><span class="pun">.</span><span class="pln">net</span>

或者,套餐是 SolusVM Enterprise (RS)

<span class="lit">150.95</span><span class="pun">.</span><span class="lit">9.221</span><span class="pln"> soluslabs</span><span class="pun">.</span><span class="pln">com
</span><span class="lit">150.95</span><span class="pun">.</span><span class="lit">9.221</span><span class="pln"> www</span><span class="pun">.</span><span class="pln">soluslabs</span><span class="pun">.</span><span class="pln">com
</span><span class="lit">150.95</span><span class="pun">.</span><span class="lit">9.221</span><span class="pln"> licensing1</span><span class="pun">.</span><span class="pln">soluslabs</span><span class="pun">.</span><span class="pln">net
</span><span class="lit">150.95</span><span class="pun">.</span><span class="lit">9.221</span><span class="pln"> licensing2</span><span class="pun">.</span><span class="pln">soluslabs</span><span class="pun">.</span><span class="pln">net
</span><span class="lit">150.95</span><span class="pun">.</span><span class="lit">9.221</span><span class="pln"> licensing3</span><span class="pun">.</span><span class="pln">soluslabs</span><span class="pun">.</span><span class="pln">net
</span><span class="lit">150.95</span><span class="pun">.</span><span class="lit">9.221</span><span class="pln"> licensing4</span><span class="pun">.</span><span class="pln">soluslabs</span><span class="pun">.</span><span class="pln">net
</span><span class="lit">150.95</span><span class="pun">.</span><span class="lit">9.221</span><span class="pln"> licensing5</span><span class="pun">.</span><span class="pln">soluslabs</span><span class="pun">.</span><span class="pln">net
</span><span class="lit">150.95</span><span class="pun">.</span><span class="lit">9.221</span><span class="pln"> licensing6</span><span class="pun">.</span><span class="pln">soluslabs</span><span class="pun">.</span><span class="pln">net</span>

b、防火墙屏蔽验证地址

<span class="pln">iptables </span><span class="pun">-</span><span class="pln">I INPUT </span><span class="pun">-</span><span class="pln">s </span><span class="lit">94.0</span><span class="pun">.</span><span class="lit">0.0</span><span class="pun">/</span><span class="lit">8</span> <span class="pun">-</span><span class="pln">j DROP</span>

保存iptables配置

<span class="pln">service iptables save</span>

重启iptables

<span class="pln">service iptables restart</span>

3、关闭selinux

<span class="pln">vi </span><span class="pun">/</span><span class="pln">etc</span><span class="pun">/</span><span class="pln">sysconfig</span><span class="pun">/</span><span class="pln">selinux</span>

把SELINUX设为disabled
如下:
SELINUX=disabled

4、配置SSL
a、获取证书

<span class="pln">yum install curl </span><span class="pun">&&</span><span class="pln">
curl https</span><span class="pun">:</span><span class="com">//get.acme.sh | sh && source ~/.bashrc </span><span class="pln">
acme</span><span class="pun">.</span><span class="pln">sh </span><span class="pun">--</span><span class="pln">issue </span><span class="pun">-</span><span class="pln">d vps</span><span class="pun">.</span><span class="pln">zhujiwiki</span><span class="pun">.</span><span class="pln">com </span><span class="pun">-</span><span class="pln">w </span><span class="pun">/</span><span class="pln">usr</span><span class="pun">/</span><span class="kwd">local</span><span class="pun">/</span><span class="pln">solusvm</span><span class="pun">/</span><span class="pln">www</span><span class="pun">/.</span><span class="pln">verification</span>

安装证书

<span class="pln">acme</span><span class="pun">.</span><span class="pln">sh </span><span class="pun">--</span><span class="pln">installcert </span><span class="pun">-</span><span class="pln">d vps</span><span class="pun">.</span><span class="pln">zhujiwiki</span><span class="pun">.</span><span class="pln">com \
</span><span class="pun">--</span><span class="pln">keypath </span><span class="pun">/</span><span class="pln">usr</span><span class="pun">/</span><span class="kwd">local</span><span class="pun">/</span><span class="pln">svmstack</span><span class="pun">/</span><span class="pln">nginx</span><span class="pun">/</span><span class="pln">ssl</span><span class="pun">/</span><span class="pln">ssl</span><span class="pun">.</span><span class="pln">key \
</span><span class="pun">--</span><span class="pln">fullchainpath </span><span class="pun">/</span><span class="pln">usr</span><span class="pun">/</span><span class="kwd">local</span><span class="pun">/</span><span class="pln">svmstack</span><span class="pun">/</span><span class="pln">nginx</span><span class="pun">/</span><span class="pln">ssl</span><span class="pun">/</span><span class="pln">ssl</span><span class="pun">.</span><span class="pln">crt \
</span><span class="pun">--</span><span class="pln">reloadcmd </span><span class="str">"service svmstack-nginx restart; \
/usr/local/svmstack/sshwebsocket/quit; \
/usr/local/svmstack/sshwebsocket/port_check; \
cd /usr/local/svmstack/nginx/ssl && cat ssl.key ssl.crt > ssl.pem"</span>

5、浏览器进入web控制端
SolusVM破解安装、SolusVM NAT的设置、SolusVM与Whmcs的整合

二 、SolusVM被控的安装及破解

1、安装SolusVM被控

<span class="pln">wget https</span><span class="pun">:</span><span class="com">//<a class="textToLink" href="https://www.zmrbk.com/files.soluslabs.com/install.sh" target="_blank" rel="noopener">files.soluslabs.com/install.sh</a></span><span class="pln">
sh install</span><span class="pun">.</span><span class="pln">sh</span>

等待一会,系统初始化。
SolusVM破解安装、SolusVM NAT的设置、SolusVM与Whmcs的整合

几分钟后会出现选择,根据自己的需要,4为KVM,5为Xen,6为OpenVZ
SolusVM破解安装、SolusVM NAT的设置、SolusVM与Whmcs的整合

安装后会出现下面的信息,记住!
SolusVM破解安装、SolusVM NAT的设置、SolusVM与Whmcs的整合

2、破解SolusVM被控
添加伪授权hosts

<span class="pln">vi </span><span class="pun">/</span><span class="pln">etc</span><span class="pun">/</span><span class="pln">hosts</span>

添加如下伪授权:

<span class="lit">150.95</span><span class="pun">.</span><span class="lit">9.225</span><span class="pln"> soluslabs</span><span class="pun">.</span><span class="pln">com
</span><span class="lit">150.95</span><span class="pun">.</span><span class="lit">9.225</span><span class="pln"> www</span><span class="pun">.</span><span class="pln">soluslabs</span><span class="pun">.</span><span class="pln">com
</span><span class="lit">150.95</span><span class="pun">.</span><span class="lit">9.225</span><span class="pln"> licensing1</span><span class="pun">.</span><span class="pln">soluslabs</span><span class="pun">.</span><span class="pln">net
</span><span class="lit">150.95</span><span class="pun">.</span><span class="lit">9.225</span><span class="pln"> licensing2</span><span class="pun">.</span><span class="pln">soluslabs</span><span class="pun">.</span><span class="pln">net
</span><span class="lit">150.95</span><span class="pun">.</span><span class="lit">9.225</span><span class="pln"> licensing3</span><span class="pun">.</span><span class="pln">soluslabs</span><span class="pun">.</span><span class="pln">net
</span><span class="lit">150.95</span><span class="pun">.</span><span class="lit">9.225</span><span class="pln"> licensing4</span><span class="pun">.</span><span class="pln">soluslabs</span><span class="pun">.</span><span class="pln">net
</span><span class="lit">150.95</span><span class="pun">.</span><span class="lit">9.225</span><span class="pln"> licensing5</span><span class="pun">.</span><span class="pln">soluslabs</span><span class="pun">.</span><span class="pln">net
</span><span class="lit">150.95</span><span class="pun">.</span><span class="lit">9.225</span><span class="pln"> licensing6</span><span class="pun">.</span><span class="pln">soluslabs</span><span class="pun">.</span><span class="pln">net</span>

或者

<span class="lit">150.95</span><span class="pun">.</span><span class="lit">9.221</span><span class="pln"> soluslabs</span><span class="pun">.</span><span class="pln">com
</span><span class="lit">150.95</span><span class="pun">.</span><span class="lit">9.221</span><span class="pln"> www</span><span class="pun">.</span><span class="pln">soluslabs</span><span class="pun">.</span><span class="pln">com
</span><span class="lit">150.95</span><span class="pun">.</span><span class="lit">9.221</span><span class="pln"> licensing1</span><span class="pun">.</span><span class="pln">soluslabs</span><span class="pun">.</span><span class="pln">net
</span><span class="lit">150.95</span><span class="pun">.</span><span class="lit">9.221</span><span class="pln"> licensing2</span><span class="pun">.</span><span class="pln">soluslabs</span><span class="pun">.</span><span class="pln">net
</span><span class="lit">150.95</span><span class="pun">.</span><span class="lit">9.221</span><span class="pln"> licensing3</span><span class="pun">.</span><span class="pln">soluslabs</span><span class="pun">.</span><span class="pln">net
</span><span class="lit">150.95</span><span class="pun">.</span><span class="lit">9.221</span><span class="pln"> licensing4</span><span class="pun">.</span><span class="pln">soluslabs</span><span class="pun">.</span><span class="pln">net
</span><span class="lit">150.95</span><span class="pun">.</span><span class="lit">9.221</span><span class="pln"> licensing5</span><span class="pun">.</span><span class="pln">soluslabs</span><span class="pun">.</span><span class="pln">net
</span><span class="lit">150.95</span><span class="pun">.</span><span class="lit">9.221</span><span class="pln"> licensing6</span><span class="pun">.</span><span class="pln">soluslabs</span><span class="pun">.</span><span class="pln">net</span>

3、SolusVM KVM的网桥设置
官方文档:https://documentation.solusvm.com/display/DOCS/KVM+Bridge+Setup
a、安装桥接依赖

<span class="pln">yum </span><span class="pun">-</span><span class="pln">y install bridge</span><span class="pun">-</span><span class="pln">utils</span>

b、开ipv4转发:

<span class="pln">echo </span><span class="lit">1</span> <span class="pun">></span> <span class="str">/proc/</span><span class="pln">sys</span><span class="pun">/</span><span class="pln">net</span><span class="pun">/</span><span class="pln">ipv4</span><span class="pun">/</span><span class="pln">ip_forward</span>

c、新建一个桥接网卡,命名为br0

<span class="pln">vi </span><span class="pun">/</span><span class="pln">etc</span><span class="pun">/</span><span class="pln">sysconfig</span><span class="pun">/</span><span class="pln">network</span><span class="pun">-</span><span class="pln">scripts</span><span class="pun">/</span><span class="pln">ifcfg</span><span class="pun">-</span><span class="pln">br0</span>

粘贴下面的内容。如果没有IPv6,删除IPv6的部分

<span class="pln">DEVICE</span><span class="pun">=</span><span class="pln">br0
TYPE</span><span class="pun">=</span><span class="typ">Bridge</span><span class="pln">
BOOTPROTO</span><span class="pun">=</span><span class="kwd">static</span><span class="pln">
IPADDR</span><span class="pun">=服务器主</span><span class="pln">IP
NETMASK</span><span class="pun">=</span><span class="lit">255.255</span><span class="pun">.</span><span class="lit">255.248</span><span class="pun">(如果是/</span><span class="lit">29</span><span class="pun">,最后</span><span class="lit">3</span><span class="pun">位是</span><span class="lit">248</span><span class="pun">,根据</span><span class="pln">IP</span><span class="pun">数修改)</span><span class="pln">
ONBOOT</span><span class="pun">=</span><span class="pln">yes
GATEWAY</span><span class="pun">=网关</span><span class="pln">
IPV6INIT</span><span class="pun">=</span><span class="pln">yes
IPV6ADDR</span><span class="pun">=服务器</span><span class="pln">IPV6</span><span class="pun">地址</span><span class="pln">
IPV6_DEFAULTGW</span><span class="pun">=</span><span class="pln">fe80</span><span class="pun">::</span><span class="lit">1</span><span class="pln">
IPV6_DEFAULTDEV</span><span class="pun">=</span><span class="pln">br0</span>

d、编辑默认网卡(有的是eth0,有的是eth1)

<span class="pln">vi </span><span class="pun">/</span><span class="pln">etc</span><span class="pun">/</span><span class="pln">sysconfig</span><span class="pun">/</span><span class="pln">network</span><span class="pun">-</span><span class="pln">scripts</span><span class="pun">/</span><span class="pln">ifcfg</span><span class="pun">-</span><span class="pln">eth1</span>

粘贴下面的内容

<span class="pln">DEVICE</span><span class="pun">=</span><span class="pln">eth1
ONBOOT</span><span class="pun">=</span><span class="pln">yes
BRIDGE</span><span class="pun">=</span><span class="pln">br0</span>

e、添加其他IP

<span class="pln">vi </span><span class="pun">/</span><span class="pln">etc</span><span class="pun">/</span><span class="pln">sysconfig</span><span class="pun">/</span><span class="pln">network</span><span class="pun">-</span><span class="pln">scripts</span><span class="pun">/</span><span class="pln">ifcfg</span><span class="pun">-</span><span class="pln">br0</span><span class="pun">:</span><span class="lit">0</span>

添加如下内容(网关根据IP数修改)

<span class="pln">DEVICE</span><span class="pun">=</span><span class="pln">br0</span><span class="pun">:</span><span class="lit">0</span><span class="pln">
BOOTPROTO</span><span class="pun">=</span><span class="kwd">static</span><span class="pln">
IPADDR</span><span class="pun">=服务器</span><span class="pln">IP2
NETMASK</span><span class="pun">=</span><span class="lit">255.255</span><span class="pun">.</span><span class="lit">255.248</span><span class="pln">
IPADDR2</span><span class="pun">=服务器</span><span class="pln">IP3
NETMASK2</span><span class="pun">=</span><span class="lit">255.255</span><span class="pun">.</span><span class="lit">255.248</span><span class="pln">
IPADDR3</span><span class="pun">=服务器</span><span class="pln">IP4
NETMASK3</span><span class="pun">=</span><span class="lit">255.255</span><span class="pun">.</span><span class="lit">255.248</span><span class="pln">
IPADDR4</span><span class="pun">=服务器</span><span class="pln">IP8
NETMASK4</span><span class="pun">=</span><span class="lit">255.255</span><span class="pun">.</span><span class="lit">255.248</span><span class="pln">
ONBOOT</span><span class="pun">=</span><span class="pln">yes</span>

f、重启网络

<span class="pln">service network restart</span>

4、系统下载
https://tdn.solusvm.com/

三、SolusVM主控端设置
(一)Node设置
1、添加Node
SolusVM破解安装、SolusVM NAT的设置、SolusVM与Whmcs的整合

2、Node设置
SolusVM破解安装、SolusVM NAT的设置、SolusVM与Whmcs的整合

SolusVM破解安装、SolusVM NAT的设置、SolusVM与Whmcs的整合

(二)套餐设置
SolusVM破解安装、SolusVM NAT的设置、SolusVM与Whmcs的整合

SolusVM破解安装、SolusVM NAT的设置、SolusVM与Whmcs的整合

(三)NAT网络设置
添加IP段
SolusVM破解安装、SolusVM NAT的设置、SolusVM与Whmcs的整合

点击刚才设置的IP段,进行编辑,设置IP
SolusVM破解安装、SolusVM NAT的设置、SolusVM与Whmcs的整合

内网端口转发,使用脚本:

<span class="pln">wget https</span><span class="pun">:</span><span class="com">//<a class="textToLink" href="https://www.zmrbk.com/lowvps.cn/usr/uploads/2018/06/addnat.sh" target="_blank" rel="noopener">lowvps.cn/usr/uploads/2018/06/addnat.sh</a></span><span class="pln">
bash addnat</span><span class="pun">.</span><span class="pln">sh</span>

输入服务器的IP,其他默认即可。
SolusVM破解安装、SolusVM NAT的设置、SolusVM与Whmcs的整合
规则解释:默认是分配 10.0.1.0/24 的IP转发规则,如果有多个,就额外分配 10.0.2.0/24、10.0.3.0/24 等,这里按照10.0.1.0/24解释。

检查是否配置成功

<span class="pln">iptables </span><span class="pun">-</span><span class="pln">t nat </span><span class="pun">-</span><span class="pln">L</span>

SolusVM破解安装、SolusVM NAT的设置、SolusVM与Whmcs的整合

四、SolusVM与Whmcs的对接
(一)SolusVM的设置
添加API
SolusVM破解安装、SolusVM NAT的设置、SolusVM与Whmcs的整合

(二)WHMCS的设置
1、部分WHMC版本没有solusvm模块,下载:https://github.com/plesk/SolusVM-WHMCS-Module/archive/master.zip,解压后,把 solusvmpro 文件夹添加到 根目录 /modules/servers 下。

2、添加服务器,Setup – Products – Servers
SolusVM破解安装、SolusVM NAT的设置、SolusVM与Whmcs的整合

SolusVM破解安装、SolusVM NAT的设置、SolusVM与Whmcs的整合
3、添加产品
SolusVM破解安装、SolusVM NAT的设置、SolusVM与Whmcs的整合

(三)Paypal支付
申请地址:https://www.paypal.com/bizsignup

伪授权站来自:https://blog.ni-co.moe/public/544.html
NAT教程来自:https://liyuans.com/2018/05/tutorial-of-nat-vps-build-via-solusvm.html
官方安装说明:https://documentation.solusvm.com/display/DOCS/SolusVM

https://lala.im/3304.html


好人卡资源网 , 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:SolusVM破解安装、SolusVM NAT的设置、SolusVM与Whmcs的整合
喜欢 (0)
发表我的评论
取消评论

表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址