You are not logged in.

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

ihitmani
Member
Registered: 2021-05-03
Posts: 63

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
local MY_PUBLIC_IP
proto udp
tun-mtu 1400
compress
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
server 10.8.0.0 255.255.255.0
;ifconfig-pool-persist ipp.txt
;push "redirect-gateway def1"
push "redirect-gateway local def1"
push "route-gateway dhcp"
push "dhcp-option DNS 8.8.8.8"

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
persist-key
persist-tun
verb 3

not working wireguard from laptop:

server (laptop):
[Interface]
Address = 10.200.200.1/24 
PrivateKey = 
DNS = 8.8.8.8
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

[Peer]
PublicKey = 
AllowedIPs = 10.200.200.2/32
Endpoint =  public_ip:port
PersistentKeepalive = 25


client :
[Interface]
Address = 10.200.200.2/32
DNS = 192.168.10.1
PrivateKey = 

[Peer]
AllowedIPs = 0.0.0.0/0
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.

upd:
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)

Offline

Board footer

Powered by FluxBB