Skip to contentSkip to conversation

pptponfig centos 5.4

DISCUSSION [email protected] 3 participants 11 messages Mar 10, 2011 – Mar 15, 2011 PPP protocol drivers and compressors

lore
Share & tools
lore
#0 lore raw

Hi

I remember one of the James's wrote pptpconfig ;-)

You remember before I was having problems with installation because http or yum or rpm would lock up over the web. I had to do this in sysctl:

net.ipv4.tcp_rmem = 4096 87380 174760
net.ipv4.tcp_wmem = 4096 16384 131072

and then a sysctl -p. Now everything works web wise. But when I try to install pptpconfig with yum it tells me libxml and libglade.so.0 are dependencies. libxml is no problem. I installed a libglade and did a symvolic link from the libglade.so (.7 I believe) to libglade.so.0 but it still tells me libglade.so.0 is required. I downloaded libglade-0.17-19.i386.rpm and tried to install but it had a whole lot more dependencies.

I guess my main questions about centos 5.4 vs. 4.5

1. Is there a different install method?
2. Should I be using
rpm -Uvh http://pptpclient.sourceforge.net/yum/stable/fc6/pptp-release-current.noarch.rpm

or a different location to get the repository?

Tony

p.s. yes I can do it manually, have done it before, but it is a pain having to edit all those files like /etc/ppp/peers/XXXXX and pap-secrets and chap-secrets, etc.

#1 lore raw
Quoted 18 lines · [email protected] wrote:

Hi

I remember one of the James's wrote pptpconfig ;-)

You remember before I was having problems with installation because http or yum or rpm would lock up over the web. I had to do this in sysctl:

   net.ipv4.tcp_rmem = 4096 87380 174760
   net.ipv4.tcp_wmem = 4096 16384 131072

and then a sysctl -p. Now everything works web wise. But when I try to install pptpconfig with yum it tells me libxml and libglade.so.0 are dependencies. libxml is no problem. I installed a libglade and did a symvolic link from the libglade.so (.7 I believe) to libglade.so.0 but it still tells me libglade.so.0 is required. I downloaded libglade-0.17-19.i386.rpm and tried to install but it had a whole lot more dependencies.

Quoted 9 lines

I guess my main questions about centos 5.4 vs. 4.5

1. Is there a different install method?
2. Should I be using
rpm -Uvh http://pptpclient.sourceforge.net/yum/stable/fc6/pptp-release-current.noarch.rpm

or a different location to get the repository?

I'd use the rpmforge version (1.7.2)

rpmforge.repo:
[rpmforge]
name = RHEL $releasever - RPMforge.net - dag baseurl = http://apt.sw.be/redhat/el5/en/$basearch/rpmforge
mirrorlist = http://apt.sw.be/redhat/el5/en/mirrors-rpmforge
#mirrorlist = file:///etc/yum.repos.d/mirrors-rpmforge enabled = 1
protect = 0
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmforge-dag gpgcheck = 1

then do a
yum install pptp

HTH,

JJK

#2 lore raw
In reply to [email protected]

Some kind of error:

Install      1 Package(s)         
Update       1 Package(s)         
Remove       0 Package(s)         

Total size: 76 k
Is this ok [y/N]: y
Downloading Packages:
warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID 6b8d79e6

GPG key retrieval failed: [Errno 5] OSError: [Errno 2] No such file or directory: '/etc/pki/rpm-gpg/RPM-GPG-KEY-rpmforge-dag'

-----Original Message-----
From: Jan Just Keijser [mailto:[email protected]]
Sent: Thursday, March 10, 2011 08:38 AM
To: [email protected]
Cc: 'ppp Linux'
Subject: Re: pptponfig centos 5.4

Quoted 18 lines · [email protected] wrote:

Hi

I remember one of the James's wrote pptpconfig ;-)

You remember before I was having problems with installation because http or yum or rpm would lock up over the web. I had to do this in sysctl:

   net.ipv4.tcp_rmem = 4096 87380 174760
   net.ipv4.tcp_wmem = 4096 16384 131072

and then a sysctl -p. Now everything works web wise. But when I try to install pptpconfig with yum it tells me libxml and libglade.so.0 are dependencies. libxml is no problem. I installed a libglade and did a symvolic link from the libglade.so (.7 I believe) to libglade.so.0 but it still tells me libglade.so.0 is required. I downloaded libglade-0.17-19.i386.rpm and tried to install but it had a whole lot more dependencies.

Quoted 9 lines

I guess my main questions about centos 5.4 vs. 4.5

1. Is there a different install method?
2. Should I be using
rpm -Uvh http://pptpclient.sourceforge.net/yum/stable/fc6/pptp-release-current.noarch.rpm

or a different location to get the repository?

I'd use the rpmforge version (1.7.2)

rpmforge.repo:
[rpmforge]
name = RHEL $releasever - RPMforge.net - dag baseurl = http://apt.sw.be/redhat/el5/en/$basearch/rpmforge
mirrorlist = http://apt.sw.be/redhat/el5/en/mirrors-rpmforge
#mirrorlist = file:///etc/yum.repos.d/mirrors-rpmforge enabled = 1
protect = 0
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmforge-dag gpgcheck = 1

