Журнал лабораторных работ

Содержание

Журнал

Пятница (06/30/06)

/dev/pts/9
14:34:16
#tail /var/log/debug
Jun 30 14:32:58 linux2 pptpd[8259]: CTRL: Reaping child PPP[8260]
Jun 30 14:32:59 linux2 pptpd[8261]: CTRL: Reaping child PPP[8262]
Jun 30 14:33:00 linux2 pptpd[8263]: CTRL: Reaping child PPP[8264]
Jun 30 14:33:01 linux2 pptpd[8269]: CTRL: Reaping child PPP[8270]
Jun 30 14:33:01 linux2 pptpd[8272]: CTRL: Reaping child PPP[8273]
Jun 30 14:33:02 linux2 pptpd[8274]: CTRL: Reaping child PPP[8275]
Jun 30 14:33:02 linux2 pptpd[8276]: CTRL: Reaping child PPP[8277]
Jun 30 14:33:03 linux2 pptpd[8278]: CTRL: Reaping child PPP[8279]
Jun 30 14:33:03 linux2 pptpd[8280]: CTRL: Reaping child PPP[8281]
Jun 30 14:33:03 linux2 pptpd[8282]: CTRL: Reaping child PPP[8283]
14:34:19
#vi /etc/ppp/pptpd-options
80c80
< #debug
---
> debug
14:34:39
#tail -f /var/log/debug
Jun 30 14:32:58 linux2 pptpd[8259]: CTRL: Reaping child PPP[8260]
Jun 30 14:32:59 linux2 pptpd[8261]: CTRL: Reaping child PPP[8262]
Jun 30 14:33:00 linux2 pptpd[8263]: CTRL: Reaping child PPP[8264]
Jun 30 14:33:01 linux2 pptpd[8269]: CTRL: Reaping child PPP[8270]
Jun 30 14:33:01 linux2 pptpd[8272]: CTRL: Reaping child PPP[8273]
Jun 30 14:33:02 linux2 pptpd[8274]: CTRL: Reaping child PPP[8275]
Jun 30 14:33:02 linux2 pptpd[8276]: CTRL: Reaping child PPP[8277]
Jun 30 14:33:03 linux2 pptpd[8278]: CTRL: Reaping child PPP[8279]
Jun 30 14:33:03 linux2 pptpd[8280]: CTRL: Reaping child PPP[8281]
Jun 30 14:33:03 linux2 pptpd[8282]: CTRL: Reaping child PPP[8283]
14:34:45
#/etc/init.d/pptpd restart
Restarting PPTP:
Stopping PPTP: pptpd.
Starting PPTP Daemon: pptpd.
14:34:51
#tail -f /var/log/debug
              Save setup as..
                                         │                                           │
                                         │                                               │
                                                                  │ Exit                     │
                                                                      │ Exit from Minicom        │
                                                                          └──────────────────────────┘
Jun 30 14:32:58 linux2 pptpd[8259]: CTRL: Reaping child PPP[8260]
Jun 30 14:32:59 linux2 pptpd[8261]: CTRL: Reaping child PPP[8262]
Jun 30 14:33:00 linux2 pptpd[8263]: CTRL: Reaping child PPP[8264]
Jun 30 14:33:01 linux2 pptpd[8269]: CTRL: Reaping child PPP[8270]
Jun 30 14:33:01 linux2 pptpd[8272]: CTRL: Reaping child PPP[8273]
Jun 30 14:33:02 linux2 pptpd[8274]: CTRL: Reaping child PPP[8275]
Jun 30 14:33:02 linux2 pptpd[8276]: CTRL: Reaping child PPP[8277]
Jun 30 14:33:03 linux2 pptpd[8278]: CTRL: Reaping child PPP[8279]
Jun 30 14:33:03 linux2 pptpd[8280]: CTRL: Reaping child PPP[8281]
Jun 30 14:33:03 linux2 pptpd[8282]: CTRL: Reaping child PPP[8283]
14:35:08
#ping 192.168.15.100
    │ E -    Bps/Par/Bits       : 38400 8N1                                 │
                                                                                         │                       │
        │ F - Hardware Flow Control : Yes                                       │
                                                                                             │  Configuration saved  │
            â Serial port setup        ol : No                                        │
                                                                                                 │                       │
              Modem and dialing                                                           │
                                        tion]──────┐                                   └───────────────────────┘
              Screen and keyboard       setting?                                              │
                                         │                                     ‚
...
                                         │                                           │
                                         │                                               │
                                                                  │ Exit                     │
                                                                      │ Exit from Minicom        │
                                                                          └──────────────────────────┘
PING 192.168.15.100 (192.168.15.100) 56(84) bytes of data.
64 bytes from 192.168.15.100: icmp_seq=1 ttl=128 time=0.208 ms
--- 192.168.15.100 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.208/0.208/0.208/0.000 ms
14:35:12
#tail -f /var/log/debug
Jun 30 14:32:58 linux2 pptpd[8259]: CTRL: Reaping child PPP[8260]
Jun 30 14:32:59 linux2 pptpd[8261]: CTRL: Reaping child PPP[8262]
Jun 30 14:33:00 linux2 pptpd[8263]: CTRL: Reaping child PPP[8264]
Jun 30 14:33:01 linux2 pptpd[8269]: CTRL: Reaping child PPP[8270]
Jun 30 14:33:01 linux2 pptpd[8272]: CTRL: Reaping child PPP[8273]
Jun 30 14:33:02 linux2 pptpd[8274]: CTRL: Reaping child PPP[8275]
Jun 30 14:33:02 linux2 pptpd[8276]: CTRL: Reaping child PPP[8277]
Jun 30 14:33:03 linux2 pptpd[8278]: CTRL: Reaping child PPP[8279]
Jun 30 14:33:03 linux2 pptpd[8280]: CTRL: Reaping child PPP[8281]
Jun 30 14:33:03 linux2 pptpd[8282]: CTRL: Reaping child PPP[8283]
14:35:16
#tail -f /var/log/syslog
                                         │                                               │
                                                                  │ Exit                     │
                                                                      │ Exit from Minicom        │
                                                                          └──────────────────────────┘
Jun 30 14:33:03 linux2 pptpd[8282]: CTRL: Client 192.168.15.100 control connection started
Jun 30 14:33:03 linux2 pptpd[8282]: CTRL: Starting call (launching pppd, opening GRE)
Jun 30 14:33:03 linux2 pppd[8283]: Plugin /usr/lib/pptpd/pptpd-logwtmp.so is for pppd version 2.4.3, this is 2.4.4b1
Jun 30 14:33:03 linux2 pptpd[8282]: GRE: read(fd=6,buffer=80505a0,len=8196) from PTY failed: status = -1 error = Input/output error, usually caused by unexpected termination of pppd, check option syntax and pppd logs
Jun 30 14:33:03 linux2 pptpd[8282]: CTRL: PTY read or GRE write failed (pty,gre)=(6,7)
Jun 30 14:33:03 linux2 pptpd[8282]: CTRL: Reaping child PPP[8283]
Jun 30 14:33:03 linux2 pptpd[8282]: CTRL: Client 192.168.15.100 control connection finished
Jun 30 14:34:01 linux2 /USR/SBIN/CRON[8310]: (root) CMD (   rsync -auvz root@m01:/bin/ /tmp/etc2/ > /dev/null 2>&1)
Jun 30 14:34:51 linux2 pptpd[8363]: MGR: Bad IP address (192.168.16.0-192.168.16.250) in config file!
Jun 30 14:35:01 linux2 /USR/SBIN/CRON[8371]: (root) CMD (   rsync -auvz root@m01:/bin/ /tmp/etc2/ > /dev/null 2>&1)
14:35:32
#vi /etc/pptpd.conf
81,82c81,82
< localip 192.168.16.0-192.168.16.250
< localip 192.168.17.0-192.168.17.250
---
> localip 192.168.16.1-192.168.16.250
> remoteip 192.168.17.1-192.168.17.250
14:35:51
#/etc/init.d/pptpd restart
                                                                             ”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”
    │ A -    Serial Device      : /dev/tt0                                  │
                                                                              │
    │ C -   Callin Program      :                                           │
                                       ┌───────────────────────┐
    │ E -    Bps/Par/Bits       : 38400 8N1                                 │
                                                                                         │                       │
        │ F - Hardware Flow Control : Yes                                       │
                                                                                             │  Configuration saved  │
            â Serial port setup        ol : No                                        │
...
                                         │                                       │
              Save setup as..
                                         │                                           │
                                         │                                               │
                                                                  │ Exit                     │
                                                                      │ Exit from Minicom        │
                                                                          └──────────────────────────┘
Restarting PPTP:
Stopping PPTP: pptpd.
Starting PPTP Daemon: pptpd.
14:36:27
#tail -f /var/log/syslog
              Save setup as..
                                         │                                           │
                                         │                                               │
                                                                  │ Exit                     │
                                                                      │ Exit from Minicom        │
                                                                          └──────────────────────────┘
Jun 30 14:33:03 linux2 pppd[8283]: Plugin /usr/lib/pptpd/pptpd-logwtmp.so is for pppd version 2.4.3, this is 2.4.4b1
Jun 30 14:33:03 linux2 pptpd[8282]: GRE: read(fd=6,buffer=80505a0,len=8196) from PTY failed: status = -1 error = Input/output error, usually caused by unexpected termination of pppd, check option syntax and pppd logs
Jun 30 14:33:03 linux2 pptpd[8282]: CTRL: PTY read or GRE write failed (pty,gre)=(6,7)
Jun 30 14:33:03 linux2 pptpd[8282]: CTRL: Reaping child PPP[8283]
Jun 30 14:33:03 linux2 pptpd[8282]: CTRL: Client 192.168.15.100 control connection finished
Jun 30 14:34:01 linux2 /USR/SBIN/CRON[8310]: (root) CMD (   rsync -auvz root@m01:/bin/ /tmp/etc2/ > /dev/null 2>&1)
Jun 30 14:34:51 linux2 pptpd[8363]: MGR: Bad IP address (192.168.16.0-192.168.16.250) in config file!
Jun 30 14:35:01 linux2 /USR/SBIN/CRON[8371]: (root) CMD (   rsync -auvz root@m01:/bin/ /tmp/etc2/ > /dev/null 2>&1)
Jun 30 14:36:02 linux2 /USR/SBIN/CRON[8413]: (root) CMD (   rsync -auvz root@m01:/bin/ /tmp/etc2/ > /dev/null 2>&1)
Jun 30 14:36:27 linux2 pptpd[8421]: MGR: Bad IP address (192.168.17.1-192.168.17.250) in config file!
14:36:47
#vi /etc/pptpd.conf
81,82c81,82
< localip 192.168.16.1-192.168.16.250
< remoteip 192.168.17.1-192.168.17.250
---
> localip 192.168.16.1-250
> remoteip 192.168.17.1-250
14:37:02
#/etc/init.d/pptpd restart
Restarting PPTP:
Stopping PPTP: pptpd.
Starting PPTP Daemon: pptpd.
14:37:03
#tail -f /var/log/syslog
              Save setup as dfl        ───────────────────────────────────────────────────────────────────┘
                                         │                                       │
              Save setup as..
                                         │                                           │
                                         │                                               │
                                                                  │ Exit                     │
                                                                      │ Exit from Minicom        │
                                                                          └──────────────────────────┘
