Community discussions

MikroTik App
 
Altermk
just joined
Topic Author
Posts: 2
Joined: Sun Oct 10, 2021 9:46 am

L2TP/ipsec to ExpressVPN - low speed

Sun Oct 10, 2021 4:48 pm

Hello all!
My device is hap ac lite with RouterOS 6.48.1.
I'm trying to set up L2TP/ipsec and getting frustratingly low speed - like 3Mbps download and almost 0Mbps upload(tested using speedtest.net)
Below you can see my config
# Define common vars
:global ipSecSecret "XXXXXXX"
:global vpnUser "XXXXXX"
:global vpnPassword "XXXXXX"
:global usaSrv "usa-newyork-2-ubuntu-l2tp.xvnet.net"
 
# Create L2TP connections to ExpressVPN server
/interface l2tp-client add allow=chap,mschap1,mschap2 connect-to=$usaSrv disabled=no ipsec-secret=$ipSecSecret keepalive-timeout=disabled name=NY-l2tp password=$vpnPassword use-ipsec=yes user=$vpnUser


/ip dns set allow-remote-requests=yes servers=8.8.8.8,8.8.8.4
 
 # Allow ipsec
/ip firewall filter add action=accept chain=forward comment="defconf: accept in ipsec policy" ipsec-policy=in,ipsec
/ip firewall filter add action=accept chain=forward comment="defconf: accept out ipsec policy" ipsec-policy=out,ipsec
 
# Mark packets for VPN
/ip firewall mangle add action=mark-routing chain=prerouting new-routing-mark=NY-mark passthrough=yes src-address=192.168.88.1-192.168.88.254
 
# NAT
/ip firewall nat add action=masquerade chain=srcnat comment="defconf: masquerade" ipsec-policy=out,none out-interface-list=WAN
# ...vpn-related traffic
/ip firewall nat add action=masquerade chain=srcnat out-interface=NY-l2tp
 
# Route for vpn-related traffic
/ip route add distance=1 gateway=NY-l2tp routing-mark=NY-mark
The vpn service itsef definitely is not the issue, as my friend configured it in a few clicks in wizard on his asus router and the speed test shown almost the same speed as without vpn.
Thank you in advance for your suggestions.

P.S.
used this guide https://www.cactusvpn.com/tutorials/set ... k-routers/
 
Altermk
just joined
Topic Author
Posts: 2
Joined: Sun Oct 10, 2021 9:46 am

Re: L2TP/ipsec to ExpressVPN - low speed

Tue Oct 12, 2021 5:27 pm

And CPU does not seem to be the bottleneck - never seen above 27 %

Who is online

Users browsing this forum: samcard1999 and 89 guests