then do a
yum install pptp

HTH,

JJK

--
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#3 lore raw
In reply to [email protected]

I did and it installs, but now it keeps closing with a read 0. We have a Linksys router and I suspect it may not be allowing pptp or gre or whatever is needed?

-----Original Message-----
From: Jan Just Keijser [mailto:[email protected]]
Sent: Thursday, March 10, 2011 08:51 AM
To: [email protected]
Cc: 'ppp Linux'
Subject: Re: pptponfig centos 5.4

Quoted 6 lines · [email protected] wrote:

Some kind of error:

Install      1 Package(s)         
Update       1 Package(s)         
Remove       0 Package(s)         
Quoted 9 lines

Total size: 76 k
Is this ok [y/N]: y
Downloading Packages:
warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID 6b8d79e6

GPG key retrieval failed: [Errno 5] OSError: [Errno 2] No such file or directory: '/etc/pki/rpm-gpg/RPM-GPG-KEY-rpmforge-dag'

whoops, you need to install the rpmforge repo key as well... or, if you trust the site, set
gpgcheck=0
in the repo file and try again.

HTH,

JJK

Quoted 66 lines

-----Original Message-----
From: Jan Just Keijser [mailto:[email protected]]
Sent: Thursday, March 10, 2011 08:38 AM
To: [email protected]
Cc: 'ppp Linux'
Subject: Re: pptponfig centos 5.4

Quoted 18 lines · [email protected] wrote:

Hi

I remember one of the James's wrote pptpconfig ;-)

You remember before I was having problems with installation because http or yum or rpm would lock up over the web. I had to do this in sysctl:

   net.ipv4.tcp_rmem = 4096 87380 174760
   net.ipv4.tcp_wmem = 4096 16384 131072

and then a sysctl -p. Now everything works web wise. But when I try to install pptpconfig with yum it tells me libxml and libglade.so.0 are dependencies. libxml is no problem. I installed a libglade and did a symvolic link from the libglade.so (.7 I believe) to libglade.so.0 but it still tells me libglade.so.0 is required. I downloaded libglade-0.17-19.i386.rpm and tried to install but it had a whole lot more dependencies.

Quoted 10 lines

I guess my main questions about centos 5.4 vs. 4.5

1. Is there a different install method?
2. Should I be using
rpm -Uvh http://pptpclient.sourceforge.net/yum/stable/fc6/pptp-release-current.noarch.rpm

or a different location to get the repository?

I'd use the rpmforge version (1.7.2)

rpmforge.repo:
[rpmforge]
name = RHEL $releasever - RPMforge.net - dag baseurl = http://apt.sw.be/redhat/el5/en/$basearch/rpmforge
mirrorlist = http://apt.sw.be/redhat/el5/en/mirrors-rpmforge
#mirrorlist = file:///etc/yum.repos.d/mirrors-rpmforge enabled = 1
protect = 0
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmforge-dag gpgcheck = 1

then do a
yum install pptp

HTH,

JJK

--
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#4 lore raw
In reply to [email protected]
Quoted 1 line · On Thu, Mar 10, 2011 at 02:22:38PM +0000, [email protected] wrote:

I remember one of the James's wrote pptpconfig ;-)

My name is on it. The regret lingers on. "PHP-GTK, why?", I ask myself.

Quoted 7 lines

I guess my main questions about centos 5.4 vs. 4.5

1. Is there a different install method?
2. Should I be using
rpm -Uvh http://pptpclient.sourceforge.net/yum/stable/fc6/pptp-release-current.noarch.rpm

or a different location to get the repository?

I don't know.

Alternatives, should you still require them ...

1. pptpsetup is included in pptp, and is a non-GUI for achieving the same thing as pptpconfig,

2. Network Manager has a pptp plugin which does the same and more.

Signature · 2 lines
James Cameron
http://quozl.linux.org.au/
#5 lore raw
In reply to [email protected]

