Slow OpenPVN



  • Hi,

    I've openvpn configured and as VPN Client I'm getting arround 3 Mbit's Downstream and 5 to 6Mbits upstream (Tested on speedtest).

    My ISP connection is 100Mbps downstream / 20 Upstream.

    Any hint to get this better?

    Thanks!

    PS- Tested with UDP and TCP… same thing...


  • Rebel Alliance Global Moderator

    and who is your vpn provider - what do they support?



  • @johnpoz:

    and who is your vpn provider - what do they support?

    Myself :)

    I'm connecting to my pfsenser openvpn server where I do have 100mbit/20mbit


  • Rebel Alliance Global Moderator

    So your an outside client using pfsense openvpn as the server, and what connection does this remote client have - does it also have a 100/20 connection?  At most you could hope for if that was the case would be max of 20/20.. Since your pfsense could only upload to your client at its max upload speed of 20.



  • @johnpoz:

    So your an outside client using pfsense openvpn as the server, and what connection does this remote client have - does it also have a 100/20 connection?  At most you could hope for if that was the case would be max of 20/20.. Since your pfsense could only upload to your client at its max upload speed of 20.

    The client has 50/50.

    I'm getting speeds of 3Mbit download and 5 to 6mbit upload - client side.


  • Rebel Alliance Global Moderator

    well the best you could hope for is 20/20 but yeah that is a bit shoddy if your 100/20 at the server side.

    Do you have net.inet.ip.fastforwarding = 1 set in your system tunables?

    edit: So just did a quick test on mine.  Which runs on a n40l as a vm.  I have a 50/10 connection at home.  So just connected with my phone through it and got 10/10 which is what you would expect since my home connection upload is only 10.  So while I could upload to it a bit faster (have 30+ here on my phone via wireless), the download side on the remote client would be limited to what my server can upload at.  And when I go to upload, the limit to the speed test server would also be limited by my servers upload speed.

    So you when doing a speed test on something past your vpn server, your going to be hit by the upload limit both ways.

    This was using udp - let my switch it to tcp and test that.




  • Well… A reboot solved (pfsense reboot).

    Now I get good speeds :))


  • Rebel Alliance Global Moderator

    good speed as in 20/20?  Or something a bit less?  Using tcp or udp?

    Do you have
    net.inet.ip.fastforwarding = 1
    set or no?



  • Arround 18mbit up and down.

    UDP

    No other tweaks



  • I have one openVPN (transnational, Europe) between 16/8Mbit DSL and 100/100 MBit fibre where the maximum I get is 200-300 kBit (no joke, most time around 56 kbit, reminds me of some times very long ago ;-) ). Very frustrating latencies, apparently the NSA has only limited capacity on that route :-D