From getting started to being proficient in hacker linux, Ma Hao handled the VPN server agenda in three minutes :. VPN introduction. how VPN works. VPN data transmission protocol. VPN server construction case: the distance between
.
vi /etc/pptpd.confUncomment the following content
localip 192.168.0.1remoteip 192.168.0.234-238,192.168.0.245The IP address range that can be obtained after the external computer connects to the vpn through pptp and the IP address settings of the server.
4. Add an account for login
vi /etc/ppp/chap-secretsThe format is as follows:
# client server secret IP addressescqc pptpd 123456 *The user name
VPN is widely used in the current network. In windows, you can refer to the relevant documents to easily build a VPN network, this experiment is based on the VPN setup experiment on the linux platform. The linux Server under two VMS on the experimental platform and the Ip ad
installation of GCC, this is the C compiler class library (if the server already has the need not to install)Command is: Yum-install gcc, then install just download the free VPN agent software on it, the command is: RPM (online free VPN agent software related tutorials A lot, do not explain the details);
2, configure the VPN server: first open the
VPN (Virtual Private Network) is an extension of a Private Network. It can simulate a point-to-point Private connection through a shared Internet or public Network connection, send data between a local computer and a remote computer.It has good confidentiality and is not subject to authorization, so that both parties can establish a free and secure point-to-point connection. The following describes how to quickly build a
VPN under Linux-general Linux technology-Linux technology and application information, the following is a detailed description. Today, I configured a LINUX VPN (single Nic). The machine can connect to the
address retrieved from the address pool)
"Public" pptpd "wgzx" "192.168.1.202" (you can specify the ip address allocated to the client)
3. Client Configuration
To use the windows Network Connection wizard, you only need to select "connect to VPC through ineternet (V)" to complete the configuration step by step. Note: the IP address of the VPN Server must be the
address that the client can communicate with the vpn service after connecting, that is, the client may access the vpn Server through this address)(2) define the IP segment of the client. (Use-to connect consecutive ip addresses, and use commas to separate ip addresses of di
The English full name of the VPN is "virtual private network", translation comes from "The fictitious specialized network". As the name suggests, virtual private network we can understand it as a virtual out of the enterprise internal line. It can establish a proprietary communication line between two or more corporate intranets that are connected to the Internet in different places via a special encrypted communication protocol, like a dedicated line
Run pppd over ssh (the simplest linux vpn)
SBA 2003.1.10
In order to pass the firewall of udp packets to qq
Tried many methods
It's good to use snake's socks5 proxy. You can use windows as an Internet host.
In linux, stunnel only forwards packets that do not support qq udp.
So I thought that vpn pptpd is a very good
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 assi
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
/options.ppt pd file, or set "*" to automatically identify the server. "secret" corresponds to the logon password. "IP addresses" corresponds to the IP address of the client that can be dialed in. If you do not need to set any special restrictions, you can set it. 5. set IP disguised forwardingOnly remote computers connected to the VPN can ping each other after IP disguised Forwarding is configured, so as
Linux uses pptpconfig to connect to the vpn Server-Linux Enterprise Application-Linux server application information. The following is a detailed description. If it is in Windows XP, you can directly connect to the vpn Server by using the XP dial-up software. The configurati
Topology:
Note: The company's Intranet environment requires domain support;
The front-end two VPN servers are Linux operating systems;
A green line indicates the physical link of the network environment;
Red indicates the authentication method;
# When a user requests a VPN connection, use the domain account to log on. DNSPOD determines whether it is a China Tele
in the/etc/ppp/options.ppt pd file, or be set to "*" to automatically identify the server; "secret" corresponds to the login password; "IP addresses" corresponds to the IP address of the client that can be dialed in. if you do not need to make any special restrictions, you can set it.
5. set IP disguised forwarding
Only remote computers connected to the VPN can ping each other after IP disguised forwardi
address of the client that can be dialed in. If you do not need to set any special restrictions, you can set it.
5. set IP disguised forwarding
Only remote computers connected to the VPN can ping each other after IP disguised Forwarding is configured, so as to achieve sharing like a LAN. Run the following command to set the parameters:
# Echo 1>/proc/sys/net/ipv4/ip_forward
You can put this command in the
client.
Linux Enterprise Edition 4
1. software installation
Install the RPM package. Note: The RPM packages are installed sequentially. Last installation with kernel.
The sequence of installing the RPM Package is:
(1 ). Dkms-2.0.5-1.noarch.rpm
(2 ). Pptpd-1.3.0-0.i386.rpm
(3 ). Ppp-2.4.3-5.rhel4.i386.rpm
(4 ). Kernel_ppp_mppe-0.0.5-2dkms.noarch.rpm
Installation Command: First use rpm? Install ivh. if you
Article title: set up a VPN for a single Linux Nic and use NAT to share the Internet. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
The server uses shorewall as the firewall. In f
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.