You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ip netns add blah
ip netns exec blah ip link add d0 type dummy
ip netns exec blah ip link set d0 up
ip netns exec blah ip -4 addr add 10.0.0.1 dev d0
ip netns exec blah ip -6 addr add fc00::1 dev d0
ip netns exec blah ip -4 route add default dev d0
ip netns exec blah ip -6 route add default dev d0
ip netns exec blah ip link set lo up
ip netns exec blah iptables -t nat -A OUTPUT -p tcp -s 10.0.0.1 --syn -j REDIRECT --to-ports 9040
ip netns exec blah ip6tables -t nat -A OUTPUT -p tcp -s fc00::1 --syn -j REDIRECT --to-ports 9040
ip netns exec blah gost -L "red://127.0.0.1:9040" -L "red://[::1]:9040" -F "socks5://127.0.0.1:1080?netns=/proc/1/ns/net"
IPv4 works:
# ip netns exec blah curl 1.1.1.1
<html>
<head><title>301 Moved Permanently</title></head>
<body>
<center><h1>301 Moved Permanently</h1></center>
<hr><center>cloudflare</center>
</body>
</html>
But IPv6 doesn't:
# time ip netns exec blah curl http://[2606:4700:4700::1111]
^C
real 0m32.745s
user 0m0.003s
sys 0m0.005s
Socks5 Log:
V2Ray 5.16.1 (V2Fly, a community-driven edition of V2Ray.) Custom (go1.22.2 linux/amd64)
A unified platform for anti-censorship.
2024/10/19 20:12:03 tcp:127.0.0.1:47594 accepted tcp:1.1.1.1:80 [proxy]
2024/10/19 20:12:12 tcp:127.0.0.1:57020 accepted tcp:[2606:4700:4700::1111]:20480 [proxy]
Easy to reproduce:
IPv4 works:
But IPv6 doesn't:
Socks5 Log:
GOST Log:
The text was updated successfully, but these errors were encountered: