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

Reply
 
Thread Tools

remote access server (dial-in) under Linux :)
Old 06.10.2002, 00:53   #1
Младенец
 
Join Date: 05 2002
Location: Yerevan
Posts: 40
Rep Power: 0
Post remote access server (dial-in) under Linux :)

VoghjUIN!
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
dialin.config
login.config
mgetty.config
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
#4164646777
#
# disallow [other] calls from numbers matching the following prefix:
#!416
#
# disallow that speed dialer that keeps hitting my machine
#!3444444
#
# allow all calls with the following prefixes
#832, 555
#
# don't allow calls when there's no callerid:
#!none
#
# It's okay to accept calls from out of area
# ("OUT_OF_AREA" token seems ZyXEL specific)
#OUT_OF_AREA
#
# disallow all other calls
#!all
# 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

lock
login
auth
netmask 255.255.255.248
modem
crtscts
-chap
+pap
mtu 576
mru 576
proxyarp
#serveri ip : diap-up userin nshanakvogh ip
62.84.105.51:62.84.105.52
#nshanakvogh dns windows kliwntneri hamar
ms-dns 62.84.100.7

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
))

Shnorhakalutyun
__________________
http://www.hay.am

Old 06.10.2002, 04:31   #2
¡no pasaran!
 
dolphin's Avatar
 
Join Date: 03 2002
Location: localhost
Age: 42
Posts: 540
Rep Power: 5
Smile

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
access.

...



Vse ostal'noe vrode pravil'no... (?)
__________________
[ que fors aus ne le sot riens nee ]

Old 06.10.2002, 04:50   #3
VX
Консервативн
 
VX's Avatar
 
Join Date: 01 2002
Location: Кавказская Албания
Posts: 889
Rep Power: 0
Post

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

Old 06.10.2002, 05:36   #4
¡no pasaran!
 
dolphin's Avatar
 
Join Date: 03 2002
Location: localhost
Age: 42
Posts: 540
Rep Power: 5
Post

-D Tells mgetty that the modem is to be treated as a DATA modem, no fax initalization is
attempted.

Old 10.10.2002, 20:02   #5
Guru Apprentice
 
Join Date: 02 2002
Location: /dev/null
Age: 47
Posts: 524
Rep Power: 0
Post

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

Ektich

Old 21.03.2003, 07:24   #6
Младенец
 
Join Date: 09 2002
Location: Yerevan,Armenia
Posts: 10
Rep Power: 0
Default

http://www.iatp.am/sites/gyumri/Reso...-In_Server.pdf
Reply




Реклама:
реклама

All times are GMT. The time now is 19:04.
Top

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