VERY WEIRD ISSUE - L2TP getting HORRIBLE results 1mbps

Post your questions about SoftEther VPN software here. Please answer questions if you can afford.
Post Reply
vix
Posts: 57
Joined: Sat Feb 28, 2015 5:38 pm

VERY WEIRD ISSUE - L2TP getting HORRIBLE results 1mbps

Post by vix » Thu Feb 02, 2017 10:44 pm

Hi guys, so I love Softether! But having a very weird issue, I run a VPN server off a dedicated server and have about 10-20 users connected at any given time

When I first install everything, with about 100 ips and 100 virtual hubs & 100 local bridges everything works perfect

get about 20mbps on L2TP and 50mbps when user connected via Softether

but then when i add up to 400 ips and 400 virtual hubs & 400 local bridges then stuff starts getting weirdd

getting only about 1mbps on L2TP EXTREMELY SLOW but still getting 40-50mbps when user connected via Softether

WHAT IS CAUSING THIS?! Why is there such a huge drop off with L2TP but Softether stay releatively the same speed, what can i do to get L2TP back up to 20mbps??

Any ideas or suggestions would be much appreciated, this is driving me crazy, thanks!

moatazelmasry
Posts: 336
Joined: Sat Aug 15, 2015 7:41 pm

Re: VERY WEIRD ISSUE - L2TP getting HORRIBLE results 1mbps

Post by moatazelmasry » Fri Feb 03, 2017 12:30 am

Two questions:

- How much CPU of the server is being used?
- Why do you need 400 Hubs and local bridges? I hope you are not creating a Hub and a brige for each user

vix
Posts: 57
Joined: Sat Feb 28, 2015 5:38 pm

Re: VERY WEIRD ISSUE - L2TP getting HORRIBLE results 1mbps

Post by vix » Fri Feb 03, 2017 12:47 am

moatazelmasry wrote:
> Two questions:
>
> - How much CPU of the server is being used?
> - Why do you need 400 Hubs and local bridges? I hope you are not creating a
> Hub and a brige for each user

CPU usage does seem to be high, it goes from 50-105% constantly, but then if this is impacting L2TP why does it have no negative consequences on Softether?

Unfortunately I am creating a hub & bridge per user because these are dedicated ips that cannot be shared between users, so each user is assigned a specific dedicated ip

Or is there a better way to do it so that I dont have to create that many hubs or bridges? But you have to keep in mind these users have to be able to be the only ones to access that specific dedicated ip, other users shouldn't be able to access other peoples dedicated ip. So that's why I'm thinking this is the only way to do it or am I wrong?

Thanks for your help!

moatazelmasry
Posts: 336
Joined: Sat Aug 15, 2015 7:41 pm

Re: VERY WEIRD ISSUE - L2TP getting HORRIBLE results 1mbps

Post by moatazelmasry » Fri Feb 03, 2017 1:59 am

Ok. Obviously, the more users you have, the less throughput per user, especially that there's alot of encryption decryption going around. But you mentioned that SoftEther PVN protocol is working fine, so we will have to discard that fact for now.

A solution I can think of is to delegate the IP allocation process to freeradius. Obviously you need to use freeradius as well for user authentication
https://wiki.freeradius.org/guide/dhcp- ... allocation

Hope this helps

vix
Posts: 57
Joined: Sat Feb 28, 2015 5:38 pm

Re: VERY WEIRD ISSUE - L2TP getting HORRIBLE results 1mbps

Post by vix » Fri Feb 03, 2017 2:23 am

moatazelmasry wrote:
> Ok. Obviously, the more users you have, the less throughput per user,
> especially that there's alot of encryption decryption going around. But you
> mentioned that SoftEther PVN protocol is working fine, so we will have to
> discard that fact for now.
>
> A solution I can think of is to delegate the IP allocation process to
> freeradius. Obviously you need to use freeradius as well for user
> authentication
> https://wiki.freeradius.org/guide/dhcp- ... allocation
>
> Hope this helps

Yeah one thing to remember is there is never a moment where more than 20 users are connected at once even though there are 400 hubs / bridges etc

Thanks for the suggestion! Can you elaborate on how freeradius would help? Cause we already assign one static ip per hub, so once the user connects I dont think that uses up much resources cause that's already specified as the only ip available per that hub and again not that many users are connecting at once. So I dont think this is the part that's using up a lot of resources

And it still doesn't make sense to me how L2TP can be at 1mbps but users using Softether still get 50mbps maybe there's a setting I can change or something to make L2TP get more speed / cause clearly Softether is having no issues getting good speed

moatazelmasry
Posts: 336
Joined: Sat Aug 15, 2015 7:41 pm

Re: VERY WEIRD ISSUE - L2TP getting HORRIBLE results 1mbps

Post by moatazelmasry » Fri Feb 03, 2017 10:45 am

