You are not logged in.

#1 2023-03-05 16:20:07

Registered: 2021-05-03
Posts: 62

vpn slow speed

Hello, I am trying to setup VPN to my home network. First I tried to setup it on the router(xiaomi 3g Openwrt) but VPN speed just 15 mb(wiregoard/openvpn both slow speed). After I shared the port(port forward) from public ip to local laptop and run http server on laptop. Speed still 15-17 without vpn now. After I connected laptop directly to the ISP wire, and did same test with http and file, this time speed was around 100 mb(it is goal). Next I setup openvpn on laptop with connected ISP cable, but speed still 15 mb over vpn network. I failed to setup wireguard on laptop(no ping).

The goal to have vpn with speed close to the ISP limit(100 mb). Please help me.

working openvpn config laptop:

port 1194
proto udp
tun-mtu 1400
comp-lzo no
dev tun2
ca /etc/openvpn/server/ca.crt
cert /etc/openvpn/server/server.crt
key /etc/openvpn/server/server.key
dh /etc/openvpn/server/dh.pem
tls-crypt /etc/openvpn/server/tc.key
crl-verify /etc/openvpn/server/crl.pem
auth SHA256
topology subnet
;ifconfig-pool-persist ipp.txt
;push "redirect-gateway def1"
push "redirect-gateway local def1"
push "route-gateway dhcp"
push "dhcp-option DNS"

push 'comp-lzo no'

keepalive 10 120
cipher AES-256-GCM
;cipher AES-128-CBC
;cipher AES-128-GCM
;ncp-ciphers AES-128-GCM
user v
group v
verb 3

not working wireguard from laptop:

server (laptop):
Address = 
PrivateKey = 
PostUp = iptables -A FORWARD -i wg0 -j ACCEPT; iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
PostDown = iptables -D FORWARD -i wg0 -j ACCEPT; iptables -t nat -D POSTROUTING -o eth0 -j MASQUERADE

PublicKey = 
AllowedIPs =
Endpoint =  public_ip:port
PersistentKeepalive = 25

client :
Address =
PrivateKey = 

AllowedIPs =
Endpoint = public_ip:port
PersistentKeepalive = 25
PublicKey =

problem with wireguard that there is no ping when I run it on laptop. On router wireguard setup  working, but with speed of 15 mb.

wireguard problem on laptop solved. Regarding vpn speed, I tried it on newer(2022 year) cellphone and speed is good, but on the old(2020 year) there is still problem with speed.

Last edited by ihitmani (2023-03-05 19:55:43)


Board footer

Powered by FluxBB