hwdsl2 / setup-ipsec-vpn

Scripts to build your own IPsec VPN server, with IPsec/L2TP, Cisco IPsec and IKEv2
Other
25.38k stars 6.33k forks source link

Bandwidth Limitation #981

Closed rudiana587 closed 3 years ago

rudiana587 commented 3 years ago

Hello, Your project was very good, good job. So i want ask about bandwidth, is there on this script was bandwidth limit on 15mbps ? i was installed on aws ec2 with region sg and badwidth spec say up to 25gbps, then i installed your script everything is good without problem and connection beetwen server client is very good with ping is about 35. I have connection about 20mbps, i was tested speed without vpn on national connection it's have 20mbps also i was tested on international (sg) connection have 20mbps, but then when speedtest with vpn on national or international (sg) is just about 15mbps, i was test with protocol l2tp, xauth, ikev2 same problem speed just 15mbps. Maybe you can help me or give same explanation about this ?

letoams commented 3 years ago

On Wed, 9 Jun 2021, rudiana587 wrote:

problem and connection beetwen server client is very good with ping is about 35. I have connection about 20mbps, i was tested speed without vpn on national connection it's have 20mbps also i was tested on international (sg) connection have 20mbps, but then when speedtest with vpn on national or international (sg) is just about 15mbps, i was test with protocol l2tp, xauth, ikev2 same problem speed just 15mbps. Maybe you can help me or give same explanation about this ?

You should see a performance difference between l2tp and ikev2. If not than perhaps you have other issues (lower MTU due to IPsec causing fragmentation and sending of more packets?)

Are you using esp=aes_gcm ?

Paul

hwdsl2 commented 3 years ago

@rudiana587 Hello! The VPN setup scripts do not set any bandwidth limit. Due to VPN overhead such as encryption, it is normal to have reduced bandwidth when using the VPN. Here are some example benchmarks [1].

As @letoams mentioned, generally IKEv2 mode [2] would have better performance compared to IPsec/L2TP mode. The client configurations created by the IKEv2 helper script specify the AES-GCM cipher for improved performance.

[1] https://libreswan.org/wiki/Benchmarking_and_Performance_testing [2] https://github.com/hwdsl2/setup-ipsec-vpn/blob/master/docs/ikev2-howto.md