Freeradius would help, if you disable DHCP in SE and use the static IP allocation of freeradius. This way you need only 1 hub and one local bridge where all users are defined and their authentication is delegated to to freeradius. I'm not sure though that SE supports this kind of radius attributes (please test)
400 Hubs and bridges is a really bad idea.

If security is no concern, or just for the sake of fun, you could try to tweek the L2TP client to use lower encryption, for example 768-bit MODP Diffie Hellmann, Encryption: AES-CBC or none, etc..
Maybe you can even disable the encryption altogether just to test whether this affects speed

vix
Posts: 57
Joined: Sat Feb 28, 2015 5:38 pm

Re: VERY WEIRD ISSUE - L2TP getting HORRIBLE results 1mbps

Post by vix » Tue Feb 07, 2017 6:33 am

moatazelmasry wrote:
> Freeradius would help, if you disable DHCP in SE and use the static IP
> allocation of freeradius. This way you need only 1 hub and one local bridge
> where all users are defined and their authentication is delegated to to
> freeradius. I'm not sure though that SE supports this kind of radius
> attributes (please test)
> 400 Hubs and bridges is a really bad idea.
>
> If security is no concern, or just for the sake of fun, you could try to
> tweek the L2TP client to use lower encryption, for example 768-bit MODP
> Diffie Hellmann, Encryption: AES-CBC or none, etc..
> Maybe you can even disable the encryption altogether just to test whether
> this affects speed

Yeah converting everything to freeradius sounds like quite the headache but your 2nd suggestion sounds interesting, I'd be curious to test that if anything just out of curiosity

Do you happen to know what commands I would need to use to lower encryption and then to remove encryption all together for L2TP

moatazelmasry
Posts: 336
Joined: Sat Aug 15, 2015 7:41 pm

Re: VERY WEIRD ISSUE - L2TP getting HORRIBLE results 1mbps

Post by moatazelmasry » Tue Feb 07, 2017 9:13 am

If you are on linux, you can setup up an L2tp using xl2tpd and strongswan. Here's a tutorial using openswan(the predecessor of openswan)
http://www.jacco2.dds.nl/networking/linux-l2tp.html
https://wiki.archlinux.org/index.php/Op ... ient_setup

To disable the encryption altogether in strongswan, specifiy the ciphersuite equal null in ipsec. In /etc/ipsec.conf in the "conn %default" directive add the following:

conn %default
ike = null
esp = null
ah = null

But before doing that, try to get an L2TP connection with strongswan up and running, then try this bit

Cheers

vix
Posts: 57
Joined: Sat Feb 28, 2015 5:38 pm

Re: VERY WEIRD ISSUE - L2TP getting HORRIBLE results 1mbps

Post by vix » Tue Feb 07, 2017 11:51 pm

moatazelmasry wrote:
> If you are on linux, you can setup up an L2tp using xl2tpd and strongswan.
> Here's a tutorial using openswan(the predecessor of openswan)
> http://www.jacco2.dds.nl/networking/linux-l2tp.html
> https://wiki.archlinux.org/index.php/Op ... ient_setup
>
> To disable the encryption altogether in strongswan, specifiy the
> ciphersuite equal null in ipsec. In /etc/ipsec.conf in the "conn
> %default" directive add the following:
>
> conn %default
> ike = null
> esp = null
> ah = null
>
> But before doing that, try to get an L2TP connection with strongswan up and
> running, then try this bit
>
> Cheers

Yes I'm using CentOS but the only problem is that I need it to work in connection with Softether so it has to be through the Softether L2TP, for several reasons regarding management

So is there anyway to change the encryption for the L2TP that Softether makes without needing to setup a separate L2TP?

vix
Posts: 57
Joined: Sat Feb 28, 2015 5:38 pm

Re: VERY WEIRD ISSUE - L2TP getting HORRIBLE results 1mbps

Post by vix » Mon Feb 13, 2017 7:50 am

Yes I'm using CentOS but the only problem is that I need it to work in connection with Softether so it has to be through the Softether L2TP, for several reasons regarding management

So is there anyway to change the encryption for the L2TP that Softether makes without needing to setup a separate L2TP?

moatazelmasry
Posts: 336
Joined: Sat Aug 15, 2015 7:41 pm

Re: VERY WEIRD ISSUE - L2TP getting HORRIBLE results 1mbps

Post by moatazelmasry » Mon Feb 13, 2017 10:58 pm

No, you don't need to create a separate L2TP server. I'm talking about confiugrations for the L2TP client

The server will mostly honer what the client suggests, even disabling encryption

thisjun
Posts: 2458
Joined: Mon Feb 24, 2014 11:03 am

Re: VERY WEIRD ISSUE - L2TP getting HORRIBLE results 1mbps

Post by thisjun » Thu Mar 02, 2017 5:52 am

If you use tagged VLAN, I recommend using VLAN ID of security policy.
or
If you create many localbridges to one device, I recommend creating new virtual hub and create a localbridge with the new virtual hub then create cascade connection with each hubs. Because, many localbridges on a device cause many duplication packets and lower performance.

Post Reply