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
Code: Select all
# 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
Thank you in advance for your suggestions.
P.S.
used this guide https://www.cactusvpn.com/tutorials/set ... k-routers/