Jun 30 14:37:19 linux2 pptpd[8465]: CTRL: PTY read or GRE write failed (pty,gre)=(6,7)
Jun 30 14:37:19 linux2 pptpd[8465]: CTRL: Reaping child PPP[8466]
Jun 30 14:37:19 linux2 pptpd[8465]: CTRL: Client 192.168.15.100 control connection finished
Jun 30 14:37:20 linux2 pptpd[8467]: CTRL: Client 192.168.15.100 control connection started
Jun 30 14:37:20 linux2 pptpd[8467]: CTRL: Starting call (launching pppd, opening GRE)
Jun 30 14:37:20 linux2 pppd[8468]: Plugin /usr/lib/pptpd/pptpd-logwtmp.so is for pppd version 2.4.3, this is 2.4.4b1
Jun 30 14:37:20 linux2 pptpd[8467]: GRE: read(fd=6,buffer=80505a0,len=8196) from PTY failed: status = -1 error = Input/output error, usually caused by unexpected termination of pppd, check option syntax and pppd logs
Jun 30 14:37:20 linux2 pptpd[8467]: CTRL: PTY read or GRE write failed (pty,gre)=(6,7)
Jun 30 14:37:20 linux2 pptpd[8467]: CTRL: Reaping child PPP[8468]
Jun 30 14:37:20 linux2 pptpd[8467]: CTRL: Client 192.168.15.100 control connection finished
14:37:31
#tail -f /var/log/debug
                                         │                                               │
                                                                  │ Exit                     │
                                                                      │ Exit from Minicom        │
                                                                          └──────────────────────────┘
Jun 30 14:33:01 linux2 pptpd[8269]: CTRL: Reaping child PPP[8270]
Jun 30 14:33:01 linux2 pptpd[8272]: CTRL: Reaping child PPP[8273]
Jun 30 14:33:02 linux2 pptpd[8274]: CTRL: Reaping child PPP[8275]
Jun 30 14:33:02 linux2 pptpd[8276]: CTRL: Reaping child PPP[8277]
Jun 30 14:33:03 linux2 pptpd[8278]: CTRL: Reaping child PPP[8279]
Jun 30 14:33:03 linux2 pptpd[8280]: CTRL: Reaping child PPP[8281]
Jun 30 14:33:03 linux2 pptpd[8282]: CTRL: Reaping child PPP[8283]
Jun 30 14:37:18 linux2 pptpd[8463]: CTRL: Reaping child PPP[8464]
Jun 30 14:37:19 linux2 pptpd[8465]: CTRL: Reaping child PPP[8466]
Jun 30 14:37:20 linux2 pptpd[8467]: CTRL: Reaping child PPP[8468]
14:37:36
#vi /etc/ppp/pptpd-options
32,34c32,34
< refuse-pap
< refuse-chap
< refuse-mschap
---
> #refuse-pap
> #refuse-chap
> #refuse-mschap
37c37
< require-mschap-v2
---
> #require-mschap-v2
40c40
< require-mppe-128
---
> #require-mppe-128
14:38:09
#/etc/init.d/pptpd restart
Restarting PPTP:
Stopping PPTP: pptpd.
Starting PPTP Daemon: pptpd.
14:38:11
#tail -f /var/log/debug
Jun 30 14:33:01 linux2 pptpd[8269]: CTRL: Reaping child PPP[8270]
Jun 30 14:33:01 linux2 pptpd[8272]: CTRL: Reaping child PPP[8273]
Jun 30 14:33:02 linux2 pptpd[8274]: CTRL: Reaping child PPP[8275]
Jun 30 14:33:02 linux2 pptpd[8276]: CTRL: Reaping child PPP[8277]
Jun 30 14:33:03 linux2 pptpd[8278]: CTRL: Reaping child PPP[8279]
Jun 30 14:33:03 linux2 pptpd[8280]: CTRL: Reaping child PPP[8281]
Jun 30 14:33:03 linux2 pptpd[8282]: CTRL: Reaping child PPP[8283]
Jun 30 14:37:18 linux2 pptpd[8463]: CTRL: Reaping child PPP[8464]
Jun 30 14:37:19 linux2 pptpd[8465]: CTRL: Reaping child PPP[8466]
Jun 30 14:37:20 linux2 pptpd[8467]: CTRL: Reaping child PPP[8468]
14:38:23
#vi /etc/ppp/pptpd-options
14:38:30
#pppd call pptpd
pppd: Can't open options file /etc/ppp/peers/pptpd: No such file or directory
14:38:36
#pppd pptpd
                                                                          └──────────────────────────┘
pppd: unrecognized option 'pptpd'
pppd version 2.4.4b1
Usage: pppd [ options ], where options are:
        <device>        Communicate over the named device
        <speed>         Set the baud rate to <speed>
        <loc>:<rem>     Set the local and/or remote interface IP
                        addresses.  Either one may be omitted.
        asyncmap <n>    Set the desired async map to hex <n>
        auth            Require authentication from peer
        connect <p>     Invoke shell command <p> to set up the serial line
        crtscts         Use hardware RTS/CTS flow control
        defaultroute    Add default route through interface
        file <f>        Take options from file <f>
        modem           Use modem control lines
        mru <n>         Set MRU value to <n> for negotiation
See pppd(8) for more options.
14:38:41
#pppd file /etc/ppp/pptpd-options
                                                                             ”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”
    │ A -    Serial Device      : /dev/tt0                                  │
                                                                              │
    │ C -   Callin Program      :                                           │
                                       ┌───────────────────────┐
    │ E -    Bps/Par/Bits       : 38400 8N1                                 │
                                                                                         │                       │
        │ F - Hardware Flow Control : Yes                                       │
                                                                                             │  Configuration saved  │
            â Serial port setup        ol : No                                        │
...
              Screen and keyboard       setting?                                              │
                                         │                                     ‚
              Save setup as dfl        ───────────────────────────────────────────────────────────────────┘
                                         │                                       │
              Save setup as..
                                         │                                           │
                                         │                                               │
                                                                  │ Exit                     │
                                                                      │ Exit from Minicom        │
                                                                          └──────────────────────────┘
14:38:58
#tail -f /var/log/debug
Jun 30 14:33:01 linux2 pptpd[8269]: CTRL: Reaping child PPP[8270]
Jun 30 14:33:01 linux2 pptpd[8272]: CTRL: Reaping child PPP[8273]
Jun 30 14:33:02 linux2 pptpd[8274]: CTRL: Reaping child PPP[8275]
Jun 30 14:33:02 linux2 pptpd[8276]: CTRL: Reaping child PPP[8277]
Jun 30 14:33:03 linux2 pptpd[8278]: CTRL: Reaping child PPP[8279]
Jun 30 14:33:03 linux2 pptpd[8280]: CTRL: Reaping child PPP[8281]
Jun 30 14:33:03 linux2 pptpd[8282]: CTRL: Reaping child PPP[8283]
Jun 30 14:37:18 linux2 pptpd[8463]: CTRL: Reaping child PPP[8464]
Jun 30 14:37:19 linux2 pptpd[8465]: CTRL: Reaping child PPP[8466]
Jun 30 14:37:20 linux2 pptpd[8467]: CTRL: Reaping child PPP[8468]
14:39:12
#tail -f /var/log/syslog
Jun 30 14:38:58 linux2 pppd[8543]: Terminating on signal 2
Jun 30 14:38:58 linux2 pppd[8543]: Exit.
Jun 30 14:39:01 linux2 /USR/SBIN/CRON[8567]: (root) CMD (   rsync -auvz root@m01:/bin/ /tmp/etc2/ > /dev/null 2>&1)
14:39:24
#vi /etc/ppp/pptpd-options
14:39:41
#tail -f /var/log/syslog
Jun 30 14:40:01 linux2 pppd[8649]: pppd 2.4.4b1 started by root, uid 0
Jun 30 14:40:01 linux2 pppd[8649]: Using interface ppp1
Jun 30 14:40:01 linux2 pppd[8649]: found interface eth0 for proxy arp
Jun 30 14:40:01 linux2 pppd[8649]: local  IP address 192.168.15.2
Jun 30 14:40:01 linux2 pppd[8649]: remote IP address 192.168.15.32
Jun 30 14:40:01 linux2 /USR/SBIN/CRON[8659]: (root) CMD (   rsync -auvz root@m01:/bin/ /tmp/etc2/ > /dev/null 2>&1)
Jun 30 14:40:01 linux2 /USR/SBIN/CRON[8662]: (smmsp) CMD (test -x /etc/init.d/sendmail && /usr/share/sendmail/sendmail cron-msp)
Jun 30 14:40:22 linux2 pppd[8649]: Terminating on signal 2
Jun 30 14:40:22 linux2 pppd[8649]: Exit.
Jun 30 14:40:28 linux2 pppd[8705]: unrecognized option 'g'
Jun 30 14:41:01 linux2 /USR/SBIN/CRON[8712]: (root) CMD (   rsync -auvz root@m01:/bin/ /tmp/etc2/ > /dev/null 2>&1)
/dev/pts/18
14:39:47
#pptp
# replace password with your password.
# If you have different providers with different passwords then you better
# remove the following line.
"/etc/ppp/pap-secrets" 43L, 1644C written
[root@linux1:~]# vi /etc/ppp/
chap-secrets     ip-up.d/         ipv6-up.d/       peers/           tmp.zfVlsX/
ip-down          ipv6-down        options          ppp_on_boot.dsl
ip-down.d/       ipv6-down.d/     options.ttyS0    pptpd-options
ip-up            ipv6-up          pap-secrets      resolv/
pptpctrl  pptpd
14:39:47
#pppd
pppd     pppdump
14:39:47
#pppd file /etc/ppp/pptpd-options
# 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.
"/etc/ppp/pap-secrets" 43L, 1644C written
[root@linux1:~]# vi /etc/ppp/
chap-secrets     ip-up.d/         ipv6-up.d/       peers/           tmp.zfVlsX/
ip-down          ipv6-down        options          ppp_on_boot.dsl
ip-down.d/       ipv6-down.d/     options.ttyS0    pptpd-options
ip-up            ipv6-up          pap-secrets      resolv/
14:40:24
#pppd g
pppd: unrecognized option 'g'
pppd version 2.4.4b1
Usage: pppd [ options ], where options are:
        <device>        Communicate over the named device
        <speed>         Set the baud rate to <speed>
        <loc>:<rem>     Set the local and/or remote interface IP
                        addresses.  Either one may be omitted.
        asyncmap <n>    Set the desired async map to hex <n>
        auth            Require authentication from peer
        connect <p>     Invoke shell command <p> to set up the serial line
        crtscts         Use hardware RTS/CTS flow control
        defaultroute    Add default route through interface
        file <f>        Take options from file <f>
        modem           Use modem control lines
        mru <n>         Set MRU value to <n> for negotiation
