Affan Ahmed | 9 Apr 07:54

PPP server installation

I want to setup a Linux machine that would start the pppd after being dialed
on a modem. It should also work without any encryption. Any directions in
this regard would be welcome. 

Best Regards,
Affan Ahmed

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

Bill Unruh | 9 Apr 08:17
Picon
Picon

Re: PPP server installation

On Tue, 9 Apr 2002, Affan Ahmed wrote:

> I want to setup a Linux machine that would start the pppd after being dialed
> on a modem. It should also work without any encryption. Any directions in
> this regard would be welcome.

The key word is
mgetty
This will answer the phone and start pppd when you have set it up.

Here are some lines from www.theory.physics.ubc.ca/ppp-linux.html

To have others connect to your machine, (ie, to have yourself act as an
ISP), use mgetty from http://alpha.greenie.net/mgetty/. Also get the
guide
http://www.swcp.com/~jgentry/dialin2.html to setting up dial in access
or see ./mgetty.html.
Here, http://axion.physics.ubc.ca/mgetty-point.html are also a number of
links to documentation to getting mgetty up and running (including with
multiple incoming
telephone lines).

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

James Carlson | 9 Apr 13:02

Re: PPP server installation

Bill Unruh writes:
> The key word is
> mgetty
> This will answer the phone and start pppd when you have set it up.

Agreed, that's the right way to do it.  It might be faster, though, to
just set up a copy of pppd running on that port using /etc/inittab.
Something like:

S0:234:respawn:/usr/bin/pppd 10.0.0.1:10.0.0.2

--

-- 
James Carlson                                  <carlson <at> workingcode.com>
-
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Bill Unruh | 9 Apr 18:10
Picon
Picon

Re: PPP server installation

On Tue, 9 Apr 2002, James Carlson wrote:

> Bill Unruh writes:
> > The key word is
> > mgetty
> > This will answer the phone and start pppd when you have set it up.
>
> Agreed, that's the right way to do it.  It might be faster, though, to
> just set up a copy of pppd running on that port using /etc/inittab.
> Something like:
>
> S0:234:respawn:/usr/bin/pppd 10.0.0.1:10.0.0.2

No if, as I recall he said, he is dialing in to the machine. He needs
something to answer the phone, and pppd is not good at that.
Also, He had better put in the passive option as well, or pppd will
continually send out LCP requests, not get answered for 10 times, die,
be reborn, etc.

--

-- 
William G. Unruh        Canadian Institute for          Tel: +1(604)822-3273
Physics&Astronomy          Advanced Research            Fax: +1(604)822-5324
UBC, Vancouver,BC        Program in Cosmology           unruh <at> physics.ubc.ca
Canada V6T 1Z1               and Gravity           www.theory.physics.ubc.ca/
For step by step instructions about setting up ppp under Linux, see
            http://www.theory.physics.ubc.ca/ppp-linux.html

-
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to majordomo <at> vger.kernel.org
(Continue reading)

Clifford Kite | 9 Apr 21:55
Favicon

Re: PPP server installation

On Tue, 9 Apr 2002, James Carlson wrote:

|> Bill Unruh writes:
|>
|> The key word is mgetty.  This will answer the phone and start pppd
|> when you have set it up.
|
|Agreed, that's the right way to do it.  It might be faster, though, to
|just set up a copy of pppd running on that port using /etc/inittab.
|Something like:
|
|S0:234:respawn:/usr/bin/pppd 10.0.0.1:10.0.0.2

Did I miss something here?  How is pppd to know which serial port it
needs?  The S0 certainly doesn't tell it anything (and  neither will
"connect /bin/true").

---
Clifford Kite            http://users3.ev1.net/~ckite/public_html/
/* Recipe for a unified PPP debug log file:  Add the line
   " local2.*;*.=debug;*.=notice	/var/log/ppp-debug.log "
   (may need Tab separators) to the /etc/syslog.conf file, and then do
   " kill -HUP `pidof syslogd` " to make syslogd reread it. */
corncob: Uptime 34 days  8 hours 51 minutes

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

(Continue reading)

James Carlson | 9 Apr 22:15

Re: PPP server installation

Clifford Kite writes:
> Did I miss something here?  How is pppd to know which serial port it
> needs?  The S0 certainly doesn't tell it anything (and  neither will
> "connect /bin/true").

Uh ... yeah.  I left out "ttyS0" on the command line.  Thanks; I had
getty on the brain.

--

-- 
James Carlson                                  <carlson <at> workingcode.com>
-
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

James Carlson | 9 Apr 19:01

Re: PPP server installation

Bill Unruh writes:
> No if, as I recall he said, he is dialing in to the machine. He needs
> something to answer the phone, and pppd is not good at that.
> Also, He had better put in the passive option as well, or pppd will
> continually send out LCP requests, not get answered for 10 times, die,
> be reborn, etc.

... which is mostly harmless.  ;-}

Actually, if he uses "connect /bin/true" as one of the options, then
pppd will wait for DCD to go high before doing anything.  With the
right settings on the modem (automatically answer when DTR is high),
that should be enough ...

--

-- 
James Carlson                                  <carlson <at> workingcode.com>
-
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Bill Unruh | 9 Apr 19:08
Picon
Picon

Re: PPP server installation

On Tue, 9 Apr 2002, James Carlson wrote:

> Bill Unruh writes:
> > No if, as I recall he said, he is dialing in to the machine. He needs
> > something to answer the phone, and pppd is not good at that.
> > Also, He had better put in the passive option as well, or pppd will
> > continually send out LCP requests, not get answered for 10 times, die,
> > be reborn, etc.
>
> ... which is mostly harmless.  ;-}

Well, it depends. If a program dies and is resurrected too often in a 5
min time period, init kills the program for 10 min and then tries again.
This would mean that most of the time pppd would not be connected as
init did not restart it. (It may be that the LCP non-negotiation takes long
enough that this would not happen.)
>
> Actually, if he uses "connect /bin/true" as one of the options, then
> pppd will wait for DCD to go high before doing anything.  With the
> right settings on the modem (automatically answer when DTR is high),
> that should be enough ...
>
>

--

-- 
William G. Unruh        Canadian Institute for          Tel: +1(604)822-3273
Physics&Astronomy          Advanced Research            Fax: +1(604)822-5324
UBC, Vancouver,BC        Program in Cosmology           unruh <at> physics.ubc.ca
Canada V6T 1Z1               and Gravity           www.theory.physics.ubc.ca/
For step by step instructions about setting up ppp under Linux, see
(Continue reading)


Gmane