pfSense and OpenVPN speeds
-
@stephenw10 thanks for asking.
I am in the process of pinpointing an issue that might not even have to do with openvpn. I think multiple things overlay each other and give different results at different times:
basically I have 2 pfSense plus 24.11 boxes in 2 sites "office" and let's call it "data center" ;-)
They are crossconnected with a wireguard site2site vpn, only the LANs are routed over wireguard.
The data center pfSense is also a ovpn-gw for customers, they access VMs via VPN. The VMs run on a 3-server proxmox cluster in the data center.
All that works fine.They run a linux VM there also that provides update-zips for the customers via sftp. If the customer accesses the related URI via the DNS-record pointing to the WAN-IP of the datacenter-pfSense the download speed is fine.
If my customer accesses the same URI (using the same DNS-name and in turn WAN-IP of datacenter) from behind the office pfSense it's way slower. a tenth or so.
That's the initial issue, and I am digging through everything ...
Yes, sftp isn't cool, I try to switch to scp.
We outruled wireguard-usage. We used the IP only.
I upgraded the VM in terms of software, and edited the vCPU to "host". I switched to a virtio-NIC. etc etcI have to ask the coder there if his software (the one his customers upgrade by pulling stuff via sftp) maybe caches something and that leads to this difference.
In the process of debugging yesterday I had times when the datacenter-pfsense maxxed out its CPU (that's the 2100), so I tried to remove load there by disabling telegraf etc ... / in the afternoon the load was low and the sftp-transfer still wasn't higher. The vCPU in the VM also plays a role etc
I am quite sure that I have routing and NAT set up OK. The line there is 1 Gbit/s symmetric, that also shouldn't be the bottleneck.
Still scratching my head here ;-)thanks for reading all this, ideas welcome.
-
Hmm, so you're sure that traffic is not going over the tunnel in either direction when clients access it from behind the 2100?
Can you test between those sites using something else just to check there's no throttling in the route?
-
@stephenw10 I might do tests from my laptop when I visit them some day.
I even tested against a fresh debian VM, that made no real difference.
mtr looked correctly, btw.
That's a tricky one ;-)
-
Hmm, well the first thing I would do is confirm you can actually pass traffic between those sites at a reasonable speed when not using a tunnel. Because I've seen countless customers who were diagnosing VPN issues for weeks when the actual issue was some bad router/link.
-
@stephenw10 I agree. I think I did iperf-tests some months ago that looked much better than the scp/sftp-stuff. Sure, it has to be faster, but it was way better.
I will repeat that asap.