LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-13-2004, 08:24 AM   #1
khtse
Member
 
Registered: Sep 2003
Location: Hong Kong
Distribution: Slackware 9.1
Posts: 43

Rep: Reputation: 15
VPN in Slackware


Dear all,
To access the news server at my university, I first have to log in to the VPN. In windows, this was easy, but I am finding myself spending more and more time in Slackware and less and less time on Windows.

Amongs the headaches is how do I go about connecting to the VPN on linux?

Any help would be useful. I suppose I can log back to windows to check the news server but...... It seems stupid, as that is all that I seem to be doing on Windows now that I've settled in to Slack.

Thanks in advanced =]
 
Old 02-13-2004, 01:12 PM   #2
Gates1026
Member
 
Registered: Sep 2003
Location: Iowa
Distribution: Slackware 9.1
Posts: 155

Rep: Reputation: 30
I use a vpn connection from my apartment to my work just about every day. Not too bad to set up and use. I originally started out with RedHat, then moved to Slackware around Christmas time so I installed all of the packages from the website using rpm2tgz <rpmname>. I could not however get the php frontend for slackware to work like it should. So after all of the setup I had to configure it command line by using the options in the config script /usr/sbin/pptp-command. The route commands can be tricky, so if you cant figure them out I can help you out at a later time when I am around my computer.

Here is the website for the pptpclient

Hope this helps!
 
Old 02-14-2004, 02:22 PM   #3
ivan.tg
LQ Newbie
 
Registered: Feb 2004
Location: Yambol, BULGARIA
Distribution: Ubuntu, Slackware, FreeBSD
Posts: 19

Rep: Reputation: 0
Unhappy

Hi! I got this simillar problem about VPN... Here is the situation... I need to connect to a Linux PPTP server but over a LAN network.... How should i configure pptp and pppd in this case.... and i couldn't find the file /usr/sbin/pptp-command
When i try to connect everything seems to be ok... and with netstat i could see the connection between my comp. and the server's port 1723... but i can't open any website... or is it a routing problem :\
Any idea?

Thank you!
 
Old 02-14-2004, 02:31 PM   #4
nesware
Member
 
Registered: Jan 2004
Location: belgium
Distribution: Slackware
Posts: 117

Rep: Reputation: 15
on my site http://www.nesware.net/adsl you can find info how to open a PPTP connection with this ADSL provider in the netherlands.. just make a few changes in the IP addresses your making the pptp connection to and the logon info
 
Old 02-19-2004, 08:14 AM   #5
ivan.tg
LQ Newbie
 
Registered: Feb 2004
Location: Yambol, BULGARIA
Distribution: Ubuntu, Slackware, FreeBSD
Posts: 19

