PDA

View Full Version : internet with Linux


yawningdog
10-22-2001, 11:16 PM
I'm trying to get online with Linux 7.0. I just got a new hardware modem (Aopen FM56-EX/2) and set up my netzero account in the dialup config. When I went to use the PPP dialer to access the server, I got modem sounds proper, but the connection is never made, and I get "failed to connect" messages. Can someone tell me what the problem may be?

------------------
Give a man a fish, and you feed him for a day. Teach him to use the net, and he wont bother you for weeks.

YODA74
10-22-2001, 11:34 PM
out of my league on this but maybe this might help you??


Setting up the PPP dial out

This is not necessary if you want to install dial on demand (diald). I included it here so that you can test the ppp dial out before you actually install diald.

In /usr/doc/ppp*/scripts directory, copy "ppp-on" and "ppp-off" scripts to /usr/sbin and copy "ppp-on-dialer" to /etc/ppp

cd /usr/doc/ppp*

cp ppp-o* /usr/sbin

cp ppp-on-dialer /etc/ppp

If you ISP does not use PAP authentication, then you can just edit the ppp-on file to enter the correct phone number, log-in name, and password. Your ISP may accept both console and ppp log-in, so you may have to add the respond to the command prompt like this one here. This is the "ppp-on-dialer" that I used to dial in to the University.

#!/bin/sh
#
# This is part 2 of the ppp-on script. It will perform the connection
# protocol for the desired connection.
#
exec chat -v \
TIMEOUT 3 \
ABORT '\nBUSY\r' \
ABORT '\nNO ANSWER\r' \
ABORT '\nRINGING\r\n\r\nRINGING\r' \
'' ATE1V1X4Q0\&C1\&D2 \
'OK-+++\c-OK' ATH0 \
TIMEOUT 30 \
OK ATDT$TELEPHONE \
CONNECT \n \
ogin:--ogin: $ACCOUNT \
assword: $PASSWORD \
sfu.ca: ppp

Please note the change to the line CONNECT and the added line sfu.ca:

If your ISP uses PAP or CHAT authentication, you must delete the lines after "connect". Make a copy before you modify ppp-on and ppp-on-dialer like the example here:

This is the ppp-on-dialer to an NT workstation using pap

#!/bin/sh
#
# This is part 2 of the ppp-on script. It will perform the connection
# protocol for the desired connection.
#
exec chat -v \
TIMEOUT 3 \
ABORT '\nBUSY\r' \
ABORT '\nNO ANSWER\r' \
ABORT '\nRINGING\r\n\r\nRINGING\r' \
'' ATE1V1X4Q0\&C1\&D2 \
'OK-+++\c-OK' ATH0 \
TIMEOUT 30 \
OK ATDT$TELEPHONE \
CONNECT ""

The difference to the original dialer script is for pap, you don't need to log in, and pppd will log in for you. you put your name and password in the "pap-secrets" file in /etc/ppp folder like this:

abird * passedby

if you have more than one ISP make sure you use different log in names, since pppd will find the first user name that matches the name passed to it by either the "options" file or the command line (name username) options.

This is the actual script that I use to dial up to my University, note that extra \n that is necessary to get the login prompt since my University uses both console and pap ppp login.

#!/bin/sh
#
#
#
exec chat -v \
TIMEOUT 3 \
ABORT '\nBUSY\r' \
ABORT '\nNO ANSWER\r' \
ABORT '\nRINGING\r\n\r\nRINGING\r \
'' ATE1V1X4Q0\&C1\&D2%C1 \
'OK-+++\c-OK' ATH0 \
TIMEOUT 30 \
OK ATDT$TELEPHONE \
CONNECT \d\d\n\d\d \
'' \n

Here is the ppp-on script I used to connect to the same NT server:

#!/bin/sh
#
# Script to initiate a ppp connection. This is the first part of the
# pair of scripts. This is not a secure pair of scripts as the codes
# are visible with the 'ps' command. However, it is simple.
#
# These are the parameters. Change as needed.
TELEPHONE=123-4455 # The telephone number for the connection
ACCOUNT=abird # The account name for logon (as in 'George Burns')
PASSWORD=passedby # The password for this account (and 'Gracie Allen')
LOCAL_IP=0.0.0.0 # Local IP address if known. Dynamic = 0.0.0.0
REMOTE_IP=0.0.0.0 # Remote IP address if desired. Normally 0.0.0.0
NETMASK=255.255.255.0 # The proper netmask if needed
#
# Export them so that they will be available at 'ppp-on-dialer' time.
export TELEPHONE ACCOUNT PASSWORD
#
# This is the location of the script that dials the phone and logs
# in. Please use the absolute file name as the $PATH variable is not
# used on the connect option. (To do so on a 'root' account would be
# a security hole so don't ask.)
#
DIALER_SCRIPT=/etc/ppp/ppp-on-dialer-mike
#
# Initiate the connection
#
# I put most of the common options on this command. Please, don't
# forget the 'lock' option or some programs such as mgetty will not
# work. The asyncmap and escape will permit the PPP link to work with
# a telnet or rlogin connection. You are welcome to make any changes
# as desired. Don't use the 'defaultroute' option if you currently
# have a default route to an ethernet gateway.
#
exec /usr/sbin/pppd debug lock modem crtscts /dev/ttyS1 name $ACCOUNT 38400 \
asyncmap 0 $LOCAL_IP:$REMOTE_IP \
noipdefault netmask $NETMASK defaultroute connect $DIALER_SCRIPT

Please note that I passed the option "name $ACCOUNT" to pppd for connecting to a pap server.



------------------
W/Me (memory eater)
Me Help (http://www.webtechgeek.com/center_Frame_win_me_tips.html)
BUDS TS. (http://www.geocities.com/~budallen/whatsnew.html)
answers (http://www.dewassoc.com/support/index.html)

yawningdog
10-24-2001, 11:20 PM
I appreciate the effort YODA74, but you've gone way over my head. Allow me to ask some simpler questions.

Who out there is using Linux on the net? What isp are you using? Has anyone had any luck hacking in?

That reminds me YODA74. I downloaded a program which will encrypt my netzero password and allow me to hack my way on with linux. (I'm already paying for their service, so I'm not stealing.) Problem is, the program isn't built and my compiler (Quincy 99)for some reason will not build it. (The "build" radio button wont enable) Any ideas why this could be?

------------------
Give a man a fish, and you feed him for a day. Teach him to use the net, and he wont bother you for weeks.

kjc55
09-27-2006, 12:30 PM
Modems are driven by a series of special charaters the 'ATD' series specifies the number to dial - ATDWT123456 - tells the modem to wait till dial tone, use tone dialing and dial 123456.

I had a similar problem with my FM56 EX and with a clue found in the last thread, I eventuall tracked down where the connect string is located - /etc/chatscripts/pp0. The connect string was ATDT0198..... with the W missing the modem was not waiting for a dial tone.

Solution - you could edit the file and add a W after the D (but sone dial tones dont get recognised) or simply prefix the number with a comma - I entered the phone number as ,0198..... in the dialup preferences. The commar is a pause.

For Ipswich Australia one commar pause was enough. :)

juniper
09-27-2006, 04:33 PM
You need linspire