Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
slow ipsec/l2tp/ppp speeds [update]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
mjedrzejewski
n00b
n00b


Joined: 10 Sep 2014
Posts: 2

PostPosted: Wed Sep 10, 2014 9:53 am    Post subject: slow ipsec/l2tp/ppp speeds [update] Reply with quote

[UPDATE]
I tested the 3.10 kernel also. 3.10 behaves correctly, I have 5.5MB/s average download speed over VPN.

Any Ideas what might have changed? the kernel .config was basically copied and pasted around.

[/UPDATE]

Hi,

I'm new here, so there. Using gentoo for a long long time, always got everything going smoothly
using the manuals, but this time I'm completely stuck.

I'm trying to set-up a l2tp/ipsec VPN server. Emerged the system and needed packages:

net-dialup/ppp
net-dialup/rp-l2tp
net-firewall/ipset
net-firewall/iptables
net-misc/strongswan

I had the kernel configured, if needed I'll paste it later.

from rp-l2tpd.conf:
Code:

lns-pppd-opts "10.3.15.2: mtu 1410 mru 1410 require-mschap-v2 refuse-mschap nodefaultroute asyncmap 0 auth hide-password lock debug proxyarp"


my ipsec.conf:
Code:

config setup
    charondebug="cfg 3, chd 3, knl 3, lib 3"

conn mobile_l2tp
    authby=psk
    keyexchange=ikev1
    left=1.1.1.1 (ip of my vpn server)
    leftsubnet=0.0.0.0/0
    right=%any
    rightsourceip=%dhcp
    rightsubnet=0.0.0.0/0
    rightprotoport=17/%any
    leftprotoport=17/1701
    type=tunnel
    auto=add

chap-secrets is populated with logins/passwords and ips.

Everything basically works. I can connect using Windows, Android and Linux, logs show no errors (ppp devices show up with correct ips).
But the download/upload speeds at the client side are at most 300KB/s. Which is terribly slow for two quad core 3Ghz Xeons.
I should be getting around 6MegaBytes per second over VPN (WAN on my VPN and my test client is 100Mbit) .

Let me note, that right now I'm on kernel 3.14. On 3.12 the connection was slightly faster - I was getting around 1MB/s. Still not acceptable, but
a lot better.

Let me add that I ruled out CPU issues. All cores are mostly idle, the rp-l2tpd process sits at about 5% utilization.

What could be the cause? can anyone help me out?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum