全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
楼主: 嗷嗷
打印 上一主题 下一主题

[疑问] euserv一键warp添加ipv4访问(CentOS7/Debian10/Ubuntu20.04支持)

  [复制链接]
21#
发表于 2021-4-5 21:23:27 | 只看该作者
用了一键脚本,也得出IP了。但是PING不通呢
sed: can't read wgcf-profile.conf: No such file or directory
cp: cannot stat ‘wgcf-profile.conf’: No such file or directory
Created symlink from /etc/systemd/system/multi-user.target.wants/[email protected] to /usr/lib/systemd/system/[email protected].
Job for [email protected] failed because the control process exited with error code. See "systemctl status [email protected]" and "journalctl -xe" for details.
完成了,可以 ping 1.1.1.1 试试看了
如果没出问题,这里应该能显示你的IP:195.140.1xx.xxx <=如果这里是空的,大概是失败了
22#
 楼主| 发表于 2021-4-6 00:19:22 | 只看该作者
aipage 发表于 2021-4-5 21:23
用了一键脚本,也得出IP了。但是PING不通呢
sed: can't read wgcf-profile.conf: No such file or director ...

没有成功喔,你这个ip是nat64的ip
23#
 楼主| 发表于 2021-4-6 00:22:22 | 只看该作者
red233 发表于 2021-4-5 19:33
大佬,脚本重启就无效了,搞个自启的吧

理论上重启后还是有效的,我没重启过

你可以用这个试试
  1. echo "$(command -v wg-quick) up wgcf" >> /etc/profile
复制代码
25#
发表于 2021-4-6 01:02:07 | 只看该作者
嗷嗷 发表于 2021-4-6 00:19
没有成功喔,你这个ip是nat64的ip

那是没得救咯?
26#
 楼主| 发表于 2021-4-6 01:11:12 | 只看该作者
aipage 发表于 2021-4-6 01:02
那是没得救咯?


重新运行脚本喔,应该是你开了nat64,导致ip不干净wgcf没生成配置喔
27#
发表于 2021-4-6 01:26:11 | 只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
28#
发表于 2021-4-6 01:32:46 | 只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
29#
 楼主| 发表于 2021-4-6 02:20:45 来自手机 | 只看该作者
red233 发表于 2021-4-6 01:32
这段代码怎么取消,有点烦每次重连ssh 都重新执行一次

cat /etc/profile | grep -v "$(command -v wg-quick) up wgcf" > /etc/profile
30#
发表于 2021-4-6 08:33:11 来自手机 | 只看该作者
嗷嗷 发表于 2021-4-6 01:11
重新运行脚本喔,应该是你开了nat64,导致ip不干净wgcf没生成配置喔

我重新运行了很多次都不行,怎么关闭你说的nat64?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2024-5-20 22:23 , Processed in 0.061044 second(s), 9 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表