See pppd(8) for more options.
14:40:28
#tail -f /var/log/debug
Jun 30 14:42:23 linux2 pptpd[8782]: CTRL: pty_fd = 6
Jun 30 14:42:23 linux2 pptpd[8782]: CTRL: tty_fd = 7
Jun 30 14:42:23 linux2 pptpd[8783]: CTRL (PPPD Launcher): program binary = /usr/sbin/pppd
Jun 30 14:42:23 linux2 pptpd[8783]: CTRL (PPPD Launcher): local address = 192.168.16.1
Jun 30 14:42:23 linux2 pptpd[8783]: CTRL (PPPD Launcher): remote address = 192.168.17.1
Jun 30 14:42:23 linux2 pptpd[8782]: CTRL: I wrote 32 bytes to the client.
Jun 30 14:42:23 linux2 pptpd[8782]: CTRL: Sent packet to client
Jun 30 14:42:23 linux2 pptpd[8782]: CTRL: Reaping child PPP[8783]
Jun 30 14:42:23 linux2 pptpd[8782]: CTRL: Exiting now
Jun 30 14:42:23 linux2 pptpd[8773]: MGR: Reaped child 8782
/dev/pts/9
14:41:10
#vi /etc/ppp/pptpd-options
14:41:10
#vi /etc/ppp/pptpd-options
14:41:45
#vi /etc/pptpd.conf
23c23
< #debug
---
> debug
14:41:56
#vi /etc/pptpd.conf
14:42:06
#/etc/init.d/pptpd restart
Restarting PPTP:
Stopping PPTP: pptpd.
Starting PPTP Daemon: pptpd.
14:42:11
#tail -f /var/log/syslog
                                         │                                               │
                                                                  │ Exit                     │
                                                                      │ Exit from Minicom        │
                                                                          └──────────────────────────┘
Jun 30 14:42:23 linux2 pppd[8783]: Plugin /usr/lib/pptpd/pptpd-logwtmp.so is for pppd version 2.4.3, this is 2.4.4b1
Jun 30 14:42:23 linux2 pptpd[8782]: CTRL: I wrote 32 bytes to the client.
Jun 30 14:42:23 linux2 pptpd[8782]: CTRL: Sent packet to client
Jun 30 14:42:23 linux2 pptpd[8782]: GRE: read(fd=6,buffer=80505a0,len=8196) from PTY failed: status = -1 error = Input/output error, usually caused by unexpected termination of pppd, check option syntax and pppd logs
Jun 30 14:42:23 linux2 pptpd[8782]: CTRL: PTY read or GRE write failed (pty,gre)=(6,7)
Jun 30 14:42:23 linux2 pptpd[8782]: CTRL: Reaping child PPP[8783]
Jun 30 14:42:23 linux2 pptpd[8782]: CTRL: Client 192.168.15.100 control connection finished
Jun 30 14:42:23 linux2 pptpd[8782]: CTRL: Exiting now
Jun 30 14:42:23 linux2 pptpd[8773]: MGR: Reaped child 8782
Jun 30 14:43:01 linux2 /USR/SBIN/CRON[8785]: (root) CMD (   rsync -auvz root@m01:/bin/ /tmp/etc2/ > /dev/null 2>&1)
Jun 30 14:44:01 linux2 /USR/SBIN/CRON[8821]: (root) CMD (   rsync -auvz root@m01:/bin/ /tmp/etc2/ > /dev/null 2>&1)
/dev/pts/18
14:43:02
#apt-get install pppd
Reading package lists... Done
Building dependency tree... Done
E: Couldn't find package pppd
14:43:06
#apt-get install ppp
Reading package lists... Done
Building dependency tree... Done
ppp is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
14:43:09
#modprobe
modprobe            modprobe.Lmodutils  modprobe.modutils
14:43:09
#lsmod
Module                  Size  Used by
ppp_deflate             6560  0
zlib_deflate           23000  1 ppp_deflate
bsd_comp                6336  0
ppp_async              12256  0
crc_ccitt               2368  1 ppp_async
ppp_generic            32436  5 ppp_deflate,bsd_comp,ppp_async
slhc                    7712  1 ppp_generic
snd_mixer_oss          20384  0
r128                  108532  2
...
ide_generic             1632  0
piix                   13824  1
ide_disk               19648  7
ide_core              142556  4 ide_cd,ide_generic,piix,ide_disk
unix                   31156  262
font                    8544  0
vesafb                  6880  0
cfbcopyarea             4096  1 vesafb
cfbimgblt               3264  1 vesafb
cfbfillrect             4000  1 vesafb
14:43:17
#lsmod | less
/dev/pts/9
14:44:12
#vi /etc/pptpd.conf
14:44:21
#vi /etc/ppp/options
14:44:40
#vi /etc/ppp/pptpd-options
94a95,97
> 
> 
> +pap
14:45:00
#tail -f /var/log/syslog
              Save setup as dfl        ───────────────────────────────────────────────────────────────────┘
                                         │                                       │
              Save setup as..
                                         │                                           │
                                         │                                               │
                                                                  │ Exit                     │
                                                                      │ Exit from Minicom        │
                                                                          └──────────────────────────┘
Jun 30 14:45:05 linux2 pptpd[8930]: CTRL (PPPD Launcher): remote address = 192.168.17.1
Jun 30 14:45:05 linux2 pppd[8930]: Plugin /usr/lib/pptpd/pptpd-logwtmp.so is for pppd version 2.4.3, this is 2.4.4b1
Jun 30 14:45:05 linux2 pptpd[8929]: CTRL: I wrote 32 bytes to the client.
Jun 30 14:45:05 linux2 pptpd[8929]: CTRL: Sent packet to client
Jun 30 14:45:05 linux2 pptpd[8929]: GRE: read(fd=6,buffer=80505a0,len=8196) from PTY failed: status = -1 error = Input/output error, usually caused by unexpected termination of pppd, check option syntax and pppd logs
Jun 30 14:45:05 linux2 pptpd[8929]: CTRL: PTY read or GRE write failed (pty,gre)=(6,7)
Jun 30 14:45:05 linux2 pptpd[8929]: CTRL: Reaping child PPP[8930]
Jun 30 14:45:05 linux2 pptpd[8929]: CTRL: Client 192.168.15.100 control connection finished
Jun 30 14:45:05 linux2 pptpd[8929]: CTRL: Exiting now
Jun 30 14:45:05 linux2 pptpd[8773]: MGR: Reaped child 8929
14:45:25
#vi /etc/ppp/pptpd-options
14:45:33
#vi /etc/pptpd.conf
14:45:44
#/etc/init.d/pptpd restart
                                                                             ”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”
    │ A -    Serial Device      : /dev/tt0                                  │
                                                                              │
    │ C -   Callin Program      :                                           │
                                       ┌───────────────────────┐
    │ E -    Bps/Par/Bits       : 38400 8N1                                 │
                                                                                         │                       │
        │ F - Hardware Flow Control : Yes                                       │
                                                                                             │  Configuration saved  │
            â Serial port setup        ol : No                                        │
...
                                         │                                       │
              Save setup as..
                                         │                                           │
                                         │                                               │
                                                                  │ Exit                     │
                                                                      │ Exit from Minicom        │
                                                                          └──────────────────────────┘
