Experimental environment:
(1) The company all game servers, only allow an extranet IP to access, need to maintain the server, must first dial to the designated extranet IP.
(2) The company and headquarters communications are to take the VPN channel, the company's internal IP and VPN devices are different network segments, need to be under the VPN device to conn
. VPN can be understood in this way, Linux clients use a virtual network device PPP0 (Windows clients can also be understood as a VPN virtual network card), connected to the server's virtual networking device Ppp0, so that the client joined the server-side ppp0 on the network. Localip is the IP address that can be assigned to the server-side ppp0, and REMOTEIP wi
By step:
Operating Environment Centeros 6
* First run the following command:
cat /dev/net/tun The return must be:Cat:/dev/net/tun:file Descriptor inRun:cat /dev/pppThe return must be:Cat:/dev/ppp:no such device or address
If the above return is not the result of these two, please contact the VPS Customer service to open PPP and Tun permissions.
################################################@1--Install PPP
Yum install gcc
yum Install PPP
@ Remember to load GCC
@2-----Install
1) Install DKMS package
RPM--install dkms-1.12-2.noarch.rpm
This is supported by dynamic kernel modules. You need to use it at the kernel level to simplify installation and configuration. This will make almost everything transparent to the user during the installation process.
2) Install the PPP kernel module
RPM--install kernel_ppp_mppe-0.0.4-2dkms.noarch.rpm
The Point-to-Point Protocol installs your "modem" or any device that makes up your connection. This is part of your core.
3 Determi
1. Introduction to VPN in Linux
Generally,LinuxLowerVPNThe implemented protocol stack can be divided into application layer and Network LayerVPN, Application LayerVPNFor exampleSSL VPNWell-known open-source implementations include:OpenvpnAnd the network layer is usuallyIPSec VPN.SSL VPNThe text will not be described.OpenvpnThere are many materials, so you can study them on your own.
ActuallyLinux2.6At le
In Linux, any software accesses the Internet through proxy (non-vpn). in windows, SocksCap32, ProxyCap, FreeCap, and Proxifier can access the Internet through proxy. This blog has previously introduced: http://www.2cto.com/net/201207/142900.html ,...
In Linux, any software accesses the Internet through proxy (non-vpn).
be done using the skb_copy_expand function. Fill in the ipip header field after the allocation.
At this point, most of the logic of the ipip protocol has been clearly described. The following is a function value note.
Static int
This function is the place where the application interacts. To put it bluntly, it is the place where the Linux system commands ifconfig and IP commands are used as an excuse, creating tunnels, deleting tunnels, changing IP a
Most of the logs for logging on to the linux pptp vpn user name pptpd are stored in files such as/var/log/messages,/var/log/daemon. However, after careful reading, the user name is not found in the logs, I don't know which account the user used to log on. So I looked at pppd man and found some environment variables, such as IPLOCAL and IPREMOTE. After testing, I found that PEERNAME is the user name, in this
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 becaus
My Vyatta operation has been very good, with Ros and Cisco do tunnel connected to Vyatta run OSPF used to turn the wall, the effect has been good. When you use Windows to connect to a VPN, however, you often open the page timeout, but the ping is normal everywhere, so you suspect an MTU or MSS problem.
After several twists and turns, when the Web page timed out, a large number of exceptions occurred in the Vyatta log:
21:02:39 Xirang kernel: [483817
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.