Comment 10 for bug 12507

Revision history for this message
Carlos Garnacho (carlosg) wrote : Re: Network-admin and modem-applet don't work for setting up dial-up

(In reply to comment #9)

<snip>

> I don't see any GUI option to choose whether remote peer needs to authenticate
> (when connecting to ISP, it most usually doesn't, since I'm the one who is
> authenticating, so I should use "noauth" instead of "auth"). I also add "user
> ssegan" to pppd command line, and remove "ogin:"/"assword:" detection from the
> chatscript (as above). Of course, you'd need to append '"username" *
> "password"' line to /etc/ppp/pap-secrets and /etc/ppp/chap-secrets, for it to
> work (I have it already in there, put by pppconfig).

right, I tried to avoid writing to the config files when doing an operation that
was supposed to do this cleanly, but it's clearly the best solution to do this
securely

>
> The final problem is handling of volume settings: my ISDN modem doesn't accept
> AT&FH0M0 command, and what follows it in the chatscript is "OK-AT-OK-ATDT...",
> which fails for me, because ATM0 fails (it gives out "ERROR" instead of "OK",
> and ABORT ERROR is set).

that's weird, M0, L1, L2 and L3 are standard hayes commands for setting the
modem volume, can't this be set in yours?

>
> All these changes finally made it possible for me to connect via network-admin
> "Activate" button on "Modem connection". "Deactivate" doesn't work yet (you
> ought to shut down "pppd" which was started, instead of only "ifconfig down
> ppp0"), and neither does the modem applet from gnome-applets (I get "ppp0" not
> found from chat program in the syslog).
>
> On Debian and Ubuntu, I'd prefer if configuration was done a bit differently.
> I.e. there would be one chatscript per connection, and for connecting you'd call
> "pppd call ppp0", "pppd call ppp1", etc.

ups, sorry, but in fact I tried to move a bit away from this, before 1.1.x, one
could create any interface, even if it didn't exist, and amongst other many
problems, it left the doubt of knowing which PPP interface was activated (it
doesn't matter that you call the chatscript ppp1, the interface will be called
ppp0), and it also gave problems with some distros which only supported one PPP
config at a time

So I'd encourage to use network profiles/locations for getting this :)

>
> Though, I should definitely open up a bug on bugzilla.gnome.org for all of this
> (I first thought it was only Ubuntu integration problem).

yeah, sounds like a good idea :)

A little question, you said that you have an ISDN modem, aren't you using the
capi plugin for connecting?

BTW, I'm attaching a patch that implements all the suggestions but the ATM0 one

    Thanks!