On Sun, May 18, 2008 at 10:43 AM, Barry Commander
<[EMAIL PROTECTED]> wrote:
> chatscript for archives
>
> $ cat /etc/ppp/chatscript
> ABORT BUSY
> ABORT VOICE
> ABORT "NO CARRIER"
> ABORT "NO DIALTONE"
> ABORT "NO DIAL TONE"
> "" ATZ
> OK ATE0V1&D2&C1S0=0+IFC=2,2
> OK AT+CGDCONT=1,"IP","general.t-mobile.uk"
> OK ATDT*99#
> CONNECT ""
> $
>
>
> 2008/5/18 Barry Commander <[EMAIL PROTECTED]>:
>
>> I now have limited connectivity (I can ping and receive replies from
>> internet hosts, but HTTP access time out). I'm using:
>>
>> # cat /etc/ppp/ppp.conf
>> default:
>> set log Phase Chat LCP IPCP CCP tun command$ cat /etc/ppp/chatscript
>> ABORT BUSY
>> ABORT VOICE
>> ABORT "NO CARRIER"
>> ABORT "NO DIALTONE"
>> ABORT "NO DIAL TONE"
>> "" ATZ
>> OK ATE0V1&D2&C1S0=0+IFC=2,2
>> OK AT+CGDCONT=1,"IP","general.t-mobile.uk"
>> OK ATDT*99#
>> CONNECT ""
>> $
>>
>>
>> tmobile:
>> set device /dev/ttyU0
>> set speed 38400
>> set log ALL
>>
>> set login "\"!chat -f /etc/ppp/chatscript\""
>> set logout "ABORT BUSY ABORT ERROR TIMEOUT 30 \"\" +++ATH OK-ATH-OK"
>>
>> set phone *99***1\#
>> set authname "web"
>> set authkey "web"
>> set timeout 120
>> set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
>> add default HISADDR
>> enable dns
>> disable ipv6cp
>>
>> which gives me:
>> May 18 16:09:35 tom-laptop ppp[17987]: tun0: Warning: 0.0.0.0/0: Change
>> route failed: errno: No such process
>> May 18 16:09:35 tom-laptop ppp[17987]: tun0: Warning: 10.0.0.2: Change
>> route failed: errno: No such process
>> May 18 16:09:35 tom-laptop ppp[17987]: tun0: Warning: ff01:5::/32: Change
>> route failed: errno: No such process
>> May 18 16:10:06 tom-laptop ppp[17987]: tun0: Warning: tun0: DIFADDR
>> 10.33.237.63/24 -> 10.0.0.2 returns 0
>>
>> I've tried setting my default route to both 10.33.237.63 and 10.0.0.2 and
>> get the same limited connectivity with both.
>> Any clues?
>> Regards
>>
>> Barry
>>
>>
>>
>> 2008/5/18 Barry Commander <[EMAIL PROTECTED]>:
>>
>>> So far I have:
>>>
>>> default:
>>> set log Phase Chat LCP IPCP CCP tun command
>>>
>>> tmobile:
>>> set device /dev/cua00
>>> set speed 38400
>>> set log ALL
>>>
>>> set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \
>>> \"\" AT OK-AT-OK ATZ OK \
>>>
>>> AT+CGDCONT=1,\\\"IP\\\",\\\"general.t-mobile.uk\\\",\\\"0.0.0.0\\\",0,0
>>> OK \
>>> AT+CGATT=1 OK \
>>> \\dATDT\\T TIMEOUT 40 CONNECT"
>>>
>>> set logout "ABORT BUSY ABORT ERROR TIMEOUT 30 \"\" +++ATH OK-ATH-OK"
>>>
>>> set phone *99***1#
>>> set authname "web"
>>> set authkey "web"
>>> set timeout 120
>>> set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
>>> add default HISADDR
>>> enable dns
>>> disable ipv6cp
>>>
>>> Which gives:
>>> # ppp -auto tmobile
>>> Working in auto mode
>>> Using interface: tun0
>>> Warning: tun0: AIFADDR 10.0.0.1/24 -> 10.0.0.2 returns 0
>>> Warning: Add route failed: 0.0.0.0/0 already exists
>>> #
>>>
>>> May 18 14:50:40 tom-laptop ppp[8643]: tun0: Warning: tun0: AIFADDR
>>> 10.0.0.1/24 -> 10.0.0.2 returns 0
>>> May 18 14:50:40 tom-laptop ppp[8643]: tun0: Warning: Add route failed:
>>> 0.0.0.0/0 already exists
>>> May 18 14:50:50 tom-laptop ppp[32305]: tun0: Warning: Chat script failed
>>>
>>> # route -n show
>>> Routing tables
>>>
>>> Internet:
>>> DestinationGatewayFlags Refs Use Mtu Prio
>>> Iface
>>> default192.168.1.1UGS7 1315 - 8
>>> iwn0
>>> 10.0.0.2 10.0.0.1 UH 00 - 4
>>> tun0
>>> 127/8 127.0.0.1 UGRS 00 33208 8
>>> lo0
>>> 127.0.0.1 127.0.0.1 UH 10 33208 4
>>> lo0
>>> 192.168.1/24 link#1 UC 10 - 4
>>> iwn0
>>> 192.168.1.100:0e:2e:85:c4:13 UHLc 1 31 - 4
>>> iwn0
>>> 224/4 127.0.0.1 URS00 33208 8
>>> lo0
>>>
>>> # ifconfig tun0
>>> tun0: flags=8051 mtu 1500
>>> groups: tun
>>> inet 10.0.0.1 --> 10.0.0.2 netmask 0xff00
>>>
>>> Any other info of use?
>>> Thanks
>>> Barry
>>>
>>> 2008/5/18 Barry Commander <[EMAIL PROTECTED]>:
>>>
>>> Hello
I've tried and failed for a few days to convert the following wvdial.conf
to something suitable for use on OpenBSD ( I was thinking ppp.conf )
Could someone show me a working example please?
[EMAIL PROTECTED]:~$ cat /etc/wvdial.conf
[Dialer Defaults]
Phone = *99***1#
Username = web
Password = web
Stupid Mode = 1
Dial Command = ATDT
Modem = /dev/ttyUSB0
Baud = 460800
Init2 = ATZ
Init3 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ISDN = 0
Modem Type = Analog Modem
Init5 =