Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

双栈使用的问题 #10

Open
zzlinwq opened this issue Jul 19, 2023 · 8 comments
Open

双栈使用的问题 #10

zzlinwq opened this issue Jul 19, 2023 · 8 comments

Comments

@zzlinwq
Copy link

zzlinwq commented Jul 19, 2023

如下图;有一台VPS在日本,只有IPv6,没有V4, 国内有一台linux小主机,有V4和V6,想通过这台linux小主机连接日本V6 机器出墙,咋搞呢,大佬支支招。
20230719

其中OP路由拨号上网,获得V4公网IP一个和若干V6公网IP,路由下的PC想通过树莓派和日本VPS连接科学上网

@woodlyer
Copy link
Owner

我感觉你写的命令没什么毛病啊。 理论上你的PC直接通过socks5://192.168.1.113:1080就可以上网了呀。
有什么问题吗?

@woodlyer
Copy link
Owner

树莓派只要能连上ipv6的地址,肯定用的是v6的栈呀。

@zzlinwq
Copy link
Author

zzlinwq commented Jul 20, 2023

报错如附件
什么问题呢?
root@ubuntu16~# .gost -L 1080 -F kc.txt

@zzlinwq
Copy link
Author

zzlinwq commented Jul 20, 2023

too many colons in address

@woodlyer
Copy link
Owner

woodlyer commented Jul 21, 2023

ipv6 的地址是需要 放在[ ]里面的,你可以试一下。
[::0] 相当于 ipv4的0.0.0.0 ,但是在双栈机子上,ipv4 和ipv6的9000端口都会监听。

./gost  -L :1080  -F kcp://[2001:b033:a81c:a00::1031:d001]:9000 
./gost -L kcp://[::0]:9000

@zzlinwq
Copy link
Author

zzlinwq commented Jul 21, 2023

客户端报错
客户端报错.txt

@zzlinwq
Copy link
Author

zzlinwq commented Jul 21, 2023

服务端报错
服务端报错.txt

@woodlyer
Copy link
Owner

woodlyer commented Jul 25, 2023

客户端报错 客户端报错.txt

 ./gost  -L :1080  -F kcp://[[2001:b033:a81c:a00::1031:d001]:9000

[[ ???

你这个vps只有ipv6地址,访问不了v4的一些地址。

 ./gost -L kcp://[::0]:9000
dial tcp 8.8.4.4:53: connect: network is unreachable"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants