I have RB951G-2HnD home router and remote server with Debian 10. I want to pass some traffic through the server instead of my providers WAN. Target addresses will be selected manually. Im using latest Winbox 3.41
What I have done:
- installed openvpn server at Debian 10 machive.
- created .ovpn config that recieves no routes at client side.
- tested this config to be correct by running it at my PC on Win10. Manually routed all traffic into the tunnel - tunnel works with 100+ mbits at each direction.
- added and imported the same .ovpn file to my RB951G. Certificates installed and OVPN client interface created automatically. I UNchecked “Add default route” mark at the ovpn client settings because I do NOT want to pass all traffic to ovpn.
- added secondary routing table with only one route “0.0.0.0/0 goes to remote ovpn gateway”.
- added traffic filtration using Firewall mangle and added some of internet addresses to Firewall address list.
- pings to these filtered addresses are going fine, traceroute tells that traffic to there addresses going through ovpn, and everything seems to be fine.
But…
- The Speed of traffic through ovpn is insanely slow - like at the best DialUp days I see at the browser how pictures are loaded sloooooow, line by line, and etc.
What am I doing wrong?
================================================
By the way, I tried to randomly set or unset any options that may somehow change anything and found that if I SET “Add default route” mark at the ovpn client optins (related route is automatically added to the main routing table) the bottleneck disappears. Why do it have such behaviour and what is generally going wrong?
Config export, only related lines: https://pastebin.com/raw/zsRCDYgN