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

solved #334

Open
Stone-RGB opened this issue Dec 8, 2024 · 0 comments
Open

solved #334

Stone-RGB opened this issue Dec 8, 2024 · 0 comments

Comments

@Stone-RGB
Copy link

udpspeeder、openvpn服务器安装在亚马逊EC2,udpspeeder 客户端安装在vmware虚拟机上,网络桥接到win10,openvpn 客户端安装在win10上面。

udpspeeder server: ./speederv2_amd64 -s -l0.0.0.0:4096 -r127.0.0.1:1194 -k "passwd" -f2:4 --timeout 1
udpspeeder client:./speederv2_x86 -c -l0.0.0.0:3333 -r18.183..*:4096 -k "passwd" -f2:4 --timeout 1

UDPSpeeder 服务器和客户端看起来是连接成功的,运行情况如下:
udpspeeder运行情况

openvpn客户端提示连接超时,日志提示:Server poll timeout, trying next remote entry...

在服务器端已执行网络设置如下:
echo 1 >/proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -s 10.222.0.0/16 ! -d 10.222.0.0/16 -j MASQUERADE

我自己判断是udpspeeder服务器收到数据后没能成功把数据转发给openvpn服务器,请教一下该如何才能连上VPN,非常感谢各位大神。

openvpn 服务器配置文件:
local ... #ec2私有IP
port 1194
proto udp
dev tun
ca ca.crt
cert server.crt
key server.key
dh dh.pem
auth SHA256
tls-crypt tc.key
topology subnet
server 10.222.2.0 255.255.255.0
ifconfig 10.222.2.1 10.222.2.6
push "block-outside-dns"
keepalive 10 120
cipher AES-128-GCM
user nobody
group nogroup
persist-key
persist-tun
verb 3
crl-verify crl.pem
explicit-exit-notify

openvpn 客户端配置文件:
client
dev tun100
proto udp
remote 192.168.3.179 3333 #虚拟机
nobind
remote-cert-tls server
dhcp-option DNS 8.8.8.8
ignore-unknown-option block-outside-dns block-ipv6
keepalive 3 20
verb 3
cipher none
auth none
mssfix 1200
sndbuf 4000000
rcvbuf 4000000
#txqueuelen 4000
mute-replay-warnings

-----BEGIN CERTIFICATE-----


-----END CERTIFICATE-----


-----BEGIN CERTIFICATE-----


-----END CERTIFICATE-----


-----BEGIN PRIVATE KEY-----


-----END PRIVATE KEY-----


-----BEGIN OpenVPN Static key V1-----


-----END OpenVPN Static key V1-----

redirect-gateway def1
route ... 255.255.255.255 net_gateway #**是ec2 的ip

openvpn 客户端日志:
[Dec 8, 2024, 15:43:24] EVENT: DISCONNECTED ⏎[Dec 8, 2024, 15:43:24] OpenVPN core 3.10.1 win x86_64 64-bit OVPN-DCO built on Oct 14 2024 13:53:17
⏎[Dec 8, 2024, 15:43:24] Frame=512/2112/512 mssfix-ctrl=1250
⏎[Dec 8, 2024, 15:43:24] EVENT: RESOLVE ⏎[Dec 8, 2024, 15:43:24] Contacting 192.168.3.179:3333 via UDP
⏎[Dec 8, 2024, 15:43:24] EVENT: WAIT ⏎[Dec 8, 2024, 15:43:24] WinCommandAgent: transmitting bypass route to 192.168.3.179
{
"host" : "192.168.3.179",
"ipv6" : false
}

⏎[Dec 8, 2024, 15:43:24] Connecting to [192.168.3.179]:3333 (192.168.3.179) via UDP
⏎[Dec 8, 2024, 15:43:34] Server poll timeout, trying next remote entry...
⏎[Dec 8, 2024, 15:43:34] EVENT: RECONNECTING ⏎[Dec 8, 2024, 15:43:34] EVENT: RESOLVE ⏎[Dec 8, 2024, 15:43:34] Contacting 192.168.3.179:3333 via UDP
⏎[Dec 8, 2024, 15:43:34] EVENT: WAIT ⏎[Dec 8, 2024, 15:43:34] WinCommandAgent: transmitting bypass route to 192.168.3.179
{
"host" : "192.168.3.179",
"ipv6" : false
}

⏎[Dec 8, 2024, 15:43:34] Connecting to [192.168.3.179]:3333 (192.168.3.179) via UDP

@Stone-RGB Stone-RGB changed the title 请教一下各位大神,使用最新版本的openvpn,无法建立连接,但是看起来udpspeeder是在正常工作的。 solved Dec 8, 2024
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

1 participant