When the brain holes open during running, I want to write a simple VPN Server by myself. I searched for a lot of ready-made libraries or components, but I'm curious about how to implement it if I want to develop it in Python? When the brain holes open during running, I want to write a simple VPN Server by myself. I sea
It's mineOperating Environment: Aliyun Hong Kong node Cloud Server , operating system:CentOS 6.3 64-bitThe term explanation: PPTP is one of the VPN server types, PPP is a Data Link layer protocol, iptables is an IP packet filtering system.Body 1server-side installation software 1.1First installPPP, command: [Root@kur
Description
RouterOS Server ip:172.31.101.80
RouterOS version: RouterOS V6.15
Demand:
To configure the PPTP VPN server on the RouterOS server, the PPTP VPN Client dial-in network segment is: 172.31.101.60-
172.31.101.79
Debian uses pptp as the VPN Server-Linux Enterprise Application-Linux server application information. The following is a detailed description. 1. Since my system version is linux-image-2.6.18-6-686> Linux kernel 2.6.15-rc1, there is no need to manually install mppe and dkms
2. install the pptpd service apt-get install pptpd
3. Edit the/etc/pptpd. conf file.
Deb
. 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
How does the WinXP system set up a VPN proxy server?
First, click on the bottom left corner of the desktop "Start", then click "Control Panel" click "Network and Internet Connection"
Click "Create a network connection to your work location"
Select "Virtual Private network Connection", then click "Next" button;
Enter the name of the connection in the input field, use
Running when the brain hole open, think of yourself to write a simple VPN server, search, there are a lot of ready-made libraries or components, but curious if you want to use Python development, how can it be implemented?
Reply content:If just implementing a simple VPN, personal use, is really very simple. The code amount is up to hundreds of lines.
Because the
are encrypted with IPSec. An internet-based PPTP server is a VPN server that uses the PPTP protocol, one with an interface on the Internet and another interface on an intranet.
PPTP connection process and tunnel maintenance
The PPTP control connection is established between the PPTP client IP address and the PPTP server
RRAS in Windows Server 2003 supports the single NIC VPN feature, and its deployment is simple.
First, enable RRAS.
Open RRAS in Windows Server2003 's administrative tools and enable it.
If your system does not turn off the Windows Firewall and Internet Connection Sharing service is not turned off, you will be prompted to close it before you click "Configure and Enable Routing and Remote Access" to cont
Most of the previous introduction, as well as the introduction of various online, most of them are on the Win7 system download to establish VPN connection, but today's small series to introduce this technique is not the same, how to set up a VPN server in the Win7 system, it should be to set up a virtual network, let others to connect you, Instead of being active
Build a vpn code server in CentOS
I. Preparation
1. First, you must buy a foreign server. If you only want to experience the Download force process, we recommend a $3.99 centos6 server. Purchase URL: budgetvm.com.2. Get the corresponding configuration and connect to the server
Do not look down, according to use PRITUNL to build VPN server to do relatively simple
The instructions on the Internet are all rubbish, all kinds of chaos. It's a waste of my time.
Installing PPTP server
sudo yum install pptpd-y
Edit
Vim/etc/ppp/chap-secretsJoin a line
User name pptpd Password *Start pptpd
Service PPTPD StartTry to connect to the client,
Existing MySQL database server, set up intranet access, local MySQL client connection must be through the VPN virtual network to Connect. Now there is another apache, PHP server needs to connect to MySQL server data table through php, ask how to implement
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
Installing PPTP server Yum Install Pptpd-yEdit Vim/etc/ppp/chap-secretsJoin a line User name pptpd Password *Start pptpd Service PPTPD StartTry to connect to the client, establish a PPTP connection, remember to go to advanced settings, open use MPPE encryption, or not even Even after, can't surf the internet, first disconnect, behind still have work to do. Set VPN IP segment echo "Localip 192.168.0.1" >>/et
The following log contents appear for each connection failure when Rehl (619 error) occurs when the PPTP VPN server connection is set up to view the system log [Cat/var/log/messages |grep pptpd]:
Gre:read (fd=6,buffer=80504c0,len=8196) from PTY failed:status =-1 Error = Input/output error, usually caused by unexpec Ted Termination of PPPD, check option syntax and PPPD logsCtrl:pty Read or GRE write failed
Install necessary software
Apt-get install pptpd kernel-tree-2.6.10 kernel-package
Apt-get install kernel-patch-mppe libc6-dev
Decompress Linux kernel
Cd/usr/src
Tar xjf kernel-source-2.6.10.tar.bz2
Configure the kernel
I copied an existing config file.
Cd/usr/src/kernel-source-2.6.10
Cp/boot/config-2.6.10-1-686-smp. config
Compile the kernel
Make-kpkg -- added-patches debian, mppe -- append-to-version-686-smp-mppe -- initrd kernel_image
Then go to t
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.