Hi,

Apologies if this is the wrong forum, i wasn't sure where to post this as its not actually a Kali issue. I'm trying to get WVdial working installed on a Raspberry Pi2 running Kali. I am using a Huawei E3131 USB Modem.

The problem is i can not get WvDial to connect, or at least stay connected so it works... please read on

My wvdial.config is as follows

Code:
[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0
Modem Type = Analog Modem
Phone = *99#
ISDN = 0
Username = giffgaff
Password = "blank"
Modem = /dev/ttyUSB0
;Baud = 9600
Baud = 460800
stupid mode = 1
Init3 = AT+CGDCONT=1,"IP","giffgaff.com"
When i run wvdial i get the following response

Code:
--> WvDial: Internet dialer version 1.61
--> Initializing modem.
--> Sending: ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0
OK
--> Sending: AT+CGDCONT=1,"IP","giffgaff.com"
AT+CGDCONT=1,"IP","giffgaff.com"
OK
AT+CSQ
+CSQ: 12,99
OK
--> Modem initialized.
--> Sending: ATDT*99#
--> Waiting for carrier.
CONNECT 236800
--> Carrier detected.  Starting PPP immediately.
--> Starting pppd at Sat Feb 20 18:28:14 2016
--> Pid of pppd: 469
--> Using interface ppp0
--> pppd: pÈÎ
--> pppd: pÈÎ
--> pppd: pÈÎ
--> pppd: pÈÎ
--> pppd: pÈÎ
--> pppd: pÈÎ
--> pppd: pÈÎ
--> Disconnecting at Sat Feb 20 18:28:17 2016
--> The PPP daemon has died: A modem hung up the phone (exit code = 16)
--> man pppd explains pppd error codes in more detail.
--> Try again and look into /var/log/messages and the wvdial and pppd man pages for more information.
--> Auto Reconnect will be attempted in 5 seconds
My /Var/log/messages shows as

Code:
 
Feb 20 18:28:16 Drone-ID4 kernel: [   68.400107] PPP generic driver version 2.4.2
Feb 20 18:28:16 Drone-ID4 pppd[469]: pppd 2.4.6 started by root, uid 0
Feb 20 18:28:16 Drone-ID4 pppd[469]: Using interface ppp0
Feb 20 18:28:16 Drone-ID4 pppd[469]: Connect: ppp0 <--> /dev/ttyUSB0
Feb 20 18:28:16 Drone-ID4 pppd[469]: CHAP authentication succeeded: Welcome!!
Feb 20 18:28:16 Drone-ID4 pppd[469]: CHAP authentication succeeded
Feb 20 18:28:16 Drone-ID4 pppd[469]: LCP terminated by peer
Feb 20 18:28:16 Drone-ID4 pppd[469]: Modem hangup
Feb 20 18:28:16 Drone-ID4 pppd[469]: Connection terminated.
I have tried looking up LCP terminated by host but can not seem to find anything related to my issue

I have also changed usernames and passwords in the wvdial.conf file and it doesn't seem to make any difference so i get the feeling authentication may be the issue

Reading the various posts on here and generally on the net everybody seems to have very little issues and it just seems to work. I'm not sure is this is a config problem or hardware.

If anyone has a working system I would be very grateful if i could see your etc/wvdial.conf, etc/ppp/ peers/wvdial settings and also know what hardware you are using.

Many Thanks