[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

problems using wvdial



Greetings,

>>>>> "Srinivas" == Srinivas V <srinivas85@xxxxxxxxxxx> writes:

    Srinivas> hello this is my first mail to this list, though i have
    Srinivas> been on it for quite sometime...  i have been trying to

	      Welcome to ILUG-C :) I suppose/hope you're gonna make it
to the meeting today?

    Srinivas> connect to my ISP, Dishnet using wvdial, i made the
    Srinivas> config file and am able to dial up and connect. Wvdial
    Srinivas> also starts ppp and shows me the the dynamic ip assigned
    Srinivas> to me (i think ?). But after all this, when i open any

	      *Wvdial* by itself doesn't display IP addresses or
stuff... but instead only displays messages from the other box. A
sample is here ->

ATQ0 V1 E1 S0=0 &C1 &D2 S11=55 +FCLASS=0
OK
--> Sending: ATM0
ATM0
OK
--> Modem initialized.
--> Sending: ATDT 172226
--> Waiting for carrier.
ATDT 172226
CONNECT 230400
--> Carrier detected.  Waiting for prompt.
Annex Command Line Interpreter   *   Copyright (C) 1988, 1998 Bay Networks
Checking authorization, Please wait...
Username:
--> Looks like a login prompt.
--> Sending: maskedlogin@xxxxxxxxxxxxxxx
maskedlogin@xxxxxxxxxxxxxxx
Password:
--> Looks like a password prompt.
--> Sending: (password)
Switching to PPP.
~[7f]}#@!}!}!} }4}"}&} } } } }%}&`[1c]Y;}'}"}(}"O6~
--> PPP negotiation detected.
--> Starting pppd at Sat Jul 15 09:37:38 2000

<-

	Now, this was dialing into VSNL's Digital Line , 172226, which
chose not to say anything other than, "Switching to PPP"... however,
if you were to try dialing into something@giasmda on 172228, it would
say, "Your IP Address is : 203.197.foo.bar" and then do the
~[7f]}#@!}!}!} }4}"}&} } } } }%}&`[1c]Y;}'}"}(}"O6 bit ... and Wvdial
would "Detect" PPP negotiation and invoke pppd. So what you see is
what was sent to you by the other end, and not created by wvdial --
hence it is specific to ISPs.

    Srinivas> browser, it says it can't find any servers.  i have also

	      Broken resolv.conf? Or permissions on resolv.conf are
b0rked?

	      Please run the following commands and post the output to
me (or to the list, as you please).
   
   ls -la /etc/resolv.conf
   cat /etc/resolv.conf

	      Remember that you should be normal user when you do
this, and NOT root. Mine look like: ->

[pts/4] [09:51:56] ravi@rockford [~]$ ls -la /etc/resolv.conf
-rw-rwxrwx    1 root     root           66 Jul  3 22:49 /etc/resolv.conf
[pts/4] [09:52:00] ravi@rockford [~]$ cat /etc/resolv.conf 
search vsnl.net.in
nameserver 202.54.6.35
nameserver 202.54.10.35
[pts/4] [09:52:41] ravi@rockford [~]$ 

<-

    Srinivas> resolv.conf, (is there any specific format ?).  are
    Srinivas> there any more configurations ?

	      Yes, the Wvdial man pages tell you how to keep multiple
"configurations" .. like I have [Dialer eth] for dishnet .. [Dialer
giasmda] for giasmda .. [Dialer kmr] for kmr .. and [Dialer md4] for
my md4 account ... each of which have "Username = whatever ; Password
= whateverelse ; Phone = blah" fields re-written. Read the man page.

    Srinivas> 	if one of u guys connect to dishnet using wvdial, can
    Srinivas> u send me a copy of the necessary config files ?
    Srinivas> 	thanx

		Here you go ->

rockford:/home/ravi# cat /etc/wvdial.conf.dishnet
[Dialer Defaults]
Phone = 172341
#Phone = 821 5505
Username = torvalds
Password = penguins-rule-the-world
New PPPD = yes
Modem = /dev/ttyS1
Baud = 115200
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 S11=55 +FCLASS=0
[Dialer quiet]
Init3 = ATM0
[Dialer phone2]
Phone = 821 0790

<-


		BTW one last thing - If you're using wvdial, I hope
the permissions to your config file[s] are looking okay -- I noticed
that on RedHat, it doesn't "Default" get set to the right perms. If
you were to allow telnet/ssh/ftp access to outsiders .. you could
potentially end up blowing your account. See ->

[pts/4] [09:57:28] ravi@rockford [~]$ ls -la /etc/wvdial.conf
--w-------    1 root     dialout       211 Jul 13 15:07 /etc/wvdial.conf
[pts/4] [09:57:31] ravi@rockford [~]$ cat /etc/wvdial.conf
cat: /etc/wvdial.conf: Permission denied
[pts/4] [09:57:34] ravi@rockford [~]$ 

<-

		If the perms aren't right, which they usually aren't
.. then normal $luser can cat the file and see your "Username" field
. and "Password" field .. and your account could go for a six :-)


		-Ravi
-- 
Ravikant K.Rao : http://www.symonds.net/~ravi/
Primary Email  : <ravi@xxxxxxxxxxx> | PGP: 9544A4A1   GPG: 1024D/C2FC752D
---
Visit our home page at: www.chennailug.org
Send e-mail to 'ilugc-request@xxxxxxxxxxxxxxxxxx' with 'unsubscribe' 
in either the subject or the body to unsubscribe from this list.