multiple PPP

1998-08-11 Thread Eugene Sevinian
Hi Debians, 
I am running w95 at home , and recently I tried to configure
multiple ppp connection from that machine to different Linux boxes in
different domains. As I understand there is no chance to configure network
parameters in w95 depending on connection (Am I right?).  Is there any way
to assign hostname, DNS server from linux side? 

TIA,

Eugene Sevinian


CRD, YerPhI, 375036, Armenia
URL: http://crdlx5.yerphi.am/prs/sevinian.html
Phone: 374-2-344873



multiple PPP

1998-08-11 Thread Eugene Sevinian
Hi Debians, 
I am running w95 at home , and recently I tried to configure
multiple ppp connection from that machine to different Linux boxes in
different domains. As I understand there is no chance to configure network
parameters in w95 depending on connection (Am I right?).  Is there any way
to assign hostname, DNS server from linux side at the? 

TIA,

Eugene Sevinian


CRD, YerPhI, 375036, Armenia
URL: http://crdlx5.yerphi.am/prs/sevinian.html
Phone: 374-2-344873


Re: multiple PPP

1998-08-11 Thread Jens B. Jorgensen
Eugene Sevinian wrote:

 Hi Debians,
 I am running w95 at home , and recently I tried to configure
 multiple ppp connection from that machine to different Linux boxes in
 different domains. As I understand there is no chance to configure network
 parameters in w95 depending on connection (Am I right?).

Actually, you can. But of course it's better to set this up automagically.

 Is there any way
 to assign hostname, DNS server from linux side?

hostname no. IP address, DNS servers (two), WINS servers (two) yes. You set 
these as
pppd options. The IP address will be set with the local IP:remote IP 
option, DNS
with 'ms-dns X.X.X.X', and WINS with 'ms-wins X.X.X.X'. Had you read the pppd 
man page
you would have discovered this.

--
Jens B. Jorgensen
[EMAIL PROTECTED]



RE: Multiple PPP Configurations

1997-10-02 Thread Ralph Winslow
See the attached for how I do it.  Creating /etc/ppp/chatscript.work
and /etc/ppp/chatscript.isp and /etc/resolv.work and /etc/resolv.isp
are left as an exercise for the reader. This could be simpler and
less extensible or even more belt and suspenders than it currently
is, but I think this strikes a nice balance.  YMMV

On 01-Oct-97 Walter L. Preuninger II wrote:
-BEGIN PGP SIGNED MESSAGE-

Is there a way to have more than one pppd configuration? Getting another
modem is not an option.

What I would like is something along these lines:
   pon work
   poff
   pon internet

where work has the ppp options/chatscript for dialing up the office, and
internet has the ppp options/chatscript for going online.

I have poured over the PPP Howto, and could not find anything.

Also, as a side note, mgetty can do autoPPP. mgetty also has a callback
utility. I have not tried this, but would it be possible for me to call
work, and have work call me back, bringing up a ppp connection? 

Which is more preferable, PAP or CHAP? Does PAP/CHAP eliminate the need
for callback(for security reasons)?

Thanks,

- --
Walter L. Preuninger IIwaldo @ irc.wasteland.org:#unix
[EMAIL PROTECTED]
http://www.rapidramp.com/~walterp

  L  I  N  U  X  Where You Really Should Be!

-BEGIN PGP SIGNATURE-
Version: 2.6.2

iQEVAwUBNDKxBSJO3DbZX8gpAQHcmwf9E7ATaD7KwtcZc1zdi9hQSgHM3bHqjt2O
y+pRJUBABweyzIXVRXcmyrvcAJPXrIaaffX0SOZ0/YajOELBvMiOCD/TdJXS60a+
is4c59SH/x8h/VWXtUr/bDQC4CNdEIJMLnyu4xAw9NCJd1IMo65OV/LVU0nzFL5H
I5WNbWevbp86QYrgnYLgTt7iaAYYsKwPg6I2KJE+FchwtOG39PhtytpN/nfjqJba
gdyoLQXjkiiMONXzlDLs4005QOAwpqWeprONc88QJQkPyth9JGKaZh8cCHDyF2e1
fbfFi2IMHjdF3xUjYa1XO3CpeuocKuWnMugd0/jmx4spwoZZJekSiQ==
=wov5
-END PGP SIGNATURE-


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .

-
Ralph Winslow [EMAIL PROTECTED]
The IQ of the group is that of the member
whose IQ is lowest  divided by the number
of members.


