How to solve the problem that the VPN client connection to the Linux server is slow to slow down

  

Some Linux users find that the access speed is slow when using the VPN client to connect to the Linux server. Then, how should we encounter this problem? Solve it? Today, Xiaobian has brought you a solution to this problem. Let's take a look at the users who need it.

There are three solutions:

Method One: Edit the source code pptpd increase MTU;

Method Two: Use a script to increase the MTU interface up after pptp ;

Method 3: Do not use MPPE encryption;

Although the first one solves the problem fundamentally, it is abandoned because of the level problem; the third is due to the cancellation of transmission encryption, psychologically I feel unsafe and give up;

Method 2

/etc/ppp/ip-up.d/mppefixmtu.sh

#!/bin/sh

CURRENT_MTU=”`ip link show $1 |  Grep -Po ‘(?<=mtu )([0-9]+)’`”

FIXED_MTU=”`expr $CURRENT_MTU + 4`”

Ip link set $1 mtu $FIXED_MTU

Make sure the script has executable permissions

chmod 755 /etc/ppp/ip-up.d/mppefixmtu.sh

This MTU plus After 4, you can be compatible with Windows MPPE.

The above is the problem of slower access when using the VPN client to connect to the Linux server. If you encounter this problem, then use the above method to solve it.

Copyright © Windows knowledge All Rights Reserved