Jump to content

pptp VPN client for Linux?


Darkelve
 Share

Recommended Posts

Hi,

 

I'm trying to -in Linux- connect to an external computer from work by use of VPN and pptp.

 

I managed to install a package called 'pptp' (there was a SuSe RPM for it) and ran the GUI that is provided.

 

It seems to work, it says:

 

Using interface ppp0

pptp-php-gtk: monitoring interface ppp0

Connect: ppp0 <--> /dev/pts/5

MPPE 128-bit stateless compression enabled

local  IP address *******

remote IP address *******

pptp-php-gtk: pppd process exit status 0

pptp-php-gtk: routes added to remote networks

pptp-php-gtk: connected

 

--------------------------------------------------------

bytes in: 72    -    bytes out: 78

packets in: 6  -    packages out: 6

 

So I guess that means the authentication works (or the 'tunneling', or whatever it is that's being done). However, what I need is a graphical way to login remotely to the (Win2000) system.

 

Can anyone help with this?

 

 

Darkelve

Link to comment
Share on other sites

but don't you need to be running MS terminal services?

 

incidentally I have been playing with nxserver/client lately and it is really impressive between two linux boxes but it also claims windows server functionality. (again I presume it has to be terminal services )

 

http://www.nomachine.com/

 

The linux-linux is top class... we use some very expensive remote access stuff at work and this is certainly as good over LAN.

 

Suse RPM's are available too.

Link to comment
Share on other sites

here's my setup for my connection to work.

Server Tab:

name - Monarch

Server - smtp.monarch.co.nz

Domain - LOKI

Username - paul

Password - ***********

 

Routing Tab:

Client to LAN checked

edit network routes

-->Network 192.168.4.0/24

--> Name - Monarch

 

DNS:

Automatic checked

 

Encryption:

Require Microsoft Point-to-Point Encryption (MPPE) checked

Refuse to Authenticate with EAP checked

 

MISC:

nothing checked

 

required modules (or built into kernel)

apoc root # lsmod | grep pp
ppp_mppe_mppc          15108  0 
pppoe                  10944  0 
pppox                   2952  1 pppoe
ppp_deflate             5120  0 
ppp_synctty             8192  0 
ppp_async               9472  0 
ppp_generic            21396  7 ppp_mppe_mppc,pppoe,pppox,ppp_deflate,bsd_comp,ppp_synctty,ppp_async
slhc                    6656  1 ppp_generic
apoc root #

I had to patch my kernel with linux-2.6.10-mppe-mppc-1.2.patch.gz

and patched ppp with the same patch.

 

I think mandrake might have the kernel patched already tho' ... not sure

cat /usr/src/linux/.config | grep PP
CONFIG_X86_USE_PPRO_CHECKSUM=y
# CONFIG_BLK_DEV_IDEFLOPPY is not set
# CONFIG_SCSI_PPA is not set
# CONFIG_SCSI_SYM53C8XX_IOMAPPED is not set
# CONFIG_HAPPYMEAL is not set
# CONFIG_HIPPI is not set
CONFIG_PPP=m
# CONFIG_PPP_MULTILINK is not set
# CONFIG_PPP_FILTER is not set
CONFIG_PPP_ASYNC=m
CONFIG_PPP_SYNC_TTY=m
CONFIG_PPP_DEFLATE=m
CONFIG_PPP_BSDCOMP=m
CONFIG_PPP_MPPE_MPPC=m
CONFIG_PPPOE=m
# CONFIG_PPDEV is not set
# CONFIG_APPLICOM is not set
CONFIG_VIDEO_CPIA_PP=m
CONFIG_X86_MPPARSE=y

 

ls /usr/portage/distfiles/ppp-2.4.3*
/usr/portage/distfiles/ppp-2.4.3-mppe-mppc-1.1.patch.gz
/usr/portage/distfiles/ppp-2.4.3.tar.gz

Link to comment
Share on other sites

one more thing.

I had problems with DNS

if I used the DNS server on my work network, then I could connect, but all internet traffic went thru my VPN

if I used my local DNS server, then none of the work machine names that I need would resolve.

 

easy fix

don't set any DNS entries in pptpconfig, and use the your local DNS server, then edit you /etc/hosts

 

127.0.0.1       apoc.loudas.com apoc localhost.localdomain localhost
192.168.4.3     balder balder.monarch
192.168.4.7     loki loki.monarch
192.168.4.9     frigga frigga.monarch
192.168.4.1     odin odin.monarch
192.168.4.10    fusion fusion.monarch
# IPV6 versions of localhost and co
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

 

notice all my entries for 192.168.4.x for the machines I need to talk to while VPN'ed in

:)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...