Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Softether VPN - Strange thing with Upload speed #553

Closed
vampywiz17 opened this issue Jun 1, 2018 · 11 comments
Closed

Softether VPN - Strange thing with Upload speed #553

vampywiz17 opened this issue Jun 1, 2018 · 11 comments

Comments

@vampywiz17
Copy link

vampywiz17 commented Jun 1, 2018

Hello there,

i set a local bridge interface (not TAP, a second virtual interface my VM) and my Upload speed is constant 355 kb/sec

But, if i enable SecureNAT and after disable it, the Upload speed up to 60 Mbit/sec. It is good, but if i restart the server, it need to do it again (SecureNAT enable/disable) to normalize the Upload speed.

I use latest PPA ubuntu release.

My system: ubuntu 18.04 (Proxmox VM)

Edit: if i restart only softether VPN service the Upload speed is still normal. It only need to do the above method, if i restart the server.

@vampywiz17 vampywiz17 changed the title Softether VPN - Strange thing with download speed Softether VPN - Strange thing with Upload speed Jun 1, 2018
@vampywiz17
Copy link
Author

My dirty solution:

I create a shell script, that running after reboot:

!/bin/bash
/usr/bin/vpncmd localhost /SERVER /HUB:vpn /CMD SecureNatEnable
/bin/sleep 15
/usr/bin/vpncmd localhost /SERVER /HUB:vpn /CMD SecureNatDisable

It solve my problem.

@spirritus
Copy link

spirritus commented Jun 3, 2018

Hi there, thanks for the help. Our server has the same problem with limited upload speed. Sadly this solution did not work. The Uplaod from the server remains at the slow rate.

@vampywiz17
Copy link
Author

If you ebable SecureNAT, the Upload speed is better? (i know that is generate high CPU, it only just test)

@spirritus
Copy link

spirritus commented Jun 3, 2018

Nope, speed stays the same about 190kb/s

@vampywiz17
Copy link
Author

vampywiz17 commented Jun 3, 2018

Strange... Try to create TAP device?

@spirritus
Copy link

Ok, tested with another host. Test with Network Traffic Test Tool. Fullduplex Test 2 connections. Testserver on connecting side, Testclient on local network

bridge and securenat on then off:
VPNClient to VPNServer 30Mb/s
VPNServer to VPNClient 300kb/s

tap no modification:
VPNClient to VPNServer 30Mb/s
VPNServer to VPNClient 300kb/s

tap and securenat on off:
VPNClient to VPNServer 30Mb/s
VPNServer to VPNClient 8Mb/s

A bit on the odd side maybe related or not, if the Testserver and Testclient roles are swapped to Testclient on connecting side, Testserver on local network, the following results:
tap and securenat on off:
VPNClient to VPNServer 46Mb/s
VPNServer to VPNClient 1.5Mb/s

@spirritus
Copy link

spirritus commented Jun 4, 2018

I am an idiot.

The two NICs connecting the firewall and the vpn gateway were set to 100mbit instead of 1000 mbit. However the connection to the internet is "only" a 100 mbit line. Setting the NICs on the fw and vpn to 1000 yields the following results.

Test with Network Traffic Test Tool. Fullduplex Test 2 connections. Testserver on connecting side, Testclient on local network
bridge and securenat on then off:
VPNClient to VPNServer 43Mb/s
VPNServer to VPNClient 38Mb/s

Ok that is at least close to symmetric.

Test with Network Traffic Test Tool. Fullduplex Test 2 connections. Testclient on connecting side, Testserver on local network
bridge and securenat on then off:
VPNClient to VPNServer 76Mb/s
VPNServer to VPNClient 71Mb/s

That is damn near linespeed and symetrical.
But why differ the total speeds so much depending on who innitates the test...
Anyway thx for the on/off tip, that really helped.

@ooijiyoung
Copy link

Using SecureNAT, Try disable/set "DisableIpRawModeSecureNAT" and "DisableKernelModeSecureNAT" to '1' in Virtual Hub Extended Option.

This fix my issue on slow download speed

@davidebeatrici davidebeatrici added this to Issues in VPN Server/Bridge Sep 6, 2018
@r-mach
Copy link

r-mach commented Sep 10, 2018

Hello,

Just leaving a message to say that I have the exact same problem here (on proxmox lxc ubuntu 16).
Perfect with secureNat. I'm using a pfSense firewall (which isn't throttling, I tried it...).
I'm using the latest beta release of SoftEther.
65Mb/s up/down with SecureNat

65Mb/s up without, 500Kb/s download (from the client perspective)...

Best regards

@BPiepmatz
Copy link

Hey,

running SE on Ubuntu 18. With secureNat I get nearly speeds as without using VPN. Using my own DHCP server (dnsmasq) I get high download speeds but only 1/10 of my previous upload. Couldn't figure out what the reason is so far...

best

@greg-jaunt
Copy link

I was seeing exactly what r-mach was seeing... 60 megabits/s up and about 300 kilobits/s down from the Softether server. Oddly, ooijiyoung's solution worked for me even with SecureNAT disabled and I am now getting wire speed through ipsec in both directions.

FWIW, I've seen a lot of other people with the same issue trying to run Softether in a container and looking at docker-related causes, but I'm even getting wire speed through the container now with the above two Virtual Hub Extended Options set.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

8 participants