Denis Kolesnichenko
-
????????? ???????????? ???????????
-
????????? mgetty
-
????????? ppp
-
????????? IP Forwarding
-
?????? ??????? ?????????
-
???? ???-?? ?? ????????...
-
????????? Windows-????????
-
??????????
??? 1. ????????? ???????????? ???????????
???????????? ???????: Linux
??? ??????????? ppp-2.3.x (?????????? ??-?????) ? mgetty-1.1.x.
mgetty ??????? ???? ?????? ? ?????? -DAUTO_PPP, ???? ??? ?? ???, ?????
???????????
? ????????? ppp-2.4.0-3mdk.i586.rpm ? mgetty-1.1.22-2mdk.i586.rpm (Linux
Mandrake 7.2)
???? ?? ??????????? RedHat/Mandrake, ?????????? ppp ? mgetty ????? ?
??????? ??????:
# mount -t iso9660 /dev/hdd /mnty/cdrom
#cd /mnt/cdrom/Mandrake/RPMS
#rpm -Uvh mgetty*
#rpm -Uvh ppp*
????????? ?????????:
-
CDROM ???????? ??????????? /dev/hdd (Secondary Slave)
-
???????????? Linux Mandrake (??? ????????????? RedHat ?????? ?????????
? /mnt/cdrom/RedHat/RPMS)
-
?? ???????????? supermount (???? ? ??? supermount ???????, ?????? ???????
??????? ?? ?????)
-
?????? ? ????????? ??????? ????????????? ??? ????????? mgetty ? ppp. ???
????????????? ?????? ??????? ??????????????? ??? ????? - ? ??????? ??????!
?? ?? ?????? ?????????? ?????? ??, ??? ??? ?????.
??? 2. ????????? mgetty
??? ?????????? ??????/????????? mgetty ? ??? ?????? ???? ?????
/etc/mgetty+sendfax
dialin.config
login.config
mgetty.config
/etc/ppp
auth-up
auth-down
chap-secrets
ip-up
ip-down
options
pap-secrets
???? ?? ???, ????? ?????????????? ????? ??? ??? ?????????. ??? ??????????
???????? ??? ? ????
???????????????????. ? ??????? ??????, ??????????? ????? ????? ???????
???????.
/etc/mgetty+sendfax/dialin.config - ?????? ?????? (??? ????????????????).
/etc/mgetty+sendfax/login.config - ?????? ????????? ???????
/AutoPPP/- a_ppp /etc/ppp/ppplogin
?????????, ??? ??? ??????? ?? ????????????????. ???? ?? ??????, ?????
????? ?????????????
???????????? ? log-?????, ?????????????? ??? ?????? ???:
/AutoPPP/- -
/etc/ppp/ppplogin
????? ???????? /etc/ppp/ppplogin
mesg n
tty -echo
/usr/sbin/pppd silent auth -chap +pap login
? ????????? ??????? ppp ?????? -chap ????? ?????? refuse-chap, ? ??????
+pap - require-pap
???????? /etc/ppp/ppplogin ???????????
# chmod +x /etc/ppp/ppplogin
? ????? ??????? ?? ?????????? PAP ?????????????? ? ?????????????? ??????
?? /etc/passwd ????? (??. ????)
/etc/mgetty+sendfax/mgetty.config - ?????? ?????:
# For US Robotics Sportster 28.8 with speaker off
port ttyS0
speed 28800
data-only y
debug 3
init-chat "" ATZ OK AT&F1M0E1Q0S0=0 OK
answer-chat "" ATA CONNECT c r
# For Practical Peripheral 14.4 with fax disabled and prolonged
# carrier wait time (90 sec)
port ttyS1
speed 14400
data-only y
debug 3
init-chat "" ATZ OK AT&F1M0E1Q0S0=0S7=90+FCLASS=0 OK
answer-chat "" ATA CONNECT c r
# For USRobotics V.Everything
port ttyS2
speed 57600
data-only y
debug 3
init-chat "" AT OK ATS7=50S0=1+S62=3+S64=2S39=10 OK
??? ZyXEL U336E ????? ???????????? ????? ?????????:
init-chat "" ATZ OK AT&F1M0E1Q0S0=0S OK
answer-chat "" ATA CONNECT c r
?????? ????? ???????? /etc/inittab
# 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
#added by me
S0:2345:respawn:/sbin/mgetty -x 3 ttyS0
S1:2345:respawn:/sbin/mgetty -x 3 ttyS1
S2:2345:respawn:/sbin/mgetty /dev/ttyS2
S0,S1,S2 - ?????? ?????????????? - ?? ?????? ???????????? ????? ???.
????? ?????????
????????? ??? ??? ??????? ?????. S0-S2 ? ??????????? ??? ???????????.
?????? ????? ????????? mgetty (????? ??????????? ???? ??????? ????????
??????)
# init q
???? ??? ?????????? ???? ??????? ?????(?) ?? ?????????? ??? ?????????,
? /var/log/mesages ?? ???????? ????? ??????????? ?? mgetty ?? ????? ??????.
???? ?? ?????? ?????????? ???????? TR, ?? ??? ????????? ????????? ?????????
? mgetty ????????? ?????.
??? 3. ????????? ppp
?????? ??? ??????? ????? ? ???????? /etc/ppp ????????? ???? options.ttySx,
??? x - ????? ?????.
lock
login
auth
netmask 255.255.255.0
modem
crtscts
refuse-chap
require-pap
mtu 576
mru 576
proxyarp
myhost:ppp01
ms-dns CCC.CCC.CCC.CCC
????? ????????? ??? ???? ?????? ????? ??????? ? ???? /etc/ppp/options.
myhost ??????? ???????? ?? ???????? ??? ?????? Dial-In ???????.
ppp01- ??????????? ????????? ??? ???????????? ???? ???????? (?? ??????
???????????? ?????? ?????,
????????, igor, denis ? ?.?.).
????? ????? ?????? ???? ???????????, ?.?. ???? ?? ??????????? ppp0
? options.ttyS0, ?? ? options.ttyS1
????? ???????????? ppp01 ? ?.?.
ms-dns ?????????? DNS-?????? ??? ???????? Microsoft. ??????? IP DNS-???????
????? ????.
??? ????? ???????????? ????? proxyarp, ?.?. ?? ????? ?????????
IP-?????? ?????? broadcast ????? ??????? ???? ????????? ????. ??? ????
pppd ????? ?????? ??? ????? ?? ??????????? ???? ????????? ?????? ??????
???????? ethernet.
?????? "refuse-chap" ????? ?????? "-chap", ? ?????? "require-pap" -
"+pap"
?????? ????????????? ???? /etc/ppp/pap-secrets
# Secrets for authentication using PAP
# client server
secret IP addresses
*
*
""
192.168.0.11
*
*
""
192.168.0.12
*
*
""
192.168.0.13
? ????? ??????? ???????????? ??? ?????? ??? ???????? ???????, ???????
????? ??????? ??? ??????.
?????? ?? ????? ????? ?? /etc/passwd (??? /etc/shadow)
?????? ????????? ? ??? /etc/hosts
192.168.0.11 ppp01 ppp01.mydomain.com
192.168.0.12 ppp02 ppp02.mydomain.com
192.168.0.13 ppp03 ppp03.mydomain.com
mydomain.com ????? ???????? ?? ???????? ??? ??????.
??? ??????? ??? ?????? ????? ?????? ????? ? ? ????????? ???? DNS.
??? 4.
?????? /usr/sbin/pppd ????????? setuid "rood"
# chmod u+s /usr/sbin/pppd
??? 5.
???????? IP Forwarding
?????????? ????????? IP ??????????????? ? /etc/sysconfig/network
?????, ???????? ???:
FORWARD_IPV4=yes
???? ???? ?????? ???? ?????????????? ??? ????????? IP_FORWARD
??????? ???????
# echo "1" > /proc/net/ip_forward
?????? ?? ?????? ? ??????!
?????? ??????? ????????? ppp
???? ??????? ????? ????????? ???? ????? ???????, ??? ??????.
???????? ?????? /etc/options ? /etc/options.ttySx ???????? ????????,
?????
myhost:pp01
????? ???????? ??
Server_IP:Client_IP
????????,
192.168.0.1:192.168.0.11
????? ???????? ?????????? ????? /etc/ppp/pap-secrets
#
user1 ??????.????? "" *
user2 ??????.????? "" *
#
user1 - ??? ????????????, ??????????????????? ? ???????
??????.????? - ???????? ?? ???????? ??? ??????? ???????? ???????
"" - ?????? ????? ?? /etc/passwd (/etc/shadow)
* - ??????? ????? ??????????????????? ? ?????? IP.
??? ??????? ????? ????????? ?????? ??????. ? ???? ?????? (???? ????
?????? ???????????? ?????
? ? ???????? ?????????) ??? dial-up'a ? POP-??????? ????? ??????????????
????????? ??????.
????????! ?????? ? /etc/ppp/pap-secrets ?????????? ? ???????? ????,
? ?? ?????????? ? ???????
MD5 (??? DES) ??? ? ????? /etc/shadow (/etc/passwd)
???? /etc/hosts ??????? ?? ?????.
??? ? ???.
???? ???-?? ?? ????????...
?????? ????? - ???????? /var/log/messages - ??? ????? ????? ???????????.
???? ? ??? ?????????? ????????? ????:
modprobe: can't locate module char-major-24
?? ???? ????????? ? /etc/conf.modules
alias ppp-compress-21 bsd_comp
alias ppp-compress-24 ppp_deflate
alias ppp-compress-26 ppp_deflate
????????? Windows-????????
???????????? ????????? ??????????, ?????????? ?? IP ? DNS ????? ? ??????????.
??? ???????: PPP
?????????????? ?????????: ?????? "??????????? ?????? ??????"
?????????? ?????????: ?????? "TCP/IP"
??????????
PPP-HOWTO
DNS-HOWTO
NET3-HOWTO
???? ??????? ?????? ????????????
? ??????? tacacs
--------------------------------------------------
http://www.linux.org.ru/view-message.jsp?msgid=815260&back=&nocache=34458068>
? ???? ????? courier v 34 fax with v32 bit V.Everything
debug 6
fax-id 00 00 000000 (?????? ?????? ? ???? ??)
speed 57600 ( ???????? ?????? ???????? ? ???? ? ????)
direct NO ( ?????? ???? ????????? ??????? Y ??????? ????)
blocking NO (???? ?? ???? ????? ???)
port-owner uucp (???????? ??????)
port-group uucp (?????? ??????)
port-mode 0660 ( ??? ?????? ????? ??????? ? ??????)
toggle-dtr YES (?????? ???)
toggle-dtr-waittime 500 (?????? ??? )
data-only YES (???????? ?????? ??????)
fax-only NO (?????? ?? ????? ????????)
modem-type auto (??????? ???? ??????????? ????????)
init-chat "" ATS0=0 OK (? ?????? ? ???? ?????? ??????? ??????? ??? ?????? ????????????? ??????? ? ??? ?????)
modem-check-time 3600 (??????? ???????? ?? ????? ??? ??? ?????)
rings 1 (?????? ????? ? ??????? ??????)
answer-chat "" ATA CONNECT c r (????? ?????? ?? ?????? ??? ??????? ???? ??????)
answer-chat-timeout 80 (??????? ??????? ?? ????? ????)
autobauding NO (?????? ?? ???? ?? ??????
??????????? ?????? ??????????
??????? ???? ????? ??? ??? ?????????)
ringback NO (??? ?????? ??? ????????????? ?????
???????????)
ringback-time 30 (????? ????? ?????)
ignore-carrier false
issue-file /etc/issue
prompt-waittime 500
login-prompt @!login: (????? ??? ??? ?????? ??????)
login-time 240 (????? ?? ????? ???? ?? ??????????? ??
???????????)
diskspace 1024 (????? ?? ????? ??? ??? ??????)
notify faxadmin
fax-owner uucp
fax-group modem
fax-mode 0660 (?????? ????? ????? ???????? ????
???????? ????)
_________________________________________________________________
options ??? ?????? ?????? ??? ??? ????
asyncmap 0
modem
proxyarp
debug
lock
noccp
login
crtscts
require-pap
refuse-chap
passive
idle 1000
mtu 1200
mru 1200
lcp-max-configure 180
lcp-echo-interval 30
lcp-echo-failure 4
netmask 255.255.255.0
ms-dns 192.168.11.11
ms-wins 192.168.11.10
__________________________________________________________________
options.tts0
-detach
192.168.11.12:192.168.11.13
___________________________________________________________________
ppplogin
mesg n
tty -echo
/usr/sbin/pppd silent auth -chap +pap login debug
??? chap ? ?? ?????????, ?????? ????????, ?? ???????.
toggle-dtr-waittime 500 ???????? 150
modem-check-time 3600 ???????? 1500
answer-chat-timeout 80 ???????? 50
ringback-time 30 ????????
prompt-waittime 500 ?????? 150
login-time 240 300
???????????? ???? ????, ? ???????, ?? ???????? ????????????
?????? ????????...