pon
Description: Binary data


Re: Multiple PPP Configurations

1997-10-02 Thread ychim
If you have more than one PPP links, how linux decides which links to
send/receive packets?

Ralph Winslow wrote:
 
 See the attached for how I do it.  Creating /etc/ppp/chatscript.work
 and /etc/ppp/chatscript.isp and /etc/resolv.work and /etc/resolv.isp
 are left as an exercise for the reader. This could be simpler and
 less extensible or even more belt and suspenders than it currently
 is, but I think this strikes a nice balance.  YMMV
 
 On 01-Oct-97 Walter L. Preuninger II wrote:
 -BEGIN PGP SIGNED MESSAGE-
 
 Is there a way to have more than one pppd configuration? Getting another
 modem is not an option.
 
 What I would like is something along these lines:
pon work
poff
pon internet
 
 where work has the ppp options/chatscript for dialing up the office, and
 internet has the ppp options/chatscript for going online.
 
 I have poured over the PPP Howto, and could not find anything.
 
 Also, as a side note, mgetty can do autoPPP. mgetty also has a callback
 utility. I have not tried this, but would it be possible for me to call
 work, and have work call me back, bringing up a ppp connection?
 
 Which is more preferable, PAP or CHAP? Does PAP/CHAP eliminate the need
 for callback(for security reasons)?
 
 Thanks,
 
 - --
 Walter L. Preuninger IIwaldo @ 
 irc.wasteland.org:#unix
 [EMAIL PROTECTED]
 http://www.rapidramp.com/~walterp
 
   L  I  N  U  X  Where You Really Should Be!
 
 -BEGIN PGP SIGNATURE-
 Version: 2.6.2
 
 iQEVAwUBNDKxBSJO3DbZX8gpAQHcmwf9E7ATaD7KwtcZc1zdi9hQSgHM3bHqjt2O
 y+pRJUBABweyzIXVRXcmyrvcAJPXrIaaffX0SOZ0/YajOELBvMiOCD/TdJXS60a+
 is4c59SH/x8h/VWXtUr/bDQC4CNdEIJMLnyu4xAw9NCJd1IMo65OV/LVU0nzFL5H
 I5WNbWevbp86QYrgnYLgTt7iaAYYsKwPg6I2KJE+FchwtOG39PhtytpN/nfjqJba
 gdyoLQXjkiiMONXzlDLs4005QOAwpqWeprONc88QJQkPyth9JGKaZh8cCHDyF2e1
 fbfFi2IMHjdF3xUjYa1XO3CpeuocKuWnMugd0/jmx4spwoZZJekSiQ==
 =wov5
 -END PGP SIGNATURE-
 
 
 --
 TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
 [EMAIL PROTECTED] .
 Trouble?  e-mail to [EMAIL PROTECTED] .
 
 -
 Ralph Winslow [EMAIL PROTECTED]
 The IQ of the group is that of the member
 whose IQ is lowest  divided by the number
 of members.
 
   
 
 
  Name: pon
pon   Type: unspecified type (application/octet-stream)
  Encoding: none


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


RE: Multiple PPP Configurations

1997-10-02 Thread Brandon Mitchell
 Is there a way to have more than one pppd configuration? Getting another
 modem is not an option.
 
 What I would like is something along these lines:
pon work
poff
pon internet

I've got just the thing for you!  I wrote it to dial several isp numbers
finding a non-busy one.

The attached is a work in progress.  Unfortunately, it will not progress
any further until I'm back for winter break (have an ethernet connection
at school).  If anyone else wants to take care of it (or report bugs),
just let me know.  Note, I sent this to the ppp maintainer, but he is more
interested in developing some other (probably better) scheme.

Enjoy,
Brandon

P.S. Important directory, /etc/ppp/scripts.  You probably want one called
work and one called internet.  Note, the sleep 3 is what I'm not sure
about.  It had a habbit of not hanging up completely on bad connections.

-
Brandon Mitchell E-mail: [EMAIL PROTECTED]
  Homepage: http://www.geocities.com/SiliconValley/7877/home.html
  PGP: finger -l [EMAIL PROTECTED] 
We all know Linux is great...it does infinite loops in 5 seconds.
--Linus Torvalds

[EMAIL PROTECTED](p1):bhmit1$ more /usr/bin/pon
#!/bin/sh
if [ -r /etc/ppp.options_out -a -r /etc/ppp.chatscript ]; then
  /usr/sbin/pppd connect /etc/ppp/multi-chat.sh $* `cat \
/etc/ppp.options_out`
# ^
else
  echo You do not have permissions to access /etc/ppp.chatscript or \
