Armenian Knowledge Base  

Go Back   Armenian Knowledge Base > Technical sections > Operating Systems > Unix

LinkBack Thread Tools
Old 06.10.2002, 00:53   #1
Join Date: 05 2002
Location: Yerevan
Posts: 40
Downloads: 0
Uploads: 0
Reputation: 0 | 0
Post remote access server (dial-in) under Linux :)

Husov em kgtnvi mard, ov setup-a arel remote access server under linux, u kogni indz

Install em anum mgetty, yev mgetty+sendfax paketnery.
Arden mgetty pakety steghtzuma /etc/mgetty+sendfax foldery, vortegh kan
sendfax.config filery, u eli mi erku ankap ban

dialin.config file-y defaultova:

# dialin.config (CNDFILE in policy.h)
# cndfile contains a series of tokens separated by newlines, commas, tabs
# and spaces. The callerid number is compared with each token in turn,
# until a match occurs. A match occurs when the token compares equally to
# the callerid information up to the length of the token. If the token is
# prefixed with a "!", a match means "do not answer the phone". The token
# "all" matches any telephone number, and will terminate scanning of the
# cndfile. If no callerid number is present, it is assumed to have the
# value "none". A line starting with "#" is a comment. There is an
# implicit "all" at the end of the file.
# For example:

# list of my friends' data lines
#3433535, 7445343, 5551212
# dad's fax
# disallow [other] calls from numbers matching the following prefix:
# disallow that speed dialer that keeps hitting my machine
# allow all calls with the following prefixes
#832, 555
# don't allow calls when there's no callerid:
# It's okay to accept calls from out of area
# ("OUT_OF_AREA" token seems ZyXEL specific)
# disallow all other calls
# disallow all other calls
#!all $

login.config file-y:

#/AutoPPP/ - a_ppp /usr/sbin/pppd auth -chap +pap login debug

/AutoPPP/ - /etc/ppp/ppplogin

#* - - /bin/login @

mgetty.config file-y:

# For USRobotics V.Everything
port ttyS0
speed 33600
data-only y
debug 3
init-chat "" AT OK ATS7=50S0=1+S62=3+S64=2S39=10 OK

(modemy us robotics-a)
de sendfax.config-y kap chuni...

/etc/ppp folder-um options file-y edit aneluc heto hetevyal tesq unecav

mtu 576
mru 576
#serveri ip : diap-up userin nshanakvogh ip
#nshanakvogh dns windows kliwntneri hamar

Steghtzel em naev options.ttyS0 file, vori mej nuynnem grel

/etc/inittab-um avelacrel em hetevyal hatvatzi verjin toghy:

#Run gettys in standard runlevels
1:2345:respawn:/sbin/mingetty tty1
2:2345:respawn:/sbin/mingetty tty2
3:2345:respawn:/sbin/mingetty tty3
4:2345:respawn:/sbin/mingetty tty4
5:2345:respawn:/sbin/mingetty tty5
6:2345:respawn:/sbin/mingetty tty6

S0:2345:respawn:/sbin/mgetty /dev/ttyS0

dial-up lineluc modemy nuynisk trubkan cher vercnum...
Ayd depqum hetevyal hodvatzin hamadzayn varveci yev link steghtzeci:

Next to enable any user to read from and write to the serial port where
the modem is connected. For example if the modem is connected to COM1
(/dev/ttyS0), type chmod o+w /dev/ttyS0 to give everyone write permission
for that device.

Now you will need to establish a link between the /dev/modem and the
serial port devoce where the modem is connected. If the modem is on
/dev/ttyS0 you should type the following command:

ln -s /dev/ttyS0 /dev/modem

ln -s /dev/ttyS0 /dev/modem

U inittab-ub arden greci linki tchanaparhy: $

S0:2345:respawn:/sbin/mgetty /dev/modem

Ays popokhutyunic heto modemy zangin sxsec pataskhanel, trubken vercrec u
akanjin hatcheli dzener sxec hanel ))

Connect iharke cheghav
Inchem skhal arel?
Kam karogha ashkhatogh conf filer meknumeky unena?
Sistemas redhat 7.3-a

Reply With Quote
Old 06.10.2002, 04:31   #2
¡no pasaran!
dolphin's Avatar
Join Date: 03 2002
Location: localhost
Age: 39
Posts: 540
Downloads: 0
Uploads: 0
Reputation: 13 | 4

Dorogoj norik,

Vo pervyx RAS (remote access server) ne imeet nikakogo otnoshenija nastrojke modema dlja dial-in, eto otdel'noe ustrojstvo, kotoroe podsoedinjaetsja s odnoj storony cherez (naprimer) optovolokno k ATS, s drugoj prjamo k LAN i vsja konfiguracija sidit vnutri.

A vo vtoryx pochitaj na schet /etc/ppp/pap-secrets

from man pppd


Note that the peer must have an entry in the
/etc/ppp/pap-secrets file as well as the system password database to be allowed


Vse ostal'noe vrode pravil'no... (?)
[ que fors aus ne le sot riens nee ]
Reply With Quote
Old 06.10.2002, 04:50   #3
VX's Avatar
Join Date: 01 2002
Location: Кавказская Албания
Posts: 889
Downloads: 0
Uploads: 0
Reputation: 0 | 0

S0:2345:respawn:/sbin/mgetty ttyS0 -D /dev/ttyS0
Reply With Quote
Old 06.10.2002, 05:36   #4
¡no pasaran!
dolphin's Avatar
Join Date: 03 2002
Location: localhost
Age: 39
Posts: 540
Downloads: 0
Uploads: 0
Reputation: 13 | 4

-D Tells mgetty that the modem is to be treated as a DATA modem, no fax initalization is
Reply With Quote
Old 10.10.2002, 20:02   #5
Guru Apprentice
Join Date: 02 2002
Location: /dev/null
Age: 44
Posts: 524
Downloads: 0
Uploads: 0
Reputation: 0 | 0

to noch:
У тебя модемы не соединяются? Или модемы соединяются но PPP сессия не начинается?
Если первое: сначала заставь модемы цепляться и говорить друг другу CONNECT из какой-нибудь терминальной программки (типа HyperTerm из Windows или Term90 из Norton-а).
Про ppp - не знаю, не настраивал никогда

Reply With Quote
Old 21.03.2003, 07:24   #6
Join Date: 09 2002
Location: Yerevan,Armenia
Posts: 10
Downloads: 1
Uploads: 0
Reputation: 0 | 0
Reply With Quote
Sponsored Links

Thread Tools

На правах рекламы:

All times are GMT. The time now is 00:07.

Powered by vBulletin® Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.