Az Internet elérése telefonos behívással, Linux alól a HUNGARNET Egyesület tagjai részére
A programokat Janovszki Levente, a Békéscsabai Megyei Könyvtár munkatársa bocsájtotta a szakosztály rendelkezésére.
Kiindulásként feltételezünk egy Linux operációs rendszerrel mûködõ személyi számítógépet és egy megfelelõen csatlakoztatott modem meglétét.
1. A kapcsolat létrehozásához szükséges adatok
(Az alábbi adatokat azon az Ön nevére szóló adatlapon találja, amelyet a Hungarnet Egyesületnél átvett.)vezetéknév.keresztnév@iif.hu formában, ékezetek nélkül, pl. szabo.gabor@iif.hu
vezetéknév_keresztnév@iif.hu formában, ékezetek nélkül, pl. szabo_gabor@iif.hu
- a jelszava a Hungarnet terminálszerverén
- a hívandó telefonszám
| Távközlési körzet száma | behívószám | Távközlési körzet száma | behívószám |
|---|---|---|---|
| 1 | 06-51-310-310 | 59 | 06-51-310-310 |
| 22 | 06-51-310-310 | 62 | 06-51-310-310 |
| 23 | 06-51-310-310 | 63 | 06-51-310-310 |
| 24 | 06-51-310-310 | 66 | 06-51-300-300 |
| 25 | 06-51-310-310 | 68 | 06-51-300-300 |
| 26 | 06-51-310-310 | 69 | 06-51-310-310 |
| 27 | 06-51-310-310 | 72 | 06-51-310-310 |
| 28 | 06-51-310-310 | 73 | 06-51-310-310 |
| 29 | 06-51-310-310 | 74 | 06-51-310-310 |
| 32 | 06-51-300-300 | 75 | 06-51-310-310 |
| 33 | 06-51-310-310 | 76 | 06-51-310-310 |
| 34 | 06-51-310-310 | 77 | 06-51-310-310 |
| 35 | 06-51-310-310 | 78 | 06-51-310-310 |
| 36 | 06-51-310-310 | 79 | 06-51-310-310 |
| 37 | 06-51-310-310 | 82 | 06-51-310-310 |
| 42 | 06-51-310-310 | 83 | 06-51-310-310 |
| 44 | 06-51-310-310 | 84 | 06-51-310-310 |
| 45 | 06-51-310-310 | 85 | 06-51-310-310 |
| 46 | 06-51-310-310 | 87 | 06-51-310-310 |
| 47 | 06-51-310-310 | 88 | 06-51-310-310 |
| 48 | 06-51-310-310 | 89 | 06-51-300-300 |
| 49 | 06-51-310-310 | 92 | 06-51-310-310 |
| 52 | 06-51-310-310 | 93 | 06-51-310-310 |
| 53 | 06-51-310-310 | 94 | 06-51-310-310 |
| 54 | 06-51-310-310 | 95 | 06-51-300-300 |
| 56 | 06-51-310-310 | 96 | 06-51-310-310 |
| 57 | 06-51-310-310 | 99 | 06-51-310-310 |
2. A kapcsolat létrehozásához szükséges beállítások
- A TCP/IP protokoll és a tárcsázóprogram ellenõrzése
- Az új kapcsolat létrehozása
- Behívás - a kapcsolat bontása
2. A kapcsolat létrehozásához szükséges feltételek
- A TCP/IP protokoll
- chat
- pppd
- Az alábbi két program, az ACCOUNT és a PASSWORD paraméterek módosításával. Elhelyezhetõ például a /root/pppd alkönyvtárba.
#!/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=0651310310 # The telephone number for the connection
ACCOUNT=nemecsek_erno@iif.hu # The account name for logon
PASSWORD=jelszo # The password for this account
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 which 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=/root/ppp/ppp-on-dialer
#
# 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 38400 \
asyncmap 20A0000 escape FF kdebug 0 $LOCAL_IP:$REMOTE_IP \
noipdefault netmask $NETMASK defaultroute connect $DIALER_SCRIPT#!/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' \
'' \rAT \
'OK-+++\c-OK' ATH0 \
TIMEOUT 30 \
OK ATDT$TELEPHONE \
CONNECT '' \
sername:--sername: $ACCOUNT \
assword: $PASSWORD
2008 szep. 21. - 14:14