Restarting PPTP:
Stopping PPTP: pptpd.
Starting PPTP Daemon: pptpd.
14:45:52
#tail -f /var/log/syslog
Jun 30 14:46:03 linux2 pppd[9001]: Using interface ppp1
Jun 30 14:46:03 linux2 pppd[9001]: Cannot determine ethernet address for proxy ARP
Jun 30 14:46:03 linux2 pppd[9001]: local  IP address 192.168.16.1
Jun 30 14:46:03 linux2 pppd[9001]: remote IP address 192.168.17.1
Jun 30 14:46:12 linux2 pptpd[9000]: CTRL: timeout waiting for first packet from our pppd
Jun 30 14:46:12 linux2 pptpd[9000]: CTRL: I wrote 32 bytes to the client.
Jun 30 14:46:12 linux2 pptpd[9000]: CTRL: Sent packet to client
Jun 30 14:46:12 linux2 pptpd[9000]: CTRL: Received PPTP Control Message (type: 15)
Jun 30 14:46:12 linux2 pptpd[9000]: CTRL: Got a SET LINK INFO packet with standard ACCMs
Jun 30 14:46:49 linux2 pptpd[9000]: CTRL: Received PPTP Control Message (type: 12)
Jun 30 14:46:49 linux2 pptpd[9000]: CTRL: Made a CALL DISCONNECT RPLY packet
Jun 30 14:46:49 linux2 pptpd[9000]: CTRL: Received CALL CLR request (closing call)
Jun 30 14:46:49 linux2 pptpd[9000]: CTRL: Reaping child PPP[9001]
Jun 30 14:47:01 linux2 /USR/SBIN/CRON[9013]: (root) CMD (   rsync -auvz root@m01:/bin/ /tmp/etc2/ > /dev/null 2>&1)
14:47:03
#tail -f /var/log/daemon.log
Jun 30 14:46:02 linux2 pptpd[9001]: CTRL (PPPD Launcher): remote address = 192.168.17.1
Jun 30 14:46:12 linux2 pptpd[9000]: CTRL: timeout waiting for first packet from our pppd
Jun 30 14:46:12 linux2 pptpd[9000]: CTRL: I wrote 32 bytes to the client.
Jun 30 14:46:12 linux2 pptpd[9000]: CTRL: Sent packet to client
Jun 30 14:46:12 linux2 pptpd[9000]: CTRL: Received PPTP Control Message (type: 15)
Jun 30 14:46:12 linux2 pptpd[9000]: CTRL: Got a SET LINK INFO packet with standard ACCMs
Jun 30 14:46:49 linux2 pptpd[9000]: CTRL: Received PPTP Control Message (type: 12)
Jun 30 14:46:49 linux2 pptpd[9000]: CTRL: Made a CALL DISCONNECT RPLY packet
Jun 30 14:46:49 linux2 pptpd[9000]: CTRL: Received CALL CLR request (closing call)
Jun 30 14:46:49 linux2 pptpd[9000]: CTRL: Reaping child PPP[9001]
14:47:09
#less /var/log/debug
14:47:38
#iptables -t nat -L
Chain PREROUTING (policy ACCEPT)
target     prot opt source               destination
Chain POSTROUTING (policy ACCEPT)
target     prot opt source               destination
Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
14:47:42
#tail -f /var/log/debug
                                                                  │ Exit                     │
                                                                      │ Exit from Minicom        │
                                                                          └──────────────────────────┘
Jun 30 14:46:02 linux2 pptpd[9001]: CTRL (PPPD Launcher): local address = 192.168.16.1
Jun 30 14:46:02 linux2 pptpd[9001]: CTRL (PPPD Launcher): remote address = 192.168.17.1
Jun 30 14:46:12 linux2 pptpd[9000]: CTRL: I wrote 32 bytes to the client.
Jun 30 14:46:12 linux2 pptpd[9000]: CTRL: Sent packet to client
Jun 30 14:46:12 linux2 pptpd[9000]: CTRL: Received PPTP Control Message (type: 15)
Jun 30 14:46:12 linux2 pptpd[9000]: CTRL: Got a SET LINK INFO packet with standard ACCMs
Jun 30 14:46:49 linux2 pptpd[9000]: CTRL: Received PPTP Control Message (type: 12)
Jun 30 14:46:49 linux2 pptpd[9000]: CTRL: Made a CALL DISCONNECT RPLY packet
Jun 30 14:46:49 linux2 pptpd[9000]: CTRL: Received CALL CLR request (closing call)
Jun 30 14:46:49 linux2 pptpd[9000]: CTRL: Reaping child PPP[9001]
14:47:55
#vi /etc/ppp/pptpd-options
32,34c32,34
< #refuse-pap
< #refuse-chap
< #refuse-mschap
---
> refuse-pap
> refuse-chap
> refuse-mschap
37c37
< #require-mschap-v2
---
> require-mschap-v2
40c40
< #require-mppe-128
---
> require-mppe-128
97d96
< +pap
14:48:12
#tail -f /var/log/debug
                                         │                                               │
                                                                  │ Exit                     │
                                                                      │ Exit from Minicom        │
                                                                          └──────────────────────────┘
Jun 30 14:48:17 linux2 pptpd[9070]: CTRL: pty_fd = 6
Jun 30 14:48:17 linux2 pptpd[9070]: CTRL: tty_fd = 7
Jun 30 14:48:17 linux2 pptpd[9071]: CTRL (PPPD Launcher): program binary = /usr/sbin/pppd
Jun 30 14:48:17 linux2 pptpd[9071]: CTRL (PPPD Launcher): local address = 192.168.16.2
Jun 30 14:48:17 linux2 pptpd[9071]: CTRL (PPPD Launcher): remote address = 192.168.17.2
Jun 30 14:48:17 linux2 pptpd[9070]: CTRL: I wrote 32 bytes to the client.
Jun 30 14:48:17 linux2 pptpd[9070]: CTRL: Sent packet to client
Jun 30 14:48:17 linux2 pptpd[9070]: CTRL: Reaping child PPP[9071]
Jun 30 14:48:17 linux2 pptpd[9070]: CTRL: Exiting now
Jun 30 14:48:17 linux2 pptpd[8991]: MGR: Reaped child 9070
14:48:24
#tail -f /var/log/daemon.log
Jun 30 14:48:17 linux2 pptpd[9071]: CTRL (PPPD Launcher): local address = 192.168.16.2
Jun 30 14:48:17 linux2 pptpd[9071]: CTRL (PPPD Launcher): remote address = 192.168.17.2
Jun 30 14:48:17 linux2 pptpd[9070]: CTRL: I wrote 32 bytes to the client.
Jun 30 14:48:17 linux2 pptpd[9070]: CTRL: Sent packet to client
Jun 30 14:48:17 linux2 pptpd[9070]: GRE: read(fd=6,buffer=80505a0,len=8196) from PTY failed: status = -1 error = Input/output error, usually caused by unexpected termination of pppd, check option syntax and pppd logs
Jun 30 14:48:17 linux2 pptpd[9070]: CTRL: PTY read or GRE write failed (pty,gre)=(6,7)
Jun 30 14:48:17 linux2 pptpd[9070]: CTRL: Reaping child PPP[9071]
Jun 30 14:48:17 linux2 pptpd[9070]: CTRL: Client 192.168.15.100 control connection finished
Jun 30 14:48:17 linux2 pptpd[9070]: CTRL: Exiting now
Jun 30 14:48:17 linux2 pptpd[8991]: MGR: Reaped child 9070
14:48:32
#vi /etc/ppp/pptpd-options
32,34c32,34
< refuse-pap
< refuse-chap
< refuse-mschap
---
> #refuse-pap
> #refuse-chap
> require-mschap
37c37
< require-mschap-v2
---
> #require-mschap-v2
40c40
< require-mppe-128
---
> #require-mppe-128
14:48:54
#/etc/init.d/pptpd restart
                                                                             ”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”
    │ A -    Serial Device      : /dev/tt0                                  │
                                                                              │
    │ C -   Callin Program      :                                           │
                                       ┌───────────────────────┐
    │ E -    Bps/Par/Bits       : 38400 8N1                                 │
                                                                                         │                       │
        │ F - Hardware Flow Control : Yes                                       │
                                                                                             │  Configuration saved  │
            â Serial port setup        ol : No                                        │
...
                                         │                                       │
              Save setup as..
                                         │                                           │
                                         │                                               │
                                                                  │ Exit                     │
                                                                      │ Exit from Minicom        │
                                                                          └──────────────────────────┘
Restarting PPTP:
Stopping PPTP: pptpd.
Starting PPTP Daemon: pptpd.
14:49:10
#tail -f /var/log/daemon.log
Jun 30 14:49:13 linux2 pptpd[9123]: CTRL (PPPD Launcher): local address = 192.168.16.1
Jun 30 14:49:13 linux2 pptpd[9123]: CTRL (PPPD Launcher): remote address = 192.168.17.1
Jun 30 14:49:13 linux2 pptpd[9122]: CTRL: I wrote 32 bytes to the client.
Jun 30 14:49:13 linux2 pptpd[9122]: CTRL: Sent packet to client
Jun 30 14:49:13 linux2 pptpd[9122]: GRE: read(fd=6,buffer=80505a0,len=8196) from PTY failed: status = -1 error = Input/output error, usually caused by unexpected termination of pppd, check option syntax and pppd logs
Jun 30 14:49:13 linux2 pptpd[9122]: CTRL: PTY read or GRE write failed (pty,gre)=(6,7)
Jun 30 14:49:13 linux2 pptpd[9122]: CTRL: Reaping child PPP[9123]
Jun 30 14:49:13 linux2 pptpd[9122]: CTRL: Client 192.168.15.100 control connection finished
Jun 30 14:49:13 linux2 pptpd[9122]: CTRL: Exiting now
Jun 30 14:49:13 linux2 pptpd[9114]: MGR: Reaped child 9122
14:49:20
#vi /etc/ppp/pptpd-options
34c34
< require-mschap
---
> #require-mschap
14:49:33
#/etc/init.d/pptpd restart
Restarting PPTP:
Stopping PPTP: pptpd.
Starting PPTP Daemon: pptpd.
14:49:35
#tail -f /var/log/daemon.log
Jun 30 14:50:11 linux2 pptpd[9171]: CTRL (PPPD Launcher): program binary = /usr/sbin/pppd
Jun 30 14:50:11 linux2 pptpd[9171]: CTRL (PPPD Launcher): local address = 192.168.16.1
Jun 30 14:50:11 linux2 pptpd[9171]: CTRL (PPPD Launcher): remote address = 192.168.17.1
Jun 30 14:50:21 linux2 pptpd[9170]: CTRL: timeout waiting for first packet from our pppd
Jun 30 14:50:21 linux2 pptpd[9170]: CTRL: I wrote 32 bytes to the client.
Jun 30 14:50:21 linux2 pptpd[9170]: CTRL: Sent packet to client
Jun 30 14:50:21 linux2 pptpd[9170]: CTRL: Received PPTP Control Message (type: 15)
Jun 30 14:50:21 linux2 pptpd[9170]: CTRL: Got a SET LINK INFO packet with standard ACCMs
Jun 30 14:50:33 linux2 pptpd[9170]: CTRL: Received PPTP Control Message (type: 15)
Jun 30 14:50:33 linux2 pptpd[9170]: CTRL: Got a SET LINK INFO packet with standard ACCMs
Jun 30 14:50:40 linux2 pptpd[9170]: CTRL: Received PPTP Control Message (type: 12)
Jun 30 14:50:40 linux2 pptpd[9170]: CTRL: Made a CALL DISCONNECT RPLY packet
Jun 30 14:50:40 linux2 pptpd[9170]: CTRL: Received CALL CLR request (closing call)
Jun 30 14:50:40 linux2 pptpd[9170]: CTRL: Reaping child PPP[9171]
14:50:50
#uname -r
                                                                             ”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”
    │ A -    Serial Device      : /dev/tt0                                  │
                                                                              │
    │ C -   Callin Program      :                                           │
                                       ┌───────────────────────┐
    │ E -    Bps/Par/Bits       : 38400 8N1                                 │
                                                                                         │                       │
        │ F - Hardware Flow Control : Yes                                       │
                                                                                             │  Configuration saved  │
            â Serial port setup        ol : No                                        │
...
                                         │                                     ‚
              Save setup as dfl        ───────────────────────────────────────────────────────────────────┘
                                         │                                       │
              Save setup as..
                                         │                                           │
                                         │                                               │
                                                                  │ Exit                     │
                                                                      │ Exit from Minicom        │
                                                                          └──────────────────────────┘
2.6.8-2-686-smp
14:50:57
#tail -f /var/log/daemon.log
Jun 30 15:02:38 linux2 pptpd[9304]: CTRL: Client 192.168.15.182 control connection started
Jun 30 15:02:38 linux2 pptpd[9304]: CTRL: Received PPTP Control Message (type: 1)
Jun 30 15:02:38 linux2 pptpd[9304]: CTRL: Made a START CTRL CONN RPLY packet
Jun 30 15:02:38 linux2 pptpd[9304]: CTRL: I wrote 156 bytes to the client.
Jun 30 15:02:38 linux2 pptpd[9304]: CTRL: Sent packet to client
Jun 30 15:02:38 linux2 pptpd[9304]: CTRL: Received PPTP Control Message (type: 7)
Jun 30 15:02:38 linux2 pptpd[9304]: CTRL: Set parameters to 100000000 maxbps, 64 window size
Jun 30 15:02:38 linux2 pptpd[9304]: CTRL: Made a OUT CALL RPLY packet
Jun 30 15:02:38 linux2 pptpd[9304]: CTRL: Starting call (launching pppd, opening GRE)
Jun 30 15:02:38 linux2 pptpd[9304]: CTRL: pty_fd = 6
Jun 30 15:02:38 linux2 pptpd[9304]: CTRL: tty_fd = 7
Jun 30 15:02:38 linux2 pptpd[9305]: CTRL (PPPD Launcher): program binary = /usr/sbin/pppd
Jun 30 15:02:38 linux2 pptpd[9305]: CTRL (PPPD Launcher): local address = 192.168.16.4
Jun 30 15:02:38 linux2 pptpd[9305]: CTRL (PPPD Launcher): remote address = 192.168.17.4
прошло 11 минут
15:02:43
#tail -f /var/log/daemon.log
Jun 30 15:02:38 linux2 pptpd[9304]: CTRL: Sent packet to client
Jun 30 15:02:38 linux2 pptpd[9304]: CTRL: Received PPTP Control Message (type: 7)
Jun 30 15:02:38 linux2 pptpd[9304]: CTRL: Set parameters to 100000000 maxbps, 64 window size
Jun 30 15:02:38 linux2 pptpd[9304]: CTRL: Made a OUT CALL RPLY packet
Jun 30 15:02:38 linux2 pptpd[9304]: CTRL: Starting call (launching pppd, opening GRE)
Jun 30 15:02:38 linux2 pptpd[9304]: CTRL: pty_fd = 6
Jun 30 15:02:38 linux2 pptpd[9304]: CTRL: tty_fd = 7
Jun 30 15:02:38 linux2 pptpd[9305]: CTRL (PPPD Launcher): program binary = /usr/sbin/pppd
Jun 30 15:02:38 linux2 pptpd[9305]: CTRL (PPPD Launcher): local address = 192.168.16.4
Jun 30 15:02:38 linux2 pptpd[9305]: CTRL (PPPD Launcher): remote address = 192.168.17.4
15:02:46
#vi /etc/ppp/pap-secrets
15:03:00
#vi /etc/ppp/pptpd-options
84c84
< #dump
---
> dump
95a96
> pap
15:03:14
#/etc/init.d/pptpd restart
Restarting PPTP:
Stopping PPTP: pptpd.
Starting PPTP Daemon: pptpd.
15:03:19
#ps aux | grep pptpd
root      7999  0.0  0.0   3368   696 pts/4    S+   14:16   0:00 man /etc/pptpd.conf
root      9000  0.0  0.0   1592   548 ?        S    14:46   0:00 pptpd [192.168.15.100:0000 - 0000]
root      9001  0.0  0.1   2676  1056 ?        S    14:46   0:00 /usr/sbin/pppd local file /etc/ppp/pptpd-options 115200 192.168.16.1:192.168.17.1 ipparam 192.168.15.100
root      9157  0.0  0.1   2676  1056 ?        S    14:49   0:00 /usr/sbin/pppd local file /etc/ppp/pptpd-options 115200 192.168.16.1:192.168.17.1 ipparam 192.168.15.100
[root@linux2:ppp]# tail -f /var/log/syslog
root      9170  0.0  0.0   1592   548 ?        S    14:50   0:00 pptpd [192.168.15.100:8000 - 0080]
Jun 30 14:33:03 linux2 pptpd[8282]: CTRL: Client 192.168.15.100 control connection started
root      9171  0.0  0.1   2676  1056 ?        S    14:50   0:00 /usr/sbin/pppd local file /etc/ppp/pptpd-options 115200 192.168.16.1:192.168.17.1 ipparam 192.168.15.100
Jun 30 14:33:03 linux2 pptpd[8282]: CTRL: Starting call (launching pppd, opening GRE)
root      9275  0.0  0.0   1592   548 ?        S    15:00   0:00 pptpd [192.168.15.182:0100 - 0100]
Jun 30 14:33:03 linux2 pppd[8283]: Plugin /usr/lib/pptpd/pptpd-logwtmp.so is for pppd version
root      9276  0.0  0.1   2676  1056 ?        S    15:00   0:00 /usr/sbin/pppd local file /etc/ppp/pptpd-options 115200 192.168.16.2:192.168.17.2 ipparam 192.168.15.182
2.4.3, this is 2.4.4b1
root      9290  0.0  0.0   1592   548 ?        S    15:01   0:00 pptpd [192.168.15.182:8000 - 0180]
Jun 30 14:33:03 linux2 pptpd[8282]: GRE: read(fd=6,buffer=80505a0,len=8196) from PTY failed: s
root      9291  0.0  0.1   2676  1056 ?        S    15:01   0:00 /usr/sbin/pppd local file /etc/ppp/pptpd-options 115200 192.168.16.3:192.168.17.3 ipparam 192.168.15.182
root      9304  0.0  0.0   1592   548 ?        S    15:02   0:00 pptpd [192.168.15.182:C000 - 0200]
root      9305  0.0  0.1   2676  1056 ?        S    15:02   0:00 /usr/sbin/pppd local file /etc/ppp/pptpd-options 115200 192.168.16.4:192.168.17.4 ipparam 192.168.15.182
root      9362  0.0  0.0   1700   704 ?        Ss   15:03   0:00 /usr/sbin/pptpd
root      9376  0.0  0.0   3344   628 pts/10   S+   15:04   0:00 grep pptpd
15:06:26
#vi /etc/ppp/pptpd-options
15:07:06
#modprobe ip_gre
                                                                             ”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”
    │ A -    Serial Device      : /dev/tt0                                  │
                                                                              │
    │ C -   Callin Program      :                                           │
                                       ┌───────────────────────┐
    │ E -    Bps/Par/Bits       : 38400 8N1                                 │
                                                                                         │                       │
        │ F - Hardware Flow Control : Yes                                       │
                                                                                             │  Configuration saved  │
            â Serial port setup        ol : No                                        │
...
              Screen and keyboard       setting?                                              │
                                         │                                     ‚
              Save setup as dfl        ───────────────────────────────────────────────────────────────────┘
                                         │                                       │
              Save setup as..
                                         │                                           │
                                         │                                               │
                                                                  │ Exit                     │
                                                                      │ Exit from Minicom        │
                                                                          └──────────────────────────┘
15:09:05
#lsmod
commoncap               7552  1 capability
ide_cd                 43232  0
cdrom                  41148  1 ide_cd
rtc                    14184  0
ext3                  129704  5
jbd                    70520  1 ext3
mbcache                10340  1 ext3
ide_generic             1632  0
piix                   13824  1
ide_disk               19648  7
ide_core              142556  4 ide_cd,ide_generic,piix,ide_disk
unix                   31156  282
font                    8544  0
vesafb                  6880  0
cfbcopyarea             4096  1 vesafb
cfbimgblt               3264  1 vesafb
cfbfillrect             4000  1 vesafb
15:09:06
#lsmod | less
15:09:17
#tail -f /var/log/daemon.log
Jun 30 15:09:39 linux2 pptpd[9509]: CTRL (PPPD Launcher): program binary = /usr/sbin/pppd
Jun 30 15:09:39 linux2 pptpd[9509]: CTRL (PPPD Launcher): local address = 192.168.16.1
Jun 30 15:09:39 linux2 pptpd[9509]: CTRL (PPPD Launcher): remote address = 192.168.17.1
Jun 30 15:09:39 linux2 pptpd[9508]: CTRL: I wrote 32 bytes to the client.
Jun 30 15:09:39 linux2 pptpd[9508]: CTRL: Sent packet to client
Jun 30 15:09:39 linux2 pptpd[9508]: GRE: read(fd=6,buffer=80505a0,len=8196) from PTY failed: status = -1 error = Input/output error, usually caused by unexpected termination of pppd, check option syntax and pppd logs
Jun 30 15:09:39 linux2 pptpd[9508]: CTRL: PTY read or GRE write failed (pty,gre)=(6,7)
Jun 30 15:09:39 linux2 pptpd[9508]: CTRL: Reaping child PPP[9509]
Jun 30 15:09:39 linux2 pptpd[9508]: CTRL: Client 192.168.15.182 control connection finished
Jun 30 15:09:39 linux2 pptpd[9508]: CTRL: Exiting now
Jun 30 15:09:39 linux2 pptpd[9362]: MGR: Reaped child 9508
15:09:53
#/etc/init.d/pptpd restart
                                                                             ”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”
    │ A -    Serial Device      : /dev/tt0                                  │
                                                                              │
    │ C -   Callin Program      :                                           │
                                       ┌───────────────────────┐
    │ E -    Bps/Par/Bits       : 38400 8N1                                 │
                                                                                         │                       │
        │ F - Hardware Flow Control : Yes                                       │
                                                                                             │  Configuration saved  │
            â Serial port setup        ol : No                                        │
...
                                         │                                       │
              Save setup as..
                                         │                                           │
                                         │                                               │
                                                                  │ Exit                     │
                                                                      │ Exit from Minicom        │
                                                                          └──────────────────────────┘
Restarting PPTP:
Stopping PPTP: pptpd.
Starting PPTP Daemon: pptpd.
15:09:57
#tail -f /var/log/daemon.log
Jun 30 15:10:09 linux2 pptpd[9545]: CTRL: Set parameters to 100000000 maxbps, 64 window size
Jun 30 15:10:09 linux2 pptpd[9545]: CTRL: Made a OUT CALL RPLY packet
Jun 30 15:10:09 linux2 pptpd[9545]: CTRL: Starting call (launching pppd, opening GRE)
Jun 30 15:10:09 linux2 pptpd[9545]: CTRL: pty_fd = 6
Jun 30 15:10:09 linux2 pptpd[9545]: CTRL: tty_fd = 7
Jun 30 15:10:09 linux2 pptpd[9546]: CTRL (PPPD Launcher): program binary = /usr/sbin/pppd
Jun 30 15:10:09 linux2 pptpd[9546]: CTRL (PPPD Launcher): local address = 192.168.16.1
Jun 30 15:10:09 linux2 pptpd[9546]: CTRL (PPPD Launcher): remote address = 192.168.17.1
Jun 30 15:10:09 linux2 pptpd[9545]: CTRL: I wrote 32 bytes to the client.
Jun 30 15:10:09 linux2 pptpd[9545]: CTRL: Sent packet to client
Jun 30 15:10:09 linux2 pptpd[9545]: GRE: read(fd=6,buffer=80505a0,len=8196) from PTY failed: status = -1 error = Input/output error, usually caused by unexpected termination of pppd, check option syntax and pppd logs
Jun 30 15:10:09 linux2 pptpd[9545]: CTRL: PTY read or GRE write failed (pty,gre)=(6,7)
Jun 30 15:10:09 linux2 pptpd[9545]: CTRL: Reaping child PPP[9546]
Jun 30 15:10:09 linux2 pptpd[9545]: CTRL: Client 192.168.15.182 control connection finished
Jun 30 15:10:09 linux2 pptpd[9545]: CTRL: Exiting now
Jun 30 15:10:09 linux2 pptpd[9533]: MGR: Reaped child 9545
15:10:25
#tail -f /var/log/debug
Jun 30 15:10:09 linux2 pptpd[9545]: CTRL: pty_fd = 6
Jun 30 15:10:09 linux2 pptpd[9545]: CTRL: tty_fd = 7
Jun 30 15:10:09 linux2 pptpd[9546]: CTRL (PPPD Launcher): program binary = /usr/sbin/pppd
Jun 30 15:10:09 linux2 pptpd[9546]: CTRL (PPPD Launcher): local address = 192.168.16.1
Jun 30 15:10:09 linux2 pptpd[9546]: CTRL (PPPD Launcher): remote address = 192.168.17.1
Jun 30 15:10:09 linux2 pptpd[9545]: CTRL: I wrote 32 bytes to the client.
Jun 30 15:10:09 linux2 pptpd[9545]: CTRL: Sent packet to client
Jun 30 15:10:09 linux2 pptpd[9545]: CTRL: Reaping child PPP[9546]
Jun 30 15:10:09 linux2 pptpd[9545]: CTRL: Exiting now
Jun 30 15:10:09 linux2 pptpd[9533]: MGR: Reaped child 9545
15:10:34
#vi /etc/ppp/
15:10:34
#vi /etc/ppp/pptpd-options
15:11:29
#grep pptp /etc/services

15:11:35
#less /etc/services
15:11:54
#tcpdump -n host 192.168.15.182
15:12:25.909163 IP 192.168.15.182.1080 > 192.168.15.2.1723: F 325:325(0) ack 190 win 65347
15:12:25.909219 IP 192.168.15.2.1723 > 192.168.15.182.1080: . ack 326 win 6432
15:12:36.667069 IP 192.168.15.182.138 > 192.168.15.255.138: NBT UDP PACKET(138)
15:12:41.869291 IP 192.168.15.182.1081 > 192.168.15.2.1723: S 1507619638:1507619638(0) win 65535 <mss 1460,nop,nop,sackOK>
15:12:41.869379 IP 192.168.15.2.1723 > 192.168.15.182.1081: S 875308915:875308915(0) ack 1507619639 win 5840 <mss 1460,nop,nop,sackOK>
15:12:41.869541 IP 192.168.15.182.1081 > 192.168.15.2.1723: P 1:157(156) ack 1 win 65535: pptp CTRL_MSGTYPE=SCCRQ PROTO_VER(1.0) FRAME_CAP(A) BEARER_CAP(A) MAX_CHAN(0) FIRM_REV(2600) [|pptp]
15:12:41.869612 IP 192.168.15.2.1723 > 192.168.15.182.1081: . ack 157 win 5840
15:12:41.879061 IP 192.168.15.2.1723 > 192.168.15.182.1081: P 1:157(156) ack 157 win 5840: pptp CTRL_MSGTYPE=SCCRP PROTO_VER(1.0) RESULT_CODE(1) ERR_CODE(0) FRAME_CAP() BEARER_CAP() MAX_CHAN(1) FIRM_REV(1) [|pptp]
15:12:41.879274 IP 192.168.15.182.1081 > 192.168.15.2.1723: P 157:325(168) ack 157 win 65379: pptp CTRL_MSGTYPE=OCRQ CALL_ID(49152) CALL_SER_NUM(40015) MIN_BPS(300) MAX_BPS(100000000) BEARER_TYPE(Any) FRAME_TYPE(E) RECV_WIN(64) PROC_DELAY(0) PHONE_NO_LEN(0) [|pptp]
15:12:41.898041 IP 192.168.15.2.1723 > 192.168.15.182.1081: P 157:189(32) ack 325 win 6432: pptp CTRL_MSGTYPE=OCRP CALL_ID(384) PEER_CALL_ID(49152) RESULT_CODE(1) ERR_CODE(0) CAUSE_CODE(0) CONN_SPEED(100000000) RECV_WIN(64) PROC_DELAY(0) PHY_CHAN_ID(0)
15:12:41.899159 IP 192.168.15.2.1723 > 192.168.15.182.1081: F 189:189(0) ack 325 win 6432
15:12:41.899306 IP 192.168.15.182.1081 > 192.168.15.2.1723: F 325:325(0) ack 190 win 65347
15:12:41.899501 IP 192.168.15.2.1723 > 192.168.15.182.1081: . ack 326 win 6432
23 packets captured
46 packets received by filter
0 packets dropped by kernel
15:13:05
#/etc/init.d/pptpd restart
Restarting PPTP:
Stopping PPTP: pptpd.
Starting PPTP Daemon: pptpd.
15:13:11
#tail /var/log/daemon.log
              Screen and keyboard       setting?                                              │
                                         │                                     ‚
              Save setup as dfl        ───────────────────────────────────────────────────────────────────┘
                                         │                                       │
              Save setup as..
                                         │                                           │
                                         │                                               │
                                                                  │ Exit                     │
                                                                      │ Exit from Minicom        │
                                                                          └──────────────────────────┘
Jun 30 15:13:29 linux2 pptpd[9633]: CTRL (PPPD Launcher): local address = 192.168.16.1
Jun 30 15:13:29 linux2 pptpd[9633]: CTRL (PPPD Launcher): remote address = 192.168.17.1
Jun 30 15:13:29 linux2 pptpd[9632]: CTRL: I wrote 32 bytes to the client.
Jun 30 15:13:29 linux2 pptpd[9632]: CTRL: Sent packet to client
Jun 30 15:13:29 linux2 pptpd[9632]: GRE: read(fd=6,buffer=80505a0,len=8196) from PTY failed: status = -1 error = Input/output error, usually caused by unexpected termination of pppd, check option syntax and pppd logs
Jun 30 15:13:29 linux2 pptpd[9632]: CTRL: PTY read or GRE write failed (pty,gre)=(6,7)
Jun 30 15:13:29 linux2 pptpd[9632]: CTRL: Reaping child PPP[9633]
Jun 30 15:13:29 linux2 pptpd[9632]: CTRL: Client 192.168.15.182 control connection finished
Jun 30 15:13:29 linux2 pptpd[9632]: CTRL: Exiting now
Jun 30 15:13:29 linux2 pptpd[9626]: MGR: Reaped child 9632
15:13:45
#cd
                                                                             ”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”
    │ A -    Serial Device      : /dev/tt0                                  │
                                                                              │
    │ C -   Callin Program      :                                           │
                                       ┌───────────────────────┐
    │ E -    Bps/Par/Bits       : 38400 8N1                                 │
                                                                                         │                       │
        │ F - Hardware Flow Control : Yes                                       │
                                                                                             │  Configuration saved  │
            â Serial port setup        ol : No                                        │
...
              Screen and keyboard       setting?                                              │
                                         │                                     ‚
              Save setup as dfl        ───────────────────────────────────────────────────────────────────┘
                                         │                                       │
              Save setup as..
                                         │                                           │
                                         │                                               │
                                                                  │ Exit                     │
                                                                      │ Exit from Minicom        │
                                                                          └──────────────────────────┘
15:15:26
#wget ftp://ftp.samba.org/pub/ppp/ppp-2.4.4.tar.gz
                                                                  │ Exit                     │
                                                                      │ Exit from Minicom        │
                                                                          └──────────────────────────┘
--15:15:29--  ftp://ftp.samba.org/pub/ppp/ppp-2.4.4.tar.gz
           => `ppp-2.4.4.tar.gz'
Resolving ftp.samba.org... 216.251.47.16
Connecting to ftp.samba.org|216.251.47.16|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done.    ==> PWD ... done.
==> TYPE I ... done.  ==> CWD /pub/ppp ... done.
==> PASV ... done.    ==> RETR ppp-2.4.4.tar.gz ... done.
Length: 688,763 (673K) (unauthoritative)
100%[======================================================>] 688,763       21.68K/s    ETA 00:00^L
15:16:25 (12.77 KB/s) - `ppp-2.4.4.tar.gz' saved [688763]
15:16:25
#[root@linux2:~]#

15:16:27
#tar xvfz ppp-2.4.4.tar.gz
ppp-2.4.4/pppd/plugins/rp-pppoe/Makefile.linux
ppp-2.4.4/pppd/plugins/rp-pppoe/common.c
ppp-2.4.4/pppd/plugins/rp-pppoe/config.h
ppp-2.4.4/pppd/plugins/rp-pppoe/debug.c
ppp-2.4.4/pppd/plugins/rp-pppoe/discovery.c
ppp-2.4.4/pppd/plugins/rp-pppoe/pppoe-discovery.c
ppp-2.4.4/pppd/plugins/rp-pppoe/pppoe.h
ppp-2.4.4/pppd/plugins/Makefile.linux
ppp-2.4.4/pppd/plugins/passprompt.c
ppp-2.4.4/pppd/plugins/Makefile.sol2
...
ppp-2.4.4/README.MPPE
ppp-2.4.4/README.MSCHAP81
ppp-2.4.4/README.cbcp
ppp-2.4.4/README.eap-srp
ppp-2.4.4/README.linux
ppp-2.4.4/README.pppoe
ppp-2.4.4/README.pwfd
ppp-2.4.4/README.sol2
ppp-2.4.4/SETUP
ppp-2.4.4/configure
15:16:34
#cd ppp-2.4.4
                                                                             ”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”
    │ A -    Serial Device      : /dev/tt0                                  │
                                                                              │
    │ C -   Callin Program      :                                           │
                                       ┌───────────────────────┐
    │ E -    Bps/Par/Bits       : 38400 8N1                                 │
                                                                                         │                       │
        │ F - Hardware Flow Control : Yes                                       │
                                                                                             │  Configuration saved  │
            â Serial port setup        ol : No                                        │
...
              Screen and keyboard       setting?                                              │
                                         │                                     ‚
              Save setup as dfl        ───────────────────────────────────────────────────────────────────┘
                                         │                                       │
              Save setup as..
                                         │                                           │
                                         │                                               │
                                                                  │ Exit                     │
                                                                      │ Exit from Minicom        │
                                                                          └──────────────────────────┘
15:16:38
#./configure
Configuring for Linux
Creating Makefiles.
  Makefile <= linux/Makefile.top
  pppd/Makefile <= pppd/Makefile.linux
  pppstats/Makefile <= pppstats/Makefile.linux
  chat/Makefile <= chat/Makefile.linux
  pppdump/Makefile <= pppdump/Makefile.linux
  pppd/plugins/Makefile <= pppd/plugins/Makefile.linux
  pppd/plugins/rp-pppoe/Makefile <= pppd/plugins/rp-pppoe/Makefile.linux
  pppd/plugins/radius/Makefile <= pppd/plugins/radius/Makefile.linux
  pppd/plugins/pppoatm/Makefile <= pppd/plugins/pppoatm/Makefile.linux
15:16:41
#make
cc -O2 -pipe -Wall -g -DHAVE_PATHS_H -DIPX_CHANGE -DHAVE_MMAP -I../include '-DDESTDIR="/usr/local"' -DCHAPMS=1 -DMPPE=1 -DHAS_SHADOW -DHAVE_CRYPT_H=1 -DUSE_CRYPT=1 -DHAVE_MULTILINK -DUSE_TDB=1 -DPLUGIN -DMAXOCTETS   -c -o multilink.o multilink.c
cc -O2 -pipe -Wall -g -DHAVE_PATHS_H -DIPX_CHANGE -DHAVE_MMAP -I../include '-DDESTDIR="/usr/local"' -DCHAPMS=1 -DMPPE=1 -DHAS_SHADOW -DHAVE_CRYPT_H=1 -DUSE_CRYPT=1 -DHAVE_MULTILINK -DUSE_TDB=1 -DPLUGIN -DMAXOCTETS   -c -o tdb.o tdb.c
cc -O2 -pipe -Wall -g -DHAVE_PATHS_H -DIPX_CHANGE -DHAVE_MMAP -I../include '-DDESTDIR="/usr/local"' -DCHAPMS=1 -DMPPE=1 -DHAS_SHADOW -DHAVE_CRYPT_H=1 -DUSE_CRYPT=1 -DHAVE_MULTILINK -DUSE_TDB=1 -DPLUGIN -DMAXOCTETS   -c -o spinlock.o spinlock.c
cc -O2 -pipe -Wall -g -DHAVE_PATHS_H -DIPX_CHANGE -DHAVE_MMAP -I../include '-DDESTDIR="/usr/local"' -DCHAPMS=1 -DMPPE=1 -DHAS_SHADOW -DHAVE_CRYPT_H=1 -DUSE_CRYPT=1 -DHAVE_MULTILINK -DUSE_TDB=1 -DPLUGIN -DMAXOCTETS -Wl,-E -o pppd main.o magic.o fsm.o lcp.o ipcp.o upap.o chap-new.o md5.o ccp.o ecp.o auth.o options.o demand.o utils.o sys-linux.o ipxcp.o tty.o eap.o chap-md5.o md4.o chap_ms.o sha1.o p
make[1]: Leaving directory `/root/ppp-2.4.4/pppd'
cd pppstats; make  all
make[1]: Entering directory `/root/ppp-2.4.4/pppstats'
cc -O -I../include -o pppstats pppstats.c
make[1]: Leaving directory `/root/ppp-2.4.4/pppstats'
cd pppdump; make  all
make[1]: Entering directory `/root/ppp-2.4.4/pppdump'
cc -O -I../include/net   -c -o pppdump.o pppdump.c
cc -O -I../include/net   -c -o bsd-comp.o bsd-comp.c
cc -O -I../include/net   -c -o deflate.o deflate.c
cc -O -I../include/net   -c -o zlib.o zlib.c
cc -o pppdump pppdump.o bsd-comp.o deflate.o zlib.o
make[1]: Leaving directory `/root/ppp-2.4.4/pppdump'
15:17:54
#make install
install -d -m 755 /usr/local/share/man/man8
cd chat; make  install
make[1]: Entering directory `/root/ppp-2.4.4/chat'
mkdir -p /usr/local/sbin /usr/local/share/man/man8
install -s -c chat /usr/local/sbin
install -c -m 644 chat.8 /usr/local/share/man/man8
make[1]: Leaving directory `/root/ppp-2.4.4/chat'
cd pppd/plugins; make  install
make[1]: Entering directory `/root/ppp-2.4.4/pppd/plugins'
install -d /usr/local/lib/pppd/2.4.4
...
make[1]: Entering directory `/root/ppp-2.4.4/pppdump'
mkdir -p /usr/local/sbin /usr/local/share/man/man8
install -s -c pppdump /usr/local/sbin
install -c -m 444 pppdump.8 /usr/local/share/man/man8
make[1]: Leaving directory `/root/ppp-2.4.4/pppdump'
cd pppd; make  install-devel
make[1]: Entering directory `/root/ppp-2.4.4/pppd'
mkdir -p /usr/local/include/pppd
install -c -m 644 ccp.h chap-new.h ecp.h fsm.h ipcp.h ipxcp.h lcp.h magic.h md5.h patchlevel.h pathnames.h pppd.h upap.h eap.h md4.h chap_ms.h sha1.h pppcrypt.h tdb.h spinlock.h /usr/local/include/pppd
make[1]: Leaving directory `/root/ppp-2.4.4/pppd'
15:17:59
#vi /etc/pptpd.conf
12c12
< #ppp /usr/sbin/pppd
---
> ppp /usr/local/sbin/pppd
15:18:16
#ls /usr/local/sbin/
chat  pppd  pppdump  pppoe-discovery  pppstats
15:18:22
#/etc/init.d/pptpd restart
                                                                             ”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”
    │ A -    Serial Device      : /dev/tt0                                  │
                                                                              │
    │ C -   Callin Program      :                                           │
                                       ┌───────────────────────┐
    │ E -    Bps/Par/Bits       : 38400 8N1                                 │
                                                                                         │                       │
        │ F - Hardware Flow Control : Yes                                       │
                                                                                             │  Configuration saved  │
            â Serial port setup        ol : No                                        │
...
                                         │                                       │
              Save setup as..
                                         │                                           │
                                         │                                               │
                                                                  │ Exit                     │
                                                                      │ Exit from Minicom        │
                                                                          └──────────────────────────┘
Restarting PPTP:
Stopping PPTP: pptpd.
Starting PPTP Daemon: pptpd.
15:18:34
#tail -f /var/log/daemon.log
Jun 30 15:18:58 linux2 pptpd[10077]: CTRL: Made a OUT CALL RPLY packet
Jun 30 15:18:58 linux2 pptpd[10077]: CTRL: Starting call (launching pppd, opening GRE)
Jun 30 15:18:58 linux2 pptpd[10077]: CTRL: pty_fd = 6
Jun 30 15:18:58 linux2 pptpd[10077]: CTRL: tty_fd = 7
Jun 30 15:18:58 linux2 pptpd[10078]: CTRL (PPPD Launcher): program binary = /usr/local/sbin/pppd
Jun 30 15:18:58 linux2 pptpd[10078]: CTRL (PPPD Launcher): local address = 192.168.16.1
Jun 30 15:18:58 linux2 pptpd[10078]: CTRL (PPPD Launcher): remote address = 192.168.17.1
Jun 30 15:18:58 linux2 pppd[10078]: In file /etc/ppp/pptpd-options: unrecognized option 'pap'
Jun 30 15:18:58 linux2 pptpd[10077]: CTRL: I wrote 32 bytes to the client.
Jun 30 15:18:58 linux2 pptpd[10077]: CTRL: Sent packet to client
Jun 30 15:18:58 linux2 pptpd[10077]: GRE: read(fd=6,buffer=80505a0,len=8196) from PTY failed: status = -1 error = Input/output error, usually caused by unexpected termination of pppd, check option syntax and pppd logs
Jun 30 15:18:58 linux2 pptpd[10077]: CTRL: PTY read or GRE write failed (pty,gre)=(6,7)
Jun 30 15:18:58 linux2 pptpd[10077]: CTRL: Reaping child PPP[10078]
Jun 30 15:18:58 linux2 pptpd[10077]: CTRL: Client 192.168.15.182 control connection finished
Jun 30 15:18:58 linux2 pptpd[10077]: CTRL: Exiting now
Jun 30 15:18:58 linux2 pptpd[10070]: MGR: Reaped child 10077
15:19:19
#vi /etc/ppp/pptpd-options
96c96
< pap
---
> +pap
15:19:28
#tail -f /var/log/daemon.log
Jun 30 15:19:40 linux2 pppd[10105]: ipparam 192.168.15.182^I^I# (from command line)
Jun 30 15:19:40 linux2 pppd[10105]: nodefaultroute^I^I# (from /etc/ppp/pptpd-options)
Jun 30 15:19:40 linux2 pppd[10105]: proxyarp^I^I# (from /etc/ppp/pptpd-options)
Jun 30 15:19:40 linux2 pppd[10105]: 192.168.16.1:192.168.17.1^I^I# (from command line)
Jun 30 15:19:40 linux2 pppd[10105]: nobsdcomp^I^I# (from /etc/ppp/pptpd-options)
Jun 30 15:19:40 linux2 pppd[10105]: noipx^I^I# (from /etc/ppp/options)
Jun 30 15:19:40 linux2 pppd[10105]: pppd 2.4.4 started by root, uid 0
Jun 30 15:19:40 linux2 pppd[10105]: Using interface ppp7
Jun 30 15:19:40 linux2 pppd[10105]: Cannot determine ethernet address for proxy ARP
Jun 30 15:19:40 linux2 pppd[10105]: local  IP address 192.168.16.1
Jun 30 15:19:40 linux2 pppd[10105]: remote IP address 192.168.17.1
Jun 30 15:19:50 linux2 pptpd[10104]: CTRL: timeout waiting for first packet from our pppd
Jun 30 15:19:50 linux2 pptpd[10104]: CTRL: I wrote 32 bytes to the client.
Jun 30 15:19:50 linux2 pptpd[10104]: CTRL: Sent packet to client
Jun 30 15:19:50 linux2 pptpd[10104]: CTRL: Received PPTP Control Message (type: 15)
Jun 30 15:19:50 linux2 pptpd[10104]: CTRL: Got a SET LINK INFO packet with standard ACCMs
15:20:10
#ifconfig
eth0      Link encap:Ethernet  HWaddr 00:04:79:67:96:71
          inet addr:192.168.15.2  Bcast:192.168.15.255  Mask:255.255.255.0
          inet6 addr: fe80::204:79ff:fe67:9671/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:84064 errors:0 dropped:0 overruns:0 frame:0
          TX packets:80293 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:28178681 (26.8 MiB)  TX bytes:22504774 (21.4 MiB)
          Interrupt:209 Base address:0xdc00
lo        Link encap:Local Loopback
...
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
ppp7      Link encap:Point-to-Point Protocol
          inet addr:192.168.16.1  P-t-P:192.168.17.1  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
15:20:18
#killall pppd

Статистика

Время первой команды журнала14:34:16 2006- 6-30
Время последней команды журнала15:20:18 2006- 6-30
Количество командных строк в журнале101
Процент команд с ненулевым кодом завершения, % 6.93
Процент синтаксически неверно набранных команд, % 0.00
Суммарное время работы с терминалом *, час 0.77
Количество командных строк в единицу времени, команда/мин 2.19
Частота использования команд
tail30|============================| 28.85%
vi25|========================| 24.04%
/etc/init.d/pptpd12|===========| 11.54%
pppd6|=====| 5.77%
less4|===| 3.85%
lsmod4|===| 3.85%
cd2|=| 1.92%
make2|=| 1.92%
modprobe2|=| 1.92%
apt-get2|=| 1.92%
grep2|=| 1.92%
ifconfig1|| 0.96%
ps1|| 0.96%
configure1|| 0.96%
wget1|| 0.96%
ping1|| 0.96%
tcpdump1|| 0.96%
iptables1|| 0.96%
pptp1|| 0.96%
[root@linux2:~]#1|| 0.96%
killall1|| 0.96%
ls1|| 0.96%
uname1|| 0.96%
tar1|| 0.96%
____
*) Интервалы неактивности длительностью 30 минут и более не учитываются

Справка

Для того чтобы использовать LiLaLo, не нужно знать ничего особенного: всё происходит само собой. Однако, чтобы ведение и последующее использование журналов было как можно более эффективным, желательно иметь в виду следующее:
  1. В журнал автоматически попадают все команды, данные в любом терминале системы.

  2. Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду w. В поле WHAT, соответствующем текущему терминалу, должна быть указана программа script.

  3. Команды, при наборе которых были допущены синтаксические ошибки, выводятся перечёркнутым текстом:
    $ l s-l
    bash: l: command not found
    

  4. Если код завершения команды равен нулю, команда была выполнена без ошибок. Команды, код завершения которых отличен от нуля, выделяются цветом.
    $ test 5 -lt 4
    Обратите внимание на то, что код завершения команды может быть отличен от нуля не только в тех случаях, когда команда была выполнена с ошибкой. Многие команды используют код завершения, например, для того чтобы показать результаты проверки

  5. Команды, ход выполнения которых был прерван пользователем, выделяются цветом.
    $ find / -name abc
    find: /home/devi-orig/.gnome2: Keine Berechtigung
    find: /home/devi-orig/.gnome2_private: Keine Berechtigung
    find: /home/devi-orig/.nautilus/metafiles: Keine Berechtigung
    find: /home/devi-orig/.metacity: Keine Berechtigung
    find: /home/devi-orig/.inkscape: Keine Berechtigung
    ^C
    

  6. Команды, выполненные с привилегиями суперпользователя, выделяются слева красной чертой.
    # id
    uid=0(root) gid=0(root) Gruppen=0(root)
    

  7. Изменения, внесённые в текстовый файл с помощью редактора, запоминаются и показываются в журнале в формате ed. Строки, начинающиеся символом "<", удалены, а строки, начинающиеся символом ">" -- добавлены.
    $ vi ~/.bashrc
    2a3,5
    >    if [ -f /usr/local/etc/bash_completion ]; then
    >         . /usr/local/etc/bash_completion
    >        fi
    

  8. Для того чтобы изменить файл в соответствии с показанными в диффшоте изменениями, можно воспользоваться командой patch. Нужно скопировать изменения, запустить программу patch, указав в качестве её аргумента файл, к которому применяются изменения, и всавить скопированный текст:
    $ patch ~/.bashrc
    В данном случае изменения применяются к файлу ~/.bashrc

  9. Для того чтобы получить краткую справочную информацию о команде, нужно подвести к ней мышь. Во всплывающей подсказке появится краткое описание команды.

    Если справочная информация о команде есть, команда выделяется голубым фоном, например: vi. Если справочная информация отсутствует, команда выделяется розовым фоном, например: notepad.exe. Справочная информация может отсутствовать в том случае, если (1) команда введена неверно; (2) если распознавание команды LiLaLo выполнено неверно; (3) если информация о команде неизвестна LiLaLo. Последнее возможно для редких команд.

  10. Большие, в особенности многострочные, всплывающие подсказки лучше всего показываются браузерами KDE Konqueror, Apple Safari и Microsoft Internet Explorer. В браузерах Mozilla и Firefox они отображаются не полностью, а вместо перевода строки выводится специальный символ.

  11. Время ввода команды, показанное в журнале, соответствует времени начала ввода командной строки, которое равно тому моменту, когда на терминале появилось приглашение интерпретатора

  12. Имя терминала, на котором была введена команда, показано в специальном блоке. Этот блок показывается только в том случае, если терминал текущей команды отличается от терминала предыдущей.

  13. Вывод не интересующих вас в настоящий момент элементов журнала, таких как время, имя терминала и других, можно отключить. Для этого нужно воспользоваться формой управления журналом вверху страницы.

  14. Небольшие комментарии к командам можно вставлять прямо из командной строки. Комментарий вводится прямо в командную строку, после символов #^ или #v. Символы ^ и v показывают направление выбора команды, к которой относится комментарий: ^ - к предыдущей, v - к следующей. Например, если в командной строке было введено:

    $ whoami
    
    user
    
    $ #^ Интересно, кто я?
    
    в журнале это будет выглядеть так:
    $ whoami
    
    user
    
    Интересно, кто я?

  15. Если комментарий содержит несколько строк, его можно вставить в журнал следующим образом:

    $ whoami
    
    user
    
    $ cat > /dev/null #^ Интересно, кто я?
    
    Программа whoami выводит имя пользователя, под которым 
    мы зарегистрировались в системе.
    -
    Она не может ответить на вопрос о нашем назначении 
    в этом мире.
    
    В журнале это будет выглядеть так:
    $ whoami
    user
    
    Интересно, кто я?
    Программа whoami выводит имя пользователя, под которым
    мы зарегистрировались в системе.

    Она не может ответить на вопрос о нашем назначении
    в этом мире.
    Для разделения нескольких абзацев между собой используйте символ "-", один в строке.

  16. Комментарии, не относящиеся непосредственно ни к какой из команд, добавляются точно таким же способом, только вместо симолов #^ или #v нужно использовать символы #=

  17. Содержимое файла может быть показано в журнале. Для этого его нужно вывести с помощью программы cat. Если вывод команды отметить симоволами #!, содержимое файла будет показано в журнале в специально отведённой для этого секции.
  18. Для того чтобы вставить скриншот интересующего вас окна в журнал, нужно воспользоваться командой l3shot. После того как команда вызвана, нужно с помощью мыши выбрать окно, которое должно быть в журнале.
  19. Команды в журнале расположены в хронологическом порядке. Если две команды давались одна за другой, но на разных терминалах, в журнале они будут рядом, даже если они не имеют друг к другу никакого отношения.
    1
        2
    3   
        4
    
    Группы команд, выполненных на разных терминалах, разделяются специальной линией. Под этой линией в правом углу показано имя терминала, на котором выполнялись команды. Для того чтобы посмотреть команды только одного сенса, нужно щёкнуть по этому названию.

О программе

LiLaLo (L3) расшифровывается как Live Lab Log.
Программа разработана для повышения эффективности обучения Unix/Linux-системам.
(c) Игорь Чубин, 2004-2008

$Id$