Yeah I did pptpsetup -whatever (i put all the parameters in and called the connection "hill" Then I did "pppd call hill". That connected, set up my IP and routes and I had ppp connections for a few minutes (5 or so) but then it would disconnect again

-----Original Message-----
From: James Cameron [mailto:[email protected]]
Sent: Thursday, March 10, 2011 03:19 PM
To: [email protected]
Subject: Re: pptponfig centos 5.4

Quoted 1 line · On Thu, Mar 10, 2011 at 02:22:38PM +0000, [email protected] wrote:

I remember one of the James's wrote pptpconfig ;-)

My name is on it. The regret lingers on. "PHP-GTK, why?", I ask myself.

Quoted 7 lines

I guess my main questions about centos 5.4 vs. 4.5

1. Is there a different install method?
2. Should I be using
rpm -Uvh http://pptpclient.sourceforge.net/yum/stable/fc6/pptp-release-current.noarch.rpm

or a different location to get the repository?

I don't know.

Alternatives, should you still require them ...

1. pptpsetup is included in pptp, and is a non-GUI for achieving the same thing as pptpconfig,

2. Network Manager has a pptp plugin which does the same and more.

Signature · 6 lines
James Cameron
http://quozl.linux.org.au/
--
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#6 lore raw
In reply to [email protected]
Quoted 4 lines · On Fri, Mar 11, 2011 at 03:09:19AM +0000, [email protected] wrote:

Yeah I did pptpsetup -whatever (i put all the parameters in and called the connection "hill" Then I did "pppd call hill". That connected, set up my IP and routes and I had ppp connections for a few minutes (5 or so) but then it would disconnect again

common symptom. further diagnosis would involve pppd debug logs most likely.

Signature · 2 lines
James Cameron
http://quozl.linux.org.au/
#7 lore raw
In reply to [email protected]

Using the Windows pptp when I connect it allows the remote host to set my routes for the PPTP vpn. Is there a way to do this in Linux too? If I want to make a general tool to connect I would like to use it in /etc/ppp/ip-up.local. For instance, in one connection I want to do

     ip route replace 10.0.0.0/8 dev ppp0

but in another connection I want to do

     ip route replace 192.168.0.0/24 dev ppp0

I'd like to make a generic thing that would always set the correct route (best thing to let the VPN server set my routes). I suppose I could make an interface and look up the tunnel in a text file and return the routes but that is an extra step.

Tony

-----Original Message-----
From: James Cameron [mailto:[email protected]]
Sent: Thursday, March 10, 2011 04:19 PM
To: [email protected]
Subject: Re: pptponfig centos 5.4

Quoted 1 line · On Thu, Mar 10, 2011 at 02:22:38PM +0000, [email protected] wrote:

I remember one of the James's wrote pptpconfig ;-)

My name is on it. The regret lingers on. "PHP-GTK, why?", I ask myself.

Quoted 7 lines

I guess my main questions about centos 5.4 vs. 4.5

1. Is there a different install method?
2. Should I be using
rpm -Uvh http://pptpclient.sourceforge.net/yum/stable/fc6/pptp-release-current.noarch.rpm

or a different location to get the repository?

I don't know.

Alternatives, should you still require them ...

1. pptpsetup is included in pptp, and is a non-GUI for achieving the same thing as pptpconfig,

2. Network Manager has a pptp plugin which does the same and more.

Signature · 6 lines
James Cameron
http://quozl.linux.org.au/
--
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#8 lore raw
In reply to [email protected]
Quoted 2 lines · On Mon, Mar 14, 2011 at 01:05:26PM +0000, [email protected] wrote:

Using the Windows pptp when I connect it allows the remote host to set my routes for the PPTP vpn.

Is there a protocol specification for how this is achieved?

Quoted 1 line

Is there a way to do this in Linux too?

Not to my knowledge. It would imply a communication of routing policy over the PPP link, and some way to know if it is trusted.

A common way to achieve this is to use /etc/ppp/ip-up.d scripts on the client side that recognise the tunnel in some way.

Signature · 2 lines
James Cameron
http://quozl.linux.org.au/
#9 lore raw
In reply to [email protected]

That is what I do, James. ip-up.lcaol but for each server I have to change it. I know openvpn will set the routes for you. Maybe the windows thing just did a default route?

-----Original Message-----
From: James Cameron [mailto:[email protected]]
Sent: Monday, March 14, 2011 04:46 PM
To: [email protected]
Subject: Re: pptponfig centos 5.4

Quoted 2 lines · On Mon, Mar 14, 2011 at 01:05:26PM +0000, [email protected] wrote:

Using the Windows pptp when I connect it allows the remote host to set my routes for the PPTP vpn.

Is there a protocol specification for how this is achieved?

Quoted 1 line

Is there a way to do this in Linux too?

Not to my knowledge. It would imply a communication of routing policy over the PPP link, and some way to know if it is trusted.

A common way to achieve this is to use /etc/ppp/ip-up.d scripts on the client side that recognise the tunnel in some way.

Signature · 6 lines
James Cameron
http://quozl.linux.org.au/
--
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#10 lore raw
In reply to [email protected]

Then I don't understand what you are asking, sorry.

Quoted 38 lines · On Tue, Mar 15, 2011 at 12:21:15AM +0000, [email protected] wrote:

That is what I do, James. ip-up.lcaol but for each server I have to change it. I know openvpn will set the routes for you. Maybe the windows thing just did a default route?

-----Original Message-----
From: James Cameron [mailto:[email protected]]
Sent: Monday, March 14, 2011 04:46 PM
To: [email protected]
Subject: Re: pptponfig centos 5.4

Quoted 2 lines · On Mon, Mar 14, 2011 at 01:05:26PM +0000, [email protected] wrote:

Using the Windows pptp when I connect it allows the remote host to set my routes for the PPTP vpn.

Is there a protocol specification for how this is achieved?

Quoted 1 line

Is there a way to do this in Linux too?

Not to my knowledge. It would imply a communication of routing policy over the PPP link, and some way to know if it is trusted.

A common way to achieve this is to use /etc/ppp/ip-up.d scripts on the client side that recognise the tunnel in some way.

Signature · 13 lines
James Cameron
http://quozl.linux.org.au/
--
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html



--
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Signature · 2 lines
James Cameron
http://quozl.linux.org.au/