Re: Newbie seeks modem advice



I have noticed that in message <4DC3392BE9%news@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>, Darren Salt <news@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> did write:

The AT strings would be useful (and, I suspect, not just to me), presuming Hayes compatibility and fine-tuning to force options to minimise negotiation has been done...

I *could* experiment, but I'm asking first. ;-)

Arse - completely forgot about this thread. Just checked back and noticed it highlighted...

okay, I can't fully remember how my files worked. I *know* I got wvdial to do a manual dialup, so wvdial.conf contained the following:

---------- wvdial.conf -----------

[Dialer Defaults]
Modem = /dev/ttyS0
Baud = 115200
#v90, possibly...
#Init = AT+MS=12,1,28000,56000
Init = AT+MS=56,1,32000,56000
Init2 = AT&FE0V1&C1&D2S95=45S0=0
Init3 = ATS7=60S30=0L1M0\N3%C3&K3BN1X4
Phone = 0808 991 6106
#Username = meLogin
# added since the username needs to be full
Username = meLogin@xxxxxxxxxxxxxx
Password = MyMadasafishPassWasHere

[Dialer new]
Phone = 0808 9933078
Username = newLogin
Password = MyNewPassWasHere

[Dialer BT]
Phone = 0808 9933004
#Phone = 0808 9933001
Username = myBTlogin
Password = myBTpass

[Dialer firenet]
Phone = 0845 6105121
Username = weirdFirenetLogin
Password = weirdFirenetPass

[Dialer reset]
Init = ATZ

---------- wvdial.conf -----------

As far as I remember I used to type "wvdial new" or "wvdial BT" and it could take the [Default] section then apply the relevent [Dialer] configs in addition. I used the "reset" part so that it would send a reset string to the modem when it locked up (thankfully, pretty rarely)


Someone sent me some tips on getting diald to do dial-on-demand. For this, I needed a CHAT or PAP script that would dial for me and authenticate, including AT strings and login/passes in there:


-------- dial.up --------
pppd /dev/ttyS0 115200 modem crtscts defaultroute noipdefault connect "/etc/ppp/chat.script"
-------- dial.up --------


------- chat.script ------------
#!/bin/sh
# Copyright (c) 1996, Eric Schenk.
#

#MODEM_INIT="AT&F"
MODEM_INIT="AT&FE0V1&C1&D2S95=45S0=0"
MODEM_INIT2="ATS7=60S30=0L1M0\N3%C3&K3BN1X4"

# The phone number to dial
PHONE_NUMBER="08089916106"

# The chat sequence to recognize that the remote system
# is asking for your user name.
USER_CHAT_SEQ="ogin:--ogin:--ogin:--ogin:--ogin:--ogin:--ogin:"

# The string to send in response to the request for your user name.
USER_NAME="myUSERname"

# The chat sequence to recongnize that the remote system
# is asking for your password.
PASSWD_CHAT_SEQ="word:"

# The string to send in response to the request for your password.
PASSWORD="myPASShere"

(etc)
------- chat.script ------------

For both of them I needed a "chap.secrets" and "pap.secrets" file with usernames and passwords included:

--------- chap-secrets -----------
# Secrets for authentication using CHAP
# client        server  secret                  IP addresses
myISP         *       MyPass
lineone        *       LineOnePass
tiscali         *       TissPass
(etc)
--------- chap-secrets -----------

This, despite the username and pass being mentioned in both the dialup script and wvdial.conf file. It seems that the modem could authenticate okay, but wouldn't obtain an IP until the authentication stuff was duplicated in the *-secrets files - I just assumed this to be a DHCP thing.

I never did manage to get dial-on-demand working, but the modem used to redial and reconnect automatically when I experienced the 2-hr kickoff. So I scripted something that would send around a winpopup to let everyone on my network[1] know that the modem had dropped or had connected, plus also had my apache show the last connected date/time on the index page. This was handy if I planned a large download.

I scripted a firewall rule that would be implemented when the modem dropped/reconnected for NAT and blocking unwanted nasties. It used ipchains originally (RH6.1), and a friend helped me re-write it for iptables (RH8). If you want copies of those, I'm happy to forward them on.
--
Tombstones Postmaster.
If you feel that you have received this message in error,
please contact postmaster@xxxxxxxxxxxxxxxxx including full headers.
*** Note: HTML mail WILL be killfiled. ***
.




Relevant Pages

  • Re: PPP Slack 9.1 kernel 2.4.18
    ... Make sure you are NOT attempting to look for a login or username prompt. ... The 'chat' script used to control the modem should set one or two error ...
    (comp.os.linux.questions)
  • Re: @ character in http login
    ... form for authentication inside a script. ... My only problem is my username contains the @ character (its an ...
    (comp.lang.php)
  • Re: PPP LCP: timeout
    ... authentication isn't done _directly_ on the box that ... On the box you are dialing into, it looks at the username, and MAY make ... a decision which authentication server to ask. ... you will see the chat script looking for a login ...
    (comp.os.linux.networking)
  • Re: windows login info
    ... That script is running under the context of the IUSR account, ... Search for "authentication methods" there though too ... I tried below code but its giving me machine name instead of username.. ... Dim X ...
    (microsoft.public.inetserver.asp.general)
  • Re: @ character in http login
    ... form for authentication inside a script. ... My only problem is my username contains the @ character (its an ...
    (comp.lang.php)