Virtual Private Network (VPN) refers to the technology for establishing a private network on a public network.
VPN is a remote access technology that uses public links to build private networks. It mainly uses tunnel technology, encryption and decryption technology, key management technology, and user and device identity authentication technology.
Method 1:
1) set VPN settings-> set general-> gateway, optional-> User Name + password-> and remove "availabel to all users"
2) advanced-> select "use point-to-point encryption (MPPE)"-> remove "mschap" and OK
Symptoms:
Click Connect VPN on Ubuntu to display "VPN service startup failed"
Open the terminal and run sudo Vim/var/log/syslog To view the system logs:
Apr 11 01:27:55 MVC-PC NetworkManager [2652]: VPN plugin state changed: 3
Apr 11 01:27:55 MVC-PC NetworkManager [2652]: VPN connection 'vpn pa' (CONNECT) reply already ed.
Apr 11 01:27:55 MVC-PC NetworkManager [2652]: VPN connection 'vpn pa' failed to connect: 'No VPN secrets! '.
Apr 11 01:27:55 MVC-PC NetworkManager [2652]: Error disconnecting VPN: cocould not process the request because no VPN connection was active.
The prompt here is: "No VPN secrets !", Ubuntu develops a security policy called keyring (key ring) for network connection operations, that is, the network can be used only after the key ring authentication.
Open the system-> preferences-> password and encryption key to view the VPN that was previously set and can be used normally. The newly set VPN has no relevant records.
Solution:
1. Create a VPN first, and fill in only the target server and user name. Remember to remove the check box before "availabel to all users.
If you try to connect, a box will pop up to fill in the user's password. At this time, you can fill in the real or false information. If there is no accident, the system should prompt "VPN connection failed" instead of the previous "VPN service failed to start ".
2. if this is the case, you can follow the VPN vendor's setup help to change it. Check "MPPE" and remove "mschap", but check "mschap2 ", remove "all users available". After the settings are complete, we recommend that you restart the network manager. (SUDO/etc/init. d/network-manager restart)
3. If the connection is successful, there should be a small lock to start conversion, and then prompt to enter the password, enter the correct password, select the following two check boxes for future use.
Method 2:
1) VPN settings-> IPv4 settings-> "automatically retrieve (VPN) addresses only"
2) enter the DNS server in 208.67.222.222, 8.8.8.8, or 8.8.8.4 (free DNS server)
3) set the routs, refer
Bytes -------------------------------------------------------------------------------------------------------------
Configure VPN in win7
Configuration steps:
1) control panel-> network and Internet-> network and sharing center
2) set up a new connection or network-> connect to a workspace-> next-> NO, create a new connection-> use my Internet connection (VPN)
3) Internet address-> enter the VPN proxy IP address-> next-> enter user name + password-> OK
Reference recommendations:
Set VPN in Ubuntu
Ubuntu VPN connection for Dummies