VPN Client Connection Linux server access slows down how to solve

Source: Internet
Author: User

VPN Client Connection Linux server access slows down how to solve

There are three ways to solve the problem:

Method One: Edit pptpd source code, increase MTU;

Method Two: Use a script to increase the MTU after the PPTP interface is connected to the up;

Method III: Do not use MPPE encryption;

The first, although fundamentally solves the problem, but because the level problem gives up; the third because of the cancellation of transmission encryption, psychological feel unsafe, also gave up;

Method Two

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

#!/bin/sh

current_mtu= "' IP link Show $ | Grep-po ' (<=MTU) ([0-9]+) ' "

fixed_mtu= "' Expr $CURRENT _mtu + 4 '"

IP link set $FIXED MTU _MTU

Make sure the script has executable permissions

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

This allows the MTU plus 4 to be compatible with Windows MPPE.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.