VPN in Linux

Source: Internet
Author: User
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 VPN, QQ can also be connected after the connection, and PING the domain name, IE cannot open the webpage (everything works normally after the VPN is disconnected, it means there is no problem with the computer ).

Basic Environment:

Linux ip 192.168.0.120
Gateway: 192.168.0.1

IP address after VPN connection: 192.168.1.1

Use route add? Net 192.168.1.0/24 gw 192.168.0.120 added a route

Enter
Iptables-t nat-a postrouting-s 192.168.1.0/24-o eth1-j SNAT -- to 192.168.0.120
Iptables-F

The experiment between the client and LINUX on the same vro requires that the connection can be established through the VPN (currently, only QQ is supported, and it is depressing)
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.