vimalkumar.in

/blog

Howto: Connect to a PPTP VPN Server Using Kvpnc

I have been trying this for quite sometime as I did not want to reboot to Windows when I wanted a VPN connection. Tried a number of approaches. Many did not work (ex: installing Networkmanager-pptp and Bryan’s method using YaST). Just gave KVpnc a try and it worked the very first time! Here’s what I did.

Create a new profile in KVpnc

Using KVpnc requires you to enter the root password!

Create a new profile in Kvpnc

Add new profile

Add new profile

Click “Next”.

Type selection

Choose PPTP here

Type selection

Click “Next”.

PPTP settings

PPTP settings

You could experiment with other settings once you get a working connection.

Click “Next”.

User settings

Type in your username and password for connecting to the VPN server.

User settings

Network settings

Default is fine

Network settings

Click “Next”.

Virtual IP Address

Left unchecked.

Virtual IP Address

Connection status check

Uncheck everything.

Connection status check

Connection options

Check if you want to connect after creating profile.

Connection options

General settings

Give a name and description for the profile and type in the IP address of the VPN server under ‘VPN Gateway’

General settings

Finish

Ready to go!

Finish

Note

KVpnc is still a KDE 3 application. It was available in the repos for openSUSE. If you are having troubles connecting, have a look at /etc/ppp/peers/pptp. Here is how mine looks.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# PPTP options
#
# Plugin passwordfd enables us to pipe the password to pppd, thus we
# don't have to put it into pap-secrets and chap-secrets.
#
plugin passwordfd.so
#
noauth
#linkname adsl
#nocrtscts
#local
require-mppe
mtu 1492
mru 1492
# switch off all compressions (this is a must)
noaccomp
nopcomp

Comments