/etc/ppp.options_out
fi

[EMAIL PROTECTED](p1):bhmit1$ more /etc/ppp/multi-chat.sh 
#!/bin/sh

# The following is by: Brandon Mitchell [EMAIL PROTECTED]
# Feel free to distribute or modify, however, send me copies of 
# any improvements please.  If it breaks, you get to keep both 
# pieces.

# poff is good enough to kill either of these.

# if a script is specified, try it, but only once
# ppp will keep trying this script with the same parameters if 
# there are problems
echo /etc/ppp/scripts/$0  /tmp/ch.out
if [ x$1 != x -a -r /etc/ppp/scripts/$1 ]; then
  /usr/sbin/chat -v -t 20 -f /etc/ppp/scripts/$1  exit 0 || exit 1
fi

# otherwise, cycle through all scripts forever
while true; do
  for i in /etc/ppp/scripts/*; do
/usr/sbin/chat -v -t 30 -f $i  exit 0
echo +++  # Command mode
read x  # Read OK
sleep 3 # I'm working on this
echo ATH0 # Hangup
read y  # Read NO CONNECT
sleep 5 # Give the phone some time
  done
done



--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Re: Multiple PPP Configurations

1997-10-02 Thread alternate
On Thu, 2 Oct 1997 [EMAIL PROTECTED] wrote:

 If you have more than one PPP links, how linux decides which links to
 send/receive packets?
 
 Ralph Winslow wrote:
  
  See the attached for how I do it.  Creating /etc/ppp/chatscript.work
  and /etc/ppp/chatscript.isp and /etc/resolv.work and /etc/resolv.isp
  are left as an exercise for the reader. This could be simpler and
  less extensible or even more belt and suspenders than it currently
  is, but I think this strikes a nice balance.  YMMV
  
  On 01-Oct-97 Walter L. Preuninger II wrote:
  -BEGIN PGP SIGNED MESSAGE-
  
  Is there a way to have more than one pppd configuration? Getting another
  modem is not an option.
  
  What I would like is something along these lines:
 pon work
 poff
 pon internet
  
  where work has the ppp options/chatscript for dialing up the office, and
  internet has the ppp options/chatscript for going online.

I didn't see the messages before this, so maybe it's already been
answered, but...

Put all your chatscripts in /etc/chatscripts.

Put all your option files in /etc/ppp/peers.  Each option file should
include an -f /etc/chatscripts/my-chatscript option that points to the
the appropriate chatscript.

Now you can say pppd call name-of-peers-file.

Then, symlink /etc/ppp/peers/provider to your most frequently-used
peerscript.  Now you can type pon and it will automatically run pppd
call provider.

Both the pppd call ... and pon/poff commands can be run by members of
the dip group as well as root.  This is in contrast to any other
invocation of pppd, which requires root privilege.

Then, of course, there's the PAP/CHAP problem.  If you have to use this, I
would hardlink /etc/ppp/chap-secrets and /etc/ppp/pap-secrets together, so
you don't have to remember which secret goes where this week.  I've only
dealt with the case where one ISP used PAP/CHAP and the other didn't, so I
don't know how well ppp does if both ISPs use it.

*** 
In regards to the first question, if you mean, How does Linux handle
multiple simultaneous PPP connections? (say if you have two modems, or
modem plus Ethernet card, to connect to multiple networks, for instance,
one being a private network and the other your ISP), it uses the routing
table (shown by the route command), which says which range of IP
addresses should go through which link (=interface).  Only one link should
have the default route 0.0.0.0, which is for everything else.

** MICHAEL SCOTT ORR [EMAIL PROTECTED] *
**  1405 NE 56th Street, Seattle, WA 98105 USA *   English *
**  Tel: +1 (206) 522-9627, fax: 328-6209  *Russki * 
**  Work: [EMAIL PROTECTED] * Esperanto *
* (Insert silly quote here) 


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Re: Multiple PPP Configurations

1997-10-02 Thread Peter Weiss
 On Wed, 1 Oct 1997 15:22:21 -0500 (CDT), Walter L. Preuninger II 
 [EMAIL PROTECTED] said:

Walter Is there a way to have more than one pppd configuration? Getting another
Walter modem is not an option.

Walter What I would like is something along these lines:
Walter pon work
Walter poff
Walter pon internet

Hello,

another solution that works here fine is the following one: I copied the
pon-script under a slightly different name to a bin directory and changed
the name of the dialer script in the pppd line.
It generates a complete chat script for each number and doesn't handle
the dial strings to chat on the command line. Probably there are some
trap commands missing.

   Hth -- Peter

#!/bin/sh
#
# arbi-dialer:
# Special script for linux called by pppd to connect to the local ISP
# at the university. So the options for pppd are something like
#pppd  ... connect arbi-dialer
#
# There are 5 possible numbers to dial (stored in the string vector
# ChatDialStrings). We dial one after the other until we get a successfull
# connection. This process is retried $Retries times (default is 3 times).
# The chat script passed to the chat command is generated temporary for
# each phone number by this script.
# The script might be public readable, it contains no password/ login
# information, which is stored in the pap-secrets file.
#
#   Written by [EMAIL PROTECTED], 9/ 97

ChatScript=/tmp/ppp.chatscript.$$
Chat=/usr/sbin/chat
Retries=3

# Basic chat initialization strings
ChatInitStrings=ABORT BUSY
ABORT \NO CARRIER\
ABORT VOICE
ABORT \NO DIALTONE\
\\ATZ
\OK-+++\c-OK\ ATH0
\OK\  ATM0

ChatDialStrings=([0]=\OK\  ATDT7983110
 [1]=\OK\  ATDT7983125
 [2]=\OK\  ATDT7982382
 [3]=\OK\  ATDT7982157
 [4]=\OK\  ATDT7982158)

# there are no login/ password phrases cause the rest is done using PAP and
# is done by pppd itself
ChatConnectString=CONNECT   \\

i=0
while [ $i -lt $Retries ]; do
j=0
while [ $j -lt 5 ]; do
cat  $ChatScript EOF
$ChatInitStrings
${ChatDialStrings[$j]}
$ChatConnectString
EOF
$Chat -v -f $ChatScript
result=$?

# Connection established??
if [ $result -eq 0 ]; then
break;
fi

j=`expr $j + 1`
done

if [ $result -eq 0 ]; then
break;
fi
i=`expr $i + 1`
done

# clean up temporary file
rm $ChatScript
exit $result

-- 
--
Peter Weiss, Sonnenstraße 17, D-26123 Oldenburg, Tel:  0441/ 81058
http://www.informatik.uni-oldenburg.de:/~weissp
--
-- Slow has got 4 letters so has calm; speed has got 5 letters so has death --
--


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .


Multiple PPP Configurations

1997-10-01 Thread Walter L. Preuninger II
-BEGIN PGP SIGNED MESSAGE-

Is there a way to have more than one pppd configuration? Getting another
modem is not an option.

What I would like is something along these lines:
pon work
poff
pon internet

where work has the ppp options/chatscript for dialing up the office, and
internet has the ppp options/chatscript for going online.

I have poured over the PPP Howto, and could not find anything.

Also, as a side note, mgetty can do autoPPP. mgetty also has a callback
utility. I have not tried this, but would it be possible for me to call
work, and have work call me back, bringing up a ppp connection? 

Which is more preferable, PAP or CHAP? Does PAP/CHAP eliminate the need
for callback(for security reasons)?

Thanks,

- --
Walter L. Preuninger IIwaldo @ irc.wasteland.org:#unix
[EMAIL PROTECTED] http://www.rapidramp.com/~walterp

  L  I  N  U  X  Where You Really Should Be!

-BEGIN PGP SIGNATURE-
Version: 2.6.2

iQEVAwUBNDKxBSJO3DbZX8gpAQHcmwf9E7ATaD7KwtcZc1zdi9hQSgHM3bHqjt2O
y+pRJUBABweyzIXVRXcmyrvcAJPXrIaaffX0SOZ0/YajOELBvMiOCD/TdJXS60a+
is4c59SH/x8h/VWXtUr/bDQC4CNdEIJMLnyu4xAw9NCJd1IMo65OV/LVU0nzFL5H
I5WNbWevbp86QYrgnYLgTt7iaAYYsKwPg6I2KJE+FchwtOG39PhtytpN/nfjqJba
gdyoLQXjkiiMONXzlDLs4005QOAwpqWeprONc88QJQkPyth9JGKaZh8cCHDyF2e1
fbfFi2IMHjdF3xUjYa1XO3CpeuocKuWnMugd0/jmx4spwoZZJekSiQ==
=wov5
-END PGP SIGNATURE-


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .