Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 115769 - pppd network configuration module does not allow a pty instead of a tty to be specified.
Summary: pppd network configuration module does not allow a pty instead of a tty to be...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: Alin Năstac (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-16 06:28 UTC by benjrh
Modified: 2005-12-17 01:11 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description benjrh 2005-12-16 06:28:39 UTC
I use ppp over pptp (over ethernet) for the connection to my isp. Normal pppd
configuration for this requires the pty option instead of a ttyname, i.e. the
pppd option: pty "/usr/sbin/pptp <host> --nolaunchpppd". I've tried setting up
net.ppp0 with baselayout-1.12.0_pre11-r3, but the pppd module insists on a
link_ppp0 option being specified, although I need to be able to omit it
entirely, and rely just on the pty option passed in pppd_ppp0. Or perhaps there
should be special pty or pptp parameters.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Alin Năstac (RETIRED) gentoo-dev 2005-12-16 08:54:50 UTC
link_ppp0="/dev/null" does not solve the problem?
Comment 2 Igor Testen 2005-12-16 14:37:20 UTC
You could always do:

link_ppp0="pty 'pptp 10.0.0.138 --nolaunchpppd'"

But it won't set the default route. Is there a way of doing this within the basic funtionality? It was possible in the old baselayout..
Comment 3 benjrh 2005-12-16 16:55:43 UTC
> link_ppp0="pty 'pptp 10.0.0.138 --nolaunchpppd'"

This works. Thanks. It's really a workaround though, since "pty" is a pppd option.

I pass "defaultroute" as a pppd option, to make pppd do the routing set-up. I also needed config_ppp0=( "ppp" ), which doesn't seem to be documented in net.examples, by the way.   
Comment 4 Alin Năstac (RETIRED) gentoo-dev 2005-12-17 01:11:59 UTC
(In reply to comment #2)
> But it won't set the default route. Is there a way of doing this within the
> basic funtionality? It was possible in the old baselayout..

sure... you could add "defaultroute" to pppd_ppp0 or do the following:
modules=( "iproute2" )
routes_ppp0=( "default" )

(In reply to comment #3)
> > link_ppp0="pty 'pptp 10.0.0.138 --nolaunchpppd'"
> 
> This works. Thanks. It's really a workaround though, since "pty" is a pppd
> option.

I disagree. It is true that pty is an option, but it also set the link over which the PPP connection is established. It makes sense to me, therefore I will recommend this link_${iface} variant in net.example.

For any further comments, please see bug #114551.