* Basic Question.
@ 2005-12-06 20:13 Cleiton Reis
2005-12-06 21:11 ` Clifford Kite
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: Cleiton Reis @ 2005-12-06 20:13 UTC (permalink / raw)
To: linux-ppp
Hello !
A basic question :
There's a way to start a PPP connection like an ADSL connection
always in the same
interface (eg. ppp0 ) ?
I have two adsl Links and I would like to start adsl1 always in ppp0
and the adsl2 always in the ppp1, otherwise when I reboot and the
adsl1 fail to connect, the adsl2 start in ppp0 and my
firewall rules screw up !
Regards.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Basic Question.
2005-12-06 20:13 Basic Question Cleiton Reis
@ 2005-12-06 21:11 ` Clifford Kite
2005-12-06 21:23 ` James Carlson
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Clifford Kite @ 2005-12-06 21:11 UTC (permalink / raw)
To: linux-ppp
On Tue, 6 Dec 2005, Cleiton Reis wrote:
|Hello !
|
| A basic question :
|
| There's a way to start a PPP connection like an ADSL connection
|always in the same
| interface (eg. ppp0 ) ?
|
| I have two adsl Links and I would like to start adsl1 always in ppp0
|and the adsl2 always in the ppp1, otherwise when I reboot and the
|adsl1 fail to connect, the adsl2 start in ppp0 and my
|firewall rules screw up !
Man pppd, see whether the option "unit <num>" is what you want.
---
Clifford Kite
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Basic Question.
2005-12-06 20:13 Basic Question Cleiton Reis
2005-12-06 21:11 ` Clifford Kite
@ 2005-12-06 21:23 ` James Carlson
2005-12-06 21:59 ` Bill Unruh
2005-12-07 13:10 ` James Carlson
3 siblings, 0 replies; 5+ messages in thread
From: James Carlson @ 2005-12-06 21:23 UTC (permalink / raw)
To: linux-ppp
Clifford Kite writes:
> | I have two adsl Links and I would like to start adsl1 always in ppp0
> |and the adsl2 always in the ppp1, otherwise when I reboot and the
> |adsl1 fail to connect, the adsl2 start in ppp0 and my
> |firewall rules screw up !
>
> Man pppd, see whether the option "unit <num>" is what you want.
... or use the /etc/ppp/ip-up script interface to rewrite the firewall
rules on the fly.
(Agreed; there needs to be a better way to deal with this issue.)
--
James Carlson 42.703N 71.076W <carlsonj@workingcode.com>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Basic Question.
2005-12-06 20:13 Basic Question Cleiton Reis
2005-12-06 21:11 ` Clifford Kite
2005-12-06 21:23 ` James Carlson
@ 2005-12-06 21:59 ` Bill Unruh
2005-12-07 13:10 ` James Carlson
3 siblings, 0 replies; 5+ messages in thread
From: Bill Unruh @ 2005-12-06 21:59 UTC (permalink / raw)
To: linux-ppp
On Tue, 6 Dec 2005, James Carlson wrote:
> Clifford Kite writes:
>> | I have two adsl Links and I would like to start adsl1 always in ppp0
>> |and the adsl2 always in the ppp1, otherwise when I reboot and the
>> |adsl1 fail to connect, the adsl2 start in ppp0 and my
>> |firewall rules screw up !
>>
>> Man pppd, see whether the option "unit <num>" is what you want.
>
> ... or use the /etc/ppp/ip-up script interface to rewrite the firewall
> rules on the fly.
>
> (Agreed; there needs to be a better way to deal with this issue.)
>
One of the real problems with linux appears to be the difficulty of
associating a unit with a physical device. Thus with ethernet, it depends
on which hardware device the system just happens to look at first which
gets called eth0. The aliases established in /etc/modprobe.conf seem to be
just ignored. Similarly with ppp, and everything else. This really
needs a unified way of dealing with it. the unit option in pppd helps, but
if for some reason that unit is unavailable, ppp simply grabs whatever
anyway.
To have to set up a script which determines which units are which and
rewrites all references to the unit number is not only a kludge but is also
extremely prone to bugs. That is not the way to go.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Basic Question.
2005-12-06 20:13 Basic Question Cleiton Reis
` (2 preceding siblings ...)
2005-12-06 21:59 ` Bill Unruh
@ 2005-12-07 13:10 ` James Carlson
3 siblings, 0 replies; 5+ messages in thread
From: James Carlson @ 2005-12-07 13:10 UTC (permalink / raw)
To: linux-ppp
Bill Unruh writes:
> One of the real problems with linux appears to be the difficulty of
> associating a unit with a physical device. Thus with ethernet, it depends
> on which hardware device the system just happens to look at first which
> gets called eth0.
OK, but it's also the case that pppd is *more* than just Linux. In
fact, it predates Linux by quite a bit. So, I'd argue that the
solution needs to work for other systems (BSD, Solaris) as well as
Linux.
> The aliases established in /etc/modprobe.conf seem to be
> just ignored. Similarly with ppp, and everything else. This really
> needs a unified way of dealing with it. the unit option in pppd helps, but
> if for some reason that unit is unavailable, ppp simply grabs whatever
> anyway.
>
> To have to set up a script which determines which units are which and
> rewrites all references to the unit number is not only a kludge but is also
> extremely prone to bugs. That is not the way to go.
I agree that's kludgy. One of the bad parts of it is that the
interface is established and enabled *before* the filters get applied,
and that's almost certainly not what anyone concerned with security
wants.
But even if we could somehow nail down the meaning of "ppp0" and
"ppp1" and so on, I think we'd be no better off than we are today for
pppd. The problem I see is that a system with a number of links and a
large number of peers (not just this simple configuration with two
essentially fixed ADSL links, as the original poster described) will
run into reuse problems.
In other words, "ppp0" doesn't mean the same thing over time, and it'd
be just absurd and unmanageable to allocate ppp0 through ppp9999 for
10,000 separate users and somehow keep those configurations straight.
Communicating between pppd and IP filtering (and routing and other
subsystems) by way of overloading unit number to mean "user" doesn't
seem to be a scalable or manageable answer to me.
Instead, I'd rather see these things show up as features that can be
controlled on a per-peer basis. That'd mean at least authenticated
peer name, and probably underlying physical or virtual interface as
well (e.g., if you have ttyS0 connected to a modem on the PSTN and
ttyS1 hard-wired to an embedded system, you may have different
security and routing requirements for each).
One way to do this would be with configuration options in pppd, so
that new things could be specified in options, options.ttyname,
chap-secrets, or the command line as appropriate (per-node,
per-device, per-user, or per-invocation). I'm not sure that's the
best way, though, and it probably requires some thought.
--
James Carlson 42.703N 71.076W <carlsonj@workingcode.com>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2005-12-07 13:10 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-06 20:13 Basic Question Cleiton Reis
2005-12-06 21:11 ` Clifford Kite
2005-12-06 21:23 ` James Carlson
2005-12-06 21:59 ` Bill Unruh
2005-12-07 13:10 ` James Carlson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox