Беспарольный интернет
Добавлено: 31 июл 2003, 15:24
Проблема с сабжем. Дозванивается, а потом обрубает. Я не очень разобрался с pppd, так что не бейте сильно за какую-нибудь глупость...
/var/log/syslog
/etc/ppp/ppp-on-dialer
на всякий случай ps aux
/var/log/syslog
/etc/ppp/ppp-onJul 31 14:33:36 learner pppd[1360]: pppd 2.4.1 started by root, uid 0
Jul 31 14:33:37 learner chat[1361]: timeout set to 3 seconds
Jul 31 14:33:37 learner chat[1361]: abort on (\nBUSY\r)
Jul 31 14:33:37 learner chat[1361]: abort on (\nNO ANSWER\r)
Jul 31 14:33:37 learner chat[1361]: abort on (\nRINGING\r\n\r\nRINGING\r)
Jul 31 14:33:37 learner chat[1361]: send (rAT^M)
Jul 31 14:33:38 learner chat[1361]: expect (OK)
Jul 31 14:33:38 learner chat[1361]: ^M
Jul 31 14:33:38 learner chat[1361]: OK
Jul 31 14:33:38 learner chat[1361]: -- got it
Jul 31 14:33:38 learner chat[1361]: send (ATH0^M)
Jul 31 14:33:38 learner chat[1361]: timeout set to 80 seconds
Jul 31 14:33:38 learner chat[1361]: send (rAT&FE0V1&C1&D2S95=45S0=0^M)
Jul 31 14:33:38 learner chat[1361]: expect (OK)
Jul 31 14:33:38 learner chat[1361]: ^M
Jul 31 14:33:38 learner chat[1361]: ^M
Jul 31 14:33:38 learner chat[1361]: OK
Jul 31 14:33:38 learner chat[1361]: -- got it
Jul 31 14:33:38 learner chat[1361]: send (ATH0^M)
Jul 31 14:33:38 learner chat[1361]: timeout set to 80 seconds
Jul 31 14:33:38 learner chat[1361]: send (rATS7=60S30=0L1M1N3%C3&K3BN1X4^M)
Jul 31 14:33:39 learner chat[1361]: expect (OK)
Jul 31 14:33:39 learner chat[1361]: ^M
Jul 31 14:33:39 learner chat[1361]: ^M
Jul 31 14:33:39 learner chat[1361]: OK
Jul 31 14:33:39 learner chat[1361]: -- got it
Jul 31 14:33:39 learner chat[1361]: send (ATH0^M)
Jul 31 14:33:39 learner chat[1361]: timeout set to 80 seconds
Jul 31 14:33:39 learner chat[1361]: expect (OK)
Jul 31 14:33:39 learner chat[1361]: ^M
Jul 31 14:33:39 learner chat[1361]: ^M
Jul 31 14:33:39 learner chat[1361]: OK
Jul 31 14:33:39 learner chat[1361]: -- got it
Jul 31 14:33:39 learner chat[1361]: send (ATDP8w6001001111^M)
Jul 31 14:33:39 learner chat[1361]: expect (CONNECT)
Jul 31 14:33:39 learner chat[1361]: ^M
Jul 31 14:33:39 learner chat[1361]: ^M
Jul 31 14:33:39 learner chat[1361]: ERROR^M
Jul 31 14:33:39 learner chat[1361]: ^M
Jul 31 14:33:39 learner chat[1361]: OK^M
Jul 31 14:34:31 learner chat[1361]: ^M
Jul 31 14:34:31 learner chat[1361]: CARRIER 33600^M
Jul 31 14:34:31 learner chat[1361]: ^M
Jul 31 14:34:31 learner chat[1361]: PROTOCOL: LAP-M^M
Jul 31 14:34:31 learner chat[1361]: ^M
Jul 31 14:34:31 learner chat[1361]: COMPRESSION: V.42BIS^M
Jul 31 14:34:31 learner chat[1361]: ^M
Jul 31 14:34:31 learner chat[1361]: CONNECT
Jul 31 14:34:31 learner chat[1361]: -- got it
Jul 31 14:34:31 learner chat[1361]: send (^M)
Jul 31 14:34:31 learner pppd[1360]: Serial connection established.
Jul 31 14:34:31 learner pppd[1360]: using channel 5
Jul 31 14:34:31 learner pppd[1360]: Using interface ppp0
Jul 31 14:34:31 learner pppd[1360]: Connect: ppp0 <--> /dev/ttyS1
Jul 31 14:34:32 learner pppd[1360]: sent [LCP ConfReq id=0x1 <asyncmap 0x20a0000> <magic 0x22231d34> <pcomp> <accomp>]
Jul 31 14:34:50 learner last message repeated 6 times
Jul 31 14:34:52 learner pppd[1360]: Hangup (SIGHUP)
Jul 31 14:34:52 learner pppd[1360]: Modem hangup
Jul 31 14:34:52 learner pppd[1360]: Connection terminated.
Jul 31 14:34:53 learner pppd[1360]: Exit.
Командв инициализации вырывал из лога в винде, я в них не шарю, если спорол ерунду, не серчайте ...#!/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=8w6001001111 # The telephone number for the connection
ACCOUNT=learner # The account name for logon (as in 'George Burns')
PASSWORD=cooler # 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 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=/etc/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 115200 \
asyncmap 20A0000 escape FF kdebug 0 $LOCAL_IP:$REMOTE_IP \
noipdefault netmask $NETMASK defaultroute connect $DIALER_SCRIPT
/etc/ppp/ppp-on-dialer
/etc/ppp/options#!/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 80 \
'' \rAT\&FE0V1\&C1\&D2S95=45S0=0 \
'OK-+++\c-OK' ATH0 \
TIMEOUT 80 \
'' \rATS7=60S30=0L1M1\N3\%C3\&K3BN1X4 \
'OK-+++\c-OK' ATH0 \
TIMEOUT 80 \
OK ATDP$TELEPHONE \
CONNECT ''
/etc/ppp/pap-secretslock
defaultroute
name learner
/etc/ppp/chap-sectrets#
# /etc/ppp/pap-secrets
#
# This is a pap-secrets file to be used with the AUTO_PPP function of
# mgetty. mgetty-0.99 is preconfigured to startup pppd with the login option
# which will cause pppd to consult /etc/passwd (and /etc/shadow in turn)
# after a user has passed this file. Don't be disturbed therfore by the fact
# that this file defines logins with any password for users. /etc/passwd
# (again, /etc/shadow, too) will catch passwd mismatches.
#
# This file should block ALL users that should not be able to do AUTO_PPP.
# AUTO_PPP bypasses the usual login program so its necessary to list all
# system userids with regular passwords here.
#
# ATTENTION: The definitions here can allow users to login without a
# password if you don't use the login option of pppd! The mgetty Debian
# package already provides this option; make sure you don't change that.
# INBOUND connections
# Every regular user can use PPP and has to use passwords from /etc/passwd
* (none) "" *
# UserIDs that cannot use PPP at all. Check your /etc/passwd and add any
# other accounts that should not be able to use pppd!
#guest (none) "*" -
#master (none) "*" -
#root (none) "*" -
#support (none) "*" -
#stats (none) "*" -
# OUTBOUND connections
# Here you should add your userid password to connect to your providers via
# PAP. The * means that the password is to be used for ANY host you connect
# to. Thus you do not have to worry about the foreign machine name. Just
# replace password with your password.
# If you have different providers with different passwords then you better
# remove the following line.
learner * cooler
не знаю, что еще написать ...# Secrets for authentication using CHAP
# client server secret IP addresses
# Added by automatic ipppd configuration
learner * cooler
на всякий случай ps aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.5 0.1 1272 484 ? S 14:22 0:04 init
root 2 0.0 0.0 0 0 ? SW 14:22 0:00 [keventd]
root 3 0.0 0.0 0 0 ? SWN 14:22 0:00 [ksoftirqd_CPU0]
root 4 0.0 0.0 0 0 ? SW 14:22 0:00 [kswapd]
root 5 0.0 0.0 0 0 ? SW 14:22 0:00 [bdflush]
root 6 0.0 0.0 0 0 ? SW 14:22 0:00 [kupdated]
root 7 0.0 0.0 0 0 ? SW 14:22 0:00 [khubd]
daemon 114 0.0 0.1 1384 424 ? S 14:22 0:00 /sbin/portmap
root 811 0.0 0.3 2036 784 ? S 14:22 0:00 /sbin/syslogd
root 814 0.0 0.2 1348 532 ? S 14:22 0:00 /sbin/klogd
root 819 0.0 0.2 1444 692 ? S 14:22 0:00 /sbin/rpc.statd
root 842 0.0 0.2 1988 700 ? S 14:22 0:00 /usr/sbin/inetd
root 877 0.0 0.2 2044 744 ? S 14:22 0:00 /usr/sbin/lpd
root 884 0.0 0.4 2792 1216 ? S 14:22 0:00 /usr/sbin/sshd
proxy 898 0.0 0.3 2160 900 ? S 14:22 0:00 /usr/sbin/wwwoffled -c /etc/wwwoffle/wwwoffle.conf
root 905 0.0 1.2 4440 3288 ? S 14:22 0:00 /usr/bin/X11/xfs -daemon
daemon 911 0.0 0.2 1384 580 ? S 14:22 0:00 /usr/sbin/atd
root 914 0.0 0.2 1652 688 ? S 14:22 0:00 /usr/sbin/cron
root 928 0.0 0.1 1232 304 ? S 14:22 0:00 /usr/bin/vmnet-bridge -d /var/run/vmnet-bridge-0.pid /dev/vmnet0 eth0
root 953 0.0 0.1 1232 304 ? S 14:22 0:00 /usr/bin/vmnet-netifup -d /var/run/vmnet-netifup-vmnet1.pid /dev/vmnet1 vmnet1
root 958 0.0 0.1 1232 304 ? S 14:22 0:00 /usr/bin/vmnet-netifup -d /var/run/vmnet-netifup-vmnet8.pid /dev/vmnet8 vmnet8
root 975 0.0 0.1 1324 488 ? S 14:22 0:00 /usr/bin/vmnet-natd -d /var/run/vmnet-natd-8.pid -m /var/run/vmnet-natd-8.mac -c /etc/vmware/vmnet8/nat/nat.conf
root 993 0.0 0.3 2160 836 ? S 14:22 0:00 /usr/bin/vmnet-dhcpd -cf /etc/vmware/vmnet1/dhcpd/dhcpd.conf -lf /etc/vmware/vmnet1/dhcpd/dhcpd.leases -pf /var/run/vmnet-dhcpd-vmnet1.pid vmnet1
root 1017 0.0 0.3 2160 836 ? S 14:22 0:00 /usr/bin/vmnet-dhcpd -cf /etc/vmware/vmnet8/dhcpd/dhcpd.conf -lf /etc/vmware/vmnet8/dhcpd/dhcpd.leases -pf /var/run/vmnet-dhcpd-vmnet8.pid vmnet8
root 1062 0.0 0.3 1856 888 ? S 14:22 0:00 /usr/bin/vmware-nmbd -D -l /dev/null -s /etc/vmware/vmnet1/smb/smb.conf -f /var/run/vmware-nmbd-vmnet1.pid
root 1093 0.0 0.7 3384 1956 ? S 14:22 0:00 /usr/bin/vmware-smbd -D -l /dev/null -s /etc/vmware/vmnet1/smb/smb.conf -f /var/run/vmware-smbd-vmnet1.pid
root 1241 0.0 0.5 2508 1400 tty1 S 14:22 0:00 -bash
root 1242 0.0 0.1 1256 468 tty2 S 14:22 0:00 /sbin/getty 38400 tty2
root 1243 0.0 0.1 1256 468 tty3 S 14:22 0:00 /sbin/getty 38400 tty3
root 1244 0.0 0.1 1256 468 tty4 S 14:22 0:00 /sbin/getty 38400 tty4
root 1245 0.0 0.1 1256 468 tty5 S 14:22 0:00 /sbin/getty 38400 tty5
root 1246 0.0 0.1 1256 468 tty6 S 14:22 0:00 /sbin/getty 38400 tty6
root 1256 0.0 0.4 2144 1068 tty1 S 14:23 0:00 /bin/sh /usr/bin/X11/startx
root 1263 0.0 0.2 2184 648 tty1 S 14:23 0:00 xinit /usr/X11R6/lib/X11/xinit/xinitrc -- /usr/X11R6/lib/X11/xinit/xserverrc
root 1264 0.3 4.3 276600 11132 ? S< 14:23 0:02 /usr/bin/X11/X -dpi 100 -nolisten tcp
root 1269 0.0 0.4 2140 1040 tty1 S 14:23 0:00 /bin/sh /root/.xsession
root 1294 0.0 0.3 2240 776 ? S 14:23 0:00 /usr/bin/ssh-agent /root/.xsession
root 1296 0.1 1.1 6248 3016 tty1 S 14:23 0:00 icewm
root 1297 0.0 0.9 4344 2380 ? S 14:23 0:00 xterm
root 1298 0.0 0.5 2500 1384 pts/0 S 14:23 0:00 bash
root 1302 0.0 0.9 4372 2420 ? S 14:24 0:00 xterm
root 1303 0.0 0.5 2500 1384 pts/1 S 14:24 0:00 bash
root 1337 0.0 0.9 4452 2492 ? S 14:30 0:00 xterm
root 1338 0.0 0.5 2500 1392 pts/2 S 14:30 0:00 bash
root 1376 0.0 0.6 3768 1716 pts/2 R 14:36 0:00 ps aux