Rep: Reputation: 0
hi everyone!
i can't and i can't and i can't get this thing to work!!!....
here is what i get when i start the conection:
======================================================
root@host7:/etc/ppp# pppd call dtun debug dump logfd 2 nodetach
pppd options in effect:
debug # (from command line)
nodetach # (from command line)
logfd 2 # (from command line)
dump # (from command line)
noauth # (from /etc/ppp/options.pptp)
name zl7star # (from /etc/ppp/peers/dtun)
remotename PPTP # (from /etc/ppp/peers/dtun)
# (from /etc/ppp/options.pptp)
pty pptp 192.168.236.1 --nolaunchpppd # (from /etc/ppp/peers/dtun)
mru 1500 # (from /etc/ppp/options.pptp)
mtu 1500 # (from /etc/ppp/options.pptp)
ipparam dtun # (from /etc/ppp/peers/dtun)
using channel 12
Using interface ppp0
Connect: ppp0 <--> /dev/pts/2
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x7efcb994> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x1 <asyncmap 0x0> <auth chap 81> <magic 0x56ec68b8> <pcomp> <accomp>]
sent [LCP ConfNak id=0x1 <auth chap MD5>]
rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0x7efcb994> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x2 <asyncmap 0x0> <auth chap MD5> <magic 0x56ec68b8> <pcomp> <accomp>]
sent [LCP ConfAck id=0x2 <asyncmap 0x0> <auth chap MD5> <magic 0x56ec68b8> <pcomp> <accomp>]
rcvd [CHAP Challenge id=0x1 <9b96e81b9d98608a81563c23744a59990347>, name = "192.168.236.1"]
sent [CHAP Response id=0x1 <6fcd927875c220382fdd8aa41047179b>, name = "zl7star"]
rcvd [CHAP Success id=0x1 "Welcome to center."]
Remote message: Welcome to center.
sent [IPCP ConfReq id=0x1 <addr 192.168.236.79> <compress VJ 0f 01>]
sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
rcvd [IPCP ConfReq id=0x1 <addr 192.168.236.1> <compress VJ 0f 01>]
sent [IPCP ConfAck id=0x1 <addr 192.168.236.1> <compress VJ 0f 01>]
rcvd [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
sent [CCP ConfAck id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
rcvd [IPCP ConfNak id=0x1 <addr 10.10.50.138>]
sent [IPCP ConfReq id=0x2 <addr 10.10.50.138> <compress VJ 0f 01>]
rcvd [CCP ConfAck id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
Deflate (15) compression enabled
rcvd [IPCP ConfAck id=0x2 <addr 10.10.50.138> <compress VJ 0f 01>]
local IP address 10.10.50.138
remote IP address 192.168.236.1
Script /etc/ppp/ip-up started (pid 1092)
Script /etc/ppp/ip-up finished (pid 1092), status = 0x0
rcvd [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
sent [CCP ConfReq id=0x2 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
sent [CCP ConfAck id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
sent [CCP ConfReq id=0x2 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
rcvd [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
sent [CCP ConfAck id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
sent [CCP ConfReq id=0x2 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
rcvd [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
sent [CCP ConfAck id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
sent [CCP ConfReq id=0x2 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
rcvd [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
sent [CCP ConfAck id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
sent [CCP ConfReq id=0x2 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
rcvd [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
sent [CCP ConfAck id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
sent [CCP ConfReq id=0x2 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
rcvd [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
sent [CCP ConfAck id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
sent [CCP ConfReq id=0x2 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
rcvd [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
sent [CCP ConfAck id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
sent [CCP ConfReq id=0x2 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
rcvd [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
sent [CCP ConfAck id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
sent [CCP ConfReq id=0x2 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
rcvd [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
sent [CCP ConfAck id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
sent [CCP ConfReq id=0x2 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
CCP: timeout sending Config-Requests
Modem hangup
Script /etc/ppp/ip-down started (pid 1121)
Connection terminated.
Connect time 2.6 minutes.
Sent 103998024 bytes, received 207 bytes.
Waiting for 2 child processes...
script /etc/ppp/ip-down, pid 1121
script pptp 192.168.236.1 --nolaunchpppd, pid 1080
Script /etc/ppp/ip-down finished (pid 1121), status = 0x0
Script pptp 192.168.236.1 --nolaunchpppd finished (pid 1080), status = 0x0
root@host7:/etc/ppp#
======================================================
 
Old 02-19-2004, 11:41 AM   #6
murray_linux
Member
 
Registered: Nov 2003
Distribution: Slackware Current
Posts: 210

Rep: Reputation: 30
Quote:
Originally posted by Gates1026
I use a vpn connection from my apartment to my work just about every day. Not too bad to set up and use. I originally started out with RedHat, then moved to Slackware around Christmas time so I installed all of the packages from the website using rpm2tgz <rpmname>. I could not however get the php frontend for slackware to work like it should. So after all of the setup I had to configure it command line by using the options in the config script /usr/sbin/pptp-command. The route commands can be tricky, so if you cant figure them out I can help you out at a later time when I am around my computer.

Here is the website for the pptpclient

Hope this helps!
wow Gates1026. I've been trying to set this up for a long time now. If I can get this going, I'll never have to boot into Windows again. Can you in more detail describe all the steps you took?

Thanks so much,

Murray
 
Old 02-19-2004, 02:31 PM   #7
Gates1026
Member
 
Registered: Sep 2003
Location: Iowa
Distribution: Slackware 9.1
Posts: 155

Rep: Reputation: 30
Sure thing.......this is what I do

1.) Go to the source forge page that is linked to at the top of this post
2.) download the rpm ppp-2.4.2_cvs_20030610-1.i386.rpm
3.) # rpm2tgz ppp-2.4.2_cvs_20030610-1.i386.rpm
- install the package with installpkg
4.) Since I have an athlon processor, I always follow all of the kernel mod instructions
- http://pptpclient.sourceforge.net/ho...90-build.phtml (must have kernel source)
- # tar xfz kernelmod-0.7.1.tar.gz
# cd kernelmod
# ./kernelmod.sh
- # modprobe ppp-compress-18
- # depmod -a
- # modprobe ppp-compress-18
- download, convert to tgz and install pptp-linux-1.3.1-1.i386.rpm

5.) If you did all that correclty you should be able to fire up the config script at /usr/sbin/pptp-command

6.) You will need to setup the tunnel as you need with username and passwd.
- I found the route parts hard so here is what i used
- add -host 10.1.10.2 gw DEF_GW (this is the default gateway of the internal network that I am trying to connect to
- add -net 10.0.0.0/8 TUNNEL_DEV (this is the internal network subnet that I am connecting to.

I hope this helps. Let me know I can help any more
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
slackware 10.2 vpn client undan_uk Linux - Newbie 1 11-05-2005 05:43 AM
VPN Slackware Tihi Linux - Software 3 01-13-2005 03:51 AM
Cisco VPN access from Slackware hayesben Slackware 4 12-17-2004 07:21 PM
VPN on Slackware 9.1 MasterKiller Linux - Networking 7 04-13-2004 12:31 PM
Slackware to connect to a MS VPN murray_linux Slackware 1 12-04-2003 10:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration