I. background for security considerations, the management IP addresses of all network devices in the lab are set in the lab Intranet and connected to the campus network through routers. Therefore, to remotely configure devices in the lab, you must first enter the Intranet. The above factors have been taken into account when designing the lab network, so we purchased a router TL-R478 with VPN functionality. The VPN configuration of the vro is not described here. I have configured PPTPVPN on this vro. The following uses PPTP as an example. 2. The desktop environment I use is Fedora.
I. background
For security considerations, the management IP addresses of all network devices in the lab are set in the lab Intranet and connected to the campus network through routers. Therefore, to remotely configure devices in the lab, you must first enter the Intranet.
The above factors have been taken into account when designing the lab network, so we purchased a router TL-R478 with VPN functionality. The VPN configuration of the vro is not described here. I have configured PPTP VPN on this vro. The following uses PPTP as an example.
Ii. Process
My desktop environment is Fedora 19 XFCE, and Gnome should be similar.
First, install the PPTP client and the PPTP module of NetworkManager.
Sudo yum install NetworkManager-pptp-y
After the installation is complete, click the NetworkManager icon in the tray, click VPN connection-configure VPN, and click Add in the pop-up dialog box.
Select the network type to be added, and select the point-to-point tunnel protocol PPTP as needed.
On the VPN tab, enter the required information. Enter the address of the pptp vpn Server in the gateway. Enter the user name and password as needed.
If the server performs point-to-point encryption (MPPE), you also need to click Advanced and enable point-to-point encryption. The point-to-point encryption option must be checked when accessing the VPN function provided by the TP router. Otherwise, the connection will fail. Pppd [7017]: LCP terminated by peer is displayed in/var/log/messages.
After the configuration is complete, you can save the test.
In this way, the default gateway is set to VPN. If you only want to redirect access from some CIDR blocks, you need to modify the pptp configuration.
For more information about Fedora, see Fedora topics page http://www.linuxidc.com/topicnews.aspx? Tid = 5