|
|
@ -10,7 +10,7 @@ none='\e[0m' |
|
|
|
# Root |
|
|
|
# Root |
|
|
|
[[ $(id -u) != 0 ]] && echo -e " 哎呀……请使用 ${red}root ${none}用户运行 ${yellow}~(^_^) ${none}" && exit 1 |
|
|
|
[[ $(id -u) != 0 ]] && echo -e " 哎呀……请使用 ${red}root ${none}用户运行 ${yellow}~(^_^) ${none}" && exit 1 |
|
|
|
|
|
|
|
|
|
|
|
_version="v3.04" |
|
|
|
_version="v3.05" |
|
|
|
|
|
|
|
|
|
|
|
cmd="apt-get" |
|
|
|
cmd="apt-get" |
|
|
|
|
|
|
|
|
|
|
@ -143,7 +143,7 @@ create_vmess_URL_config() { |
|
|
|
cat >/etc/v2ray/vmess_qr.json <<-EOF |
|
|
|
cat >/etc/v2ray/vmess_qr.json <<-EOF |
|
|
|
{ |
|
|
|
{ |
|
|
|
"v": "2", |
|
|
|
"v": "2", |
|
|
|
"ps": "v2ray66.com_${domain}", |
|
|
|
"ps": "233yes.com_${domain}", |
|
|
|
"add": "${domain}", |
|
|
|
"add": "${domain}", |
|
|
|
"port": "443", |
|
|
|
"port": "443", |
|
|
|
"id": "${v2ray_id}", |
|
|
|
"id": "${v2ray_id}", |
|
|
@ -160,7 +160,7 @@ create_vmess_URL_config() { |
|
|
|
cat >/etc/v2ray/vmess_qr.json <<-EOF |
|
|
|
cat >/etc/v2ray/vmess_qr.json <<-EOF |
|
|
|
{ |
|
|
|
{ |
|
|
|
"v": "2", |
|
|
|
"v": "2", |
|
|
|
"ps": "v2ray66.com_${ip}", |
|
|
|
"ps": "233yes.com_${ip}", |
|
|
|
"add": "${ip}", |
|
|
|
"add": "${ip}", |
|
|
|
"port": "${v2ray_port}", |
|
|
|
"port": "${v2ray_port}", |
|
|
|
"id": "${v2ray_id}", |
|
|
|
"id": "${v2ray_id}", |
|
|
@ -226,7 +226,7 @@ get_shadowsocks_config_qr_link() { |
|
|
|
echo -e "$green 正在生成链接.... 稍等片刻即可....$none" |
|
|
|
echo -e "$green 正在生成链接.... 稍等片刻即可....$none" |
|
|
|
echo |
|
|
|
echo |
|
|
|
get_ip |
|
|
|
get_ip |
|
|
|
local ss="ss://$(echo -n "${ssciphers}:${sspass}@${ip}:${ssport}" | base64 -w 0)#v2ray66.com_ss_${ip}" |
|
|
|
local ss="ss://$(echo -n "${ssciphers}:${sspass}@${ip}:${ssport}" | base64 -w 0)#233yes.com_ss_${ip}" |
|
|
|
echo "${ss}" >/tmp/233blog_shadowsocks.txt |
|
|
|
echo "${ss}" >/tmp/233blog_shadowsocks.txt |
|
|
|
cat /tmp/233blog_shadowsocks.txt | qrencode -s 50 -o /tmp/233blog_shadowsocks.png |
|
|
|
cat /tmp/233blog_shadowsocks.txt | qrencode -s 50 -o /tmp/233blog_shadowsocks.png |
|
|
|
|
|
|
|
|
|
|
@ -2192,7 +2192,7 @@ get_v2ray_config() { |
|
|
|
echo |
|
|
|
echo |
|
|
|
echo -e "${yellow} HTTP 监听端口 = ${cyan}6666$none" |
|
|
|
echo -e "${yellow} HTTP 监听端口 = ${cyan}6666$none" |
|
|
|
echo |
|
|
|
echo |
|
|
|
echo "V2Ray 客户端使用教程: https://v2ray66.com/post/4/" |
|
|
|
echo "V2Ray 客户端使用教程: https://233yes.com/post/4/" |
|
|
|
echo |
|
|
|
echo |
|
|
|
break |
|
|
|
break |
|
|
|
else |
|
|
|
else |
|
|
@ -2219,7 +2219,7 @@ get_v2ray_config_link() { |
|
|
|
echo |
|
|
|
echo |
|
|
|
echo -e "${yellow} HTTP 监听端口 = ${cyan}6666$none" |
|
|
|
echo -e "${yellow} HTTP 监听端口 = ${cyan}6666$none" |
|
|
|
echo |
|
|
|
echo |
|
|
|
echo " V2Ray 客户端使用教程: https://v2ray66.com/post/4/" |
|
|
|
echo " V2Ray 客户端使用教程: https://233yes.com/post/4/" |
|
|
|
echo |
|
|
|
echo |
|
|
|
echo "备注...链接将在 14 天后失效" |
|
|
|
echo "备注...链接将在 14 天后失效" |
|
|
|
echo |
|
|
|
echo |
|
|
@ -2241,7 +2241,7 @@ create_v2ray_config_text() { |
|
|
|
if [[ $v2ray_transport == [45] ]]; then |
|
|
|
if [[ $v2ray_transport == [45] ]]; then |
|
|
|
if [[ ! $caddy ]]; then |
|
|
|
if [[ ! $caddy ]]; then |
|
|
|
echo |
|
|
|
echo |
|
|
|
echo " 警告!请自行配置 TLS...教程: https://v2ray66.com/post/3/" |
|
|
|
echo " 警告!请自行配置 TLS...教程: https://233yes.com/post/3/" |
|
|
|
fi |
|
|
|
fi |
|
|
|
echo |
|
|
|
echo |
|
|
|
echo "地址 (Address) = ${domain}" |
|
|
|
echo "地址 (Address) = ${domain}" |
|
|
@ -2294,7 +2294,7 @@ create_v2ray_config_text() { |
|
|
|
fi |
|
|
|
fi |
|
|
|
echo "---------- END -------------" |
|
|
|
echo "---------- END -------------" |
|
|
|
echo |
|
|
|
echo |
|
|
|
echo "V2Ray 客户端使用教程: https://v2ray66.com/post/4/" |
|
|
|
echo "V2Ray 客户端使用教程: https://233yes.com/post/4/" |
|
|
|
echo |
|
|
|
echo |
|
|
|
} |
|
|
|
} |
|
|
|
get_v2ray_config_info_link() { |
|
|
|
get_v2ray_config_info_link() { |
|
|
@ -2310,7 +2310,7 @@ get_v2ray_config_info_link() { |
|
|
|
echo |
|
|
|
echo |
|
|
|
echo -e "$yellow 链接 = $cyan$link$none" |
|
|
|
echo -e "$yellow 链接 = $cyan$link$none" |
|
|
|
echo |
|
|
|
echo |
|
|
|
echo -e " V2Ray 客户端使用教程: https://v2ray66.com/post/4/" |
|
|
|
echo -e " V2Ray 客户端使用教程: https://233yes.com/post/4/" |
|
|
|
echo |
|
|
|
echo |
|
|
|
echo "备注...链接将在 14 天后失效..." |
|
|
|
echo "备注...链接将在 14 天后失效..." |
|
|
|
echo |
|
|
|
echo |
|
|
@ -2345,7 +2345,7 @@ get_v2ray_config_qr_link() { |
|
|
|
echo -e "$red 友情提醒: 请务必核对扫码结果 (V2RayNG 除外) $none" |
|
|
|
echo -e "$red 友情提醒: 请务必核对扫码结果 (V2RayNG 除外) $none" |
|
|
|
echo |
|
|
|
echo |
|
|
|
echo |
|
|
|
echo |
|
|
|
echo " V2Ray 客户端使用教程: https://v2ray66.com/post/4/" |
|
|
|
echo " V2Ray 客户端使用教程: https://233yes.com/post/4/" |
|
|
|
echo |
|
|
|
echo |
|
|
|
echo "备注...链接将在 14 天后失效" |
|
|
|
echo "备注...链接将在 14 天后失效" |
|
|
|
echo |
|
|
|
echo |
|
|
@ -2730,7 +2730,7 @@ do_service() { |
|
|
|
} |
|
|
|
} |
|
|
|
_help() { |
|
|
|
_help() { |
|
|
|
echo |
|
|
|
echo |
|
|
|
echo "........... V2Ray 管理脚本帮助信息 by v2ray66.com .........." |
|
|
|
echo "........... V2Ray 管理脚本帮助信息 by 233yes.com .........." |
|
|
|
echo -e " |
|
|
|
echo -e " |
|
|
|
${green}v2ray menu $none管理 V2Ray (同等于直接输入 v2ray) |
|
|
|
${green}v2ray menu $none管理 V2Ray (同等于直接输入 v2ray) |
|
|
|
|
|
|
|
|
|
|
@ -2771,17 +2771,17 @@ menu() { |
|
|
|
clear |
|
|
|
clear |
|
|
|
while :; do |
|
|
|
while :; do |
|
|
|
echo |
|
|
|
echo |
|
|
|
echo "........... V2Ray 管理脚本 $_version by v2ray66.com .........." |
|
|
|
echo "........... V2Ray 管理脚本 $_version by 233yes.com .........." |
|
|
|
echo |
|
|
|
echo |
|
|
|
echo -e "## V2Ray 版本: $cyan$v2ray_ver$none / V2Ray 状态: $v2ray_status ##" |
|
|
|
echo -e "## V2Ray 版本: $cyan$v2ray_ver$none / V2Ray 状态: $v2ray_status ##" |
|
|
|
echo |
|
|
|
echo |
|
|
|
echo "帮助说明: https://v2ray66.com/post/1/" |
|
|
|
echo "帮助说明: https://233yes.com/post/1/" |
|
|
|
echo |
|
|
|
echo |
|
|
|
echo "反馈问题: https://github.com/233boy/v2ray/issues" |
|
|
|
echo "反馈问题: https://github.com/233boy/v2ray/issues" |
|
|
|
echo |
|
|
|
echo |
|
|
|
echo "TG 群组: https://t.me/blog233" |
|
|
|
echo "TG 群组: https://t.me/blog233" |
|
|
|
echo |
|
|
|
echo |
|
|
|
echo "捐赠脚本作者: https://v2ray66.com/donate/" |
|
|
|
echo "捐赠脚本作者: https://233yes.com/donate/" |
|
|
|
echo |
|
|
|
echo |
|
|
|
echo "捐助 V2Ray: https://www.v2ray.com/chapter_00/02_donate.html" |
|
|
|
echo "捐助 V2Ray: https://www.v2ray.com/chapter_00/02_donate.html" |
|
|
|
echo |
|
|
|
echo |
|
|
|