Configure the vpn pptp connection type in CentOS6
Today, I want to connect to the remote VPN Server on my CentOS6, but after the following two packages are installed, there is no PPTP option when I select the VPN connection type in the connection configuration.
$
sudo
yum
install
pptp
$
sudo
yum
install
NetworkManager-openswan
I checked it and didn't understand why. Later, I found a package named pptp-setup when I used the "sudo yum search pptp" command to find the package. I installed it with a try.
$
sudo
yum
install
pptp-setup
Then I tried to connect to the VPN Server, and it was very easy to connect. below is my usage
$
sudo
pptpsetup--create<tunnel>--server<server>--username<username>--password<password>--start
* Tunnel is an alias. You can use it as needed.
* The last parameter -- start indicates that the instance is started immediately after configuration.
After running the preceding command, you will receive a message similar to the following:
[root@webtools]
#pptpsetup--createvpn1--serverx.x.x.x--usernamexx--passwordxx--start--encrypt
Usinginterfaceppp0
Connect:ppp0<-->
/dev/pts/2
CHAPauthenticationsucceeded
MPPE128-bitstatelesscompressionenabled
local
IPaddress192.168.10.101
remoteIPaddress192.168.10.201
This indicates that the connection has been established. You can use ifconfig to view the connection status.
To delete a connection, run the following command:
$
sudo
pptpsetup--delete<tunnel>