我试图建立自己的openvpn服务器。想连接我的设备,如电话,电视,平板电脑,笔记本电脑等等。
我的VPS系统: CPU (4x):套接字指定: CPU 0
Type: Central Processor
Family: Other
Manufacturer: QEMU
Version: pc-i440fx-6.2
Voltage: Unknown
External Clock: Unknown
Max Speed: 2000 MHz
Current Speed: 2000 MHz
Status: Populated, Enabled
Upgrade: Other
L1 Cache Handle: Not Provided
L2 Cache Handle: Not Provided
L3 Cache Handle: Not Provided
Serial Number: Not Specified
Asset Tag: Not Specified
Part Number: Not Specified
Core Count: 2
Core Enabled: 2
Thread Count: 1
Characteristics: None内存:物理内存阵列
Location: Other
Use: System Memory
Error Correction Type: Multi-bit ECC
Maximum Capacity: 2 GB
Error Information Handle: Not Provided
Number Of Devices: 1因此,我认为这将可以作为openvpn服务器使用。
我上网的速度是>600 mbit/s,我的家庭网络速度是>500 mbit/S,所以我想我可以达到100 mbit/成都。所以我不..。我刚到了2-5 mbit/S。
我的心声:
server.conf:
local xx.xx.xx.xx
port xxxxx
proto udp
dev tun
ca ca.crt
cert server.crt
key server.key
dh dh.pem
auth SHA512
tls-crypt tc.key
topology subnet
server 10.8.0.0 255.255.255.0
sndbuf 393216
rcvbuf 393216
push "sndbuf 393216"
push "rcvbuf 393216"
push "redirect-gateway def1 bypass-dhcp"
ifconfig-pool-persist ipp.txt
push "dhcp-option DNS 1.1.1.1"
push "dhcp-option DNS 1.0.0.1"
keepalive 10 120
cipher AES-128-CBC
user nobody
group nogroup
persist-key
persist-tun
verb 3
crl-verify crl.pem
explicit-exit-notifyclient.conf:
client
dev tun
remote xx.xx.xx.xx xxxxx
remote-cert-tls server
tun-mtu 8192
mssfix 0
proto udp
cipher AES-128-CBC
ncp-disable
fast-io
txqueuelen 2000
pull
nobind
reneg-sec 0
resolv-retry infinite
verb 3
persist-key
persist-tun
remote-random
mute-replay-warnings
route-delay 10当客户端连接时,cpu并不是实际的重载,即10%。
我的系统是坏的,还是别的什么?它是一个新鲜的ubuntu22.04LTS操作系统,没有其他aplications,只有openvpn。
客户端:iPhone13pro与5G和WLAN一样,也测试了一台windows笔记本电脑。
谢谢你的帮助。
打招呼,
艾瑞克
发布于 2022-08-31 01:47:06
看看您的配置,似乎您知道对您的OpenVPN服务器和客户端进行internet速度优化的要点。
我不认为你的VPS硬件会在这里垮台。
唯一能想到的是你和VPS之间的位置,它会在速度上遭受很大的损失。
另一种情况是OpenVPN本身--与Wireguard相比,OpenVPN的速度确实因为开销而大幅下降。
我希望这能帮到你。
https://serverfault.com/questions/1109484
复制相似问题