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

Содержание

Журнал

Среда (06/03/09)

/dev/pts/1
20:21:52
#ifdown eth0.215
ifdown: interface eth0.215 not configured
20:22:04
#ifup eth0.215
Ignoring unknown interface eth0.215=eth0.215.
20:22:10
#ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:1e:8c:64:2c:4a
          inet addr:192.168.15.9  Bcast:192.168.15.255  Mask:255.255.255.0
          inet6 addr: fe80::21e:8cff:fe64:2c4a/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:75777 errors:0 dropped:0 overruns:0 frame:0
          TX packets:64434 errors:0 dropped:0 overruns:0 carrier:2
          collisions:0 txqueuelen:1000
          RX bytes:40810690 (38.9 MiB)  TX bytes:9669809 (9.2 MiB)
eth0.105  Link encap:Ethernet  HWaddr 00:1e:8c:64:2c:4a
          inet addr:192.168.105.1  Bcast:192.168.105.255  Mask:255.255.255.0
...
          TX packets:6918 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:296793 (289.8 KiB)  TX bytes:296793 (289.8 KiB)
tun0      Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          inet addr:172.16.1.5  P-t-P:172.16.1.6  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:15 errors:0 dropped:0 overruns:0 frame:0
          TX packets:84 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:836 (836.0 B)  TX bytes:9312 (9.0 KiB)
20:22:15
#exit
exit
Connection to 192.168.205.2 closed.
/dev/pts/4
20:28:12
#vconfig add eth0 266
Added VLAN with VID == 266 to IF -:eth0:-
20:28:31
#vim /etc/network/interfaces
20:29:04
#ifdown eth0.266
ifdown: interface eth0.266 not configured
20:29:17
#ifup eth0.266
Set name-type for VLAN subsystem. Should be visible in /proc/net/vlan/config
ERROR: trying to add VLAN #266 to IF -:eth0:-  error: File exists
192.168.266.2: Unknown host
ifconfig: `--help' gives usage information.
Failed to bring up eth0.266.
20:29:22
#ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:1b:fc:7d:bc:f0
          inet6 addr: fe80::21b:fcff:fe7d:bcf0/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:12288 errors:0 dropped:0 overruns:0 frame:0
          TX packets:15643 errors:0 dropped:0 overruns:0 carrier:2
          collisions:0 txqueuelen:1000
          RX bytes:2449058 (2.3 MiB)  TX bytes:2404594 (2.2 MiB)
eth0.106  Link encap:Ethernet  HWaddr 00:1b:fc:7d:bc:f0
          inet addr:192.168.106.1  Bcast:192.168.106.255  Mask:255.255.255.0
          inet6 addr: fe80::21b:fcff:fe7d:bcf0/64 Scope:Link
...
          TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:336 (336.0 B)  TX bytes:336 (336.0 B)
tun0      Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          inet addr:172.16.1.6  P-t-P:172.16.1.5  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:518 errors:0 dropped:0 overruns:0 frame:0
          TX packets:357 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:257239 (251.2 KiB)  TX bytes:41439 (40.4 KiB)
20:29:39
#vim /etc/network/interfaces
--- /tmp/l3-saved-4368.3411.31089	2009-06-03 20:29:48.000000000 +0300
+++ /etc/network/interfaces	2009-06-03 20:30:31.000000000 +0300
@@ -1,7 +1,7 @@
 # Used by ifup(8) and ifdown(8). See the interfaces(5) manpage or
 # /usr/share/doc/ifupdown/examples for more information.
 
-auto lo eth0 eth0.106 eth0.206
+auto lo eth0 eth0.106 eth0.206 eth0.266
 
 iface lo inet loopback
 iface eth0 inet static
20:31:01
#gateway 192.168.106.1
Expecting argc to be 3-5, inclusive.  Was: 2
Usage: add             [interface-name] [vlan_id]
       rem             [vlan-name]
       set_flag        [interface-name] [flag-num]       [0 | 1]
       set_egress_map  [vlan-name]      [skb_priority]   [vlan_qos]
       set_ingress_map [vlan-name]      [skb_priority]   [vlan_qos]
       set_name_type   [name-type]
* The [interface-name] is the name of the ethernet card that hosts
  the VLAN you are talking about.
* The vlan_id is the identifier (0-4095) of the VLAN you are operating on.
* skb_priority is the priority in the socket buffer (sk_buff).
* vlan_qos is the 3 bit priority in the VLAN header
* name-type:  VLAN_PLUS_VID (vlan0005), VLAN_PLUS_VID_NO_PAD (vlan5),
              DEV_PLUS_VID (eth0.0005), DEV_PLUS_VID_NO_PAD (eth0.5)
* FLAGS:  1 REORDER_HDR  When this is set, the VLAN device will move the
            ethernet header around to make it look exactly like a real
            ethernet device.  This may help programs such as DHCPd which
            read the raw ethernet packet and make assumptions about the
            location of bytes.  If you don't need it, don't turn it on, because
            there will be at least a small performance degradation.  Default
            is OFF.
20:31:16
#vconfig eth0.266
Expecting argc to be 3-5, inclusive.  Was: 2
Usage: add             [interface-name] [vlan_id]
       rem             [vlan-name]
       set_flag        [interface-name] [flag-num]       [0 | 1]
       set_egress_map  [vlan-name]      [skb_priority]   [vlan_qos]
       set_ingress_map [vlan-name]      [skb_priority]   [vlan_qos]
       set_name_type   [name-type]
* The [interface-name] is the name of the ethernet card that hosts
  the VLAN you are talking about.
* The vlan_id is the identifier (0-4095) of the VLAN you are operating on.
* skb_priority is the priority in the socket buffer (sk_buff).
* vlan_qos is the 3 bit priority in the VLAN header
* name-type:  VLAN_PLUS_VID (vlan0005), VLAN_PLUS_VID_NO_PAD (vlan5),
              DEV_PLUS_VID (eth0.0005), DEV_PLUS_VID_NO_PAD (eth0.5)
* FLAGS:  1 REORDER_HDR  When this is set, the VLAN device will move the
            ethernet header around to make it look exactly like a real
            ethernet device.  This may help programs such as DHCPd which
            read the raw ethernet packet and make assumptions about the
            location of bytes.  If you don't need it, don't turn it on, because
            there will be at least a small performance degradation.  Default
            is OFF.
20:31:27
#vconfig rem eth0.266
Removed VLAN -:eth0.266:-
20:31:43
#vconfig add eth0 266
Added VLAN with VID == 266 to IF -:eth0:-
20:32:11
#/etc/op
openoffice/ openvpn/    opt/
20:32:11
#/etc/openvpn/update-resolv-conf
a/                .cache/           .gconfd/          .gvfs/            .local/           .purple/          .ssh/             .xsession-errors
.a/               .config/          .gksu.lock        .ICEauthority     .mozilla/         .qt/              .swo
asd/              .dbus/            .gnome2/          .l3rc             my_sc             QW/               .swp
.bash_history     Desktop/          .gnome2_private/  .lesshst          pass.log          screen.dot        .thumbnails/
.bash_logout      .dmrc             .gqview/          .licq/            password.log      screen.png        user
.bash_profile     .gajim/           .gstreamer-0.10/  .lilalo/          prim              .screenrc         .viminfo
.bashrc           .gconf/           .gtk-bookmarks    linux0.key        .profile          sd/               .Xauthority
20:32:11
#/etc/openvpn/update-resolv-conf
a/                .cache/           .gconfd/          .gvfs/            .local/           .purple/          .ssh/             .xsession-errors
.a/               .config/          .gksu.lock        .ICEauthority     .mozilla/         .qt/              .swo
asd/              .dbus/            .gnome2/          .l3rc             my_sc             QW/               .swp
.bash_history     Desktop/          .gnome2_private/  .lesshst          pass.log          screen.dot        .thumbnails/
.bash_logout      .dmrc             .gqview/          .licq/            password.log      screen.png        user
.bash_profile     .gajim/           .gstreamer-0.10/  .lilalo/          prim              .screenrc         .viminfo
.bashrc           .gconf/           .gtk-bookmarks    linux0.key        .profile          sd/               .Xauthority
20:33:01
#cd /etc/open
openoffice/ openvpn/
20:33:01
#cd /etc/openvpn/

20:33:13
#ls
client.conf  linux9.key  update-resolv-conf
20:33:15
#vim client.conf
--- /tmp/l3-saved-4368.8863.5450	2009-06-03 20:33:22.000000000 +0300
+++ client.conf	2009-06-03 20:33:47.000000000 +0300
@@ -5,4 +5,5 @@
 redirect-gateway
 secret linux9.key
 remote 192.168.205.2
+remote 192.168.215.2
 
20:33:47
#/etc/init.d/openvpn restart
Stopping virtual private network daemon: client.
Starting virtual private network daemon: client.
20:34:06
#netstat -rn
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
192.168.215.2   192.168.206.1   255.255.255.255 UGH       0 0          0 eth0.206
172.16.1.5      0.0.0.0         255.255.255.255 UH        0 0          0 tun0
192.168.106.0   0.0.0.0         255.255.255.0   U         0 0          0 eth0.106
192.168.206.0   0.0.0.0         255.255.255.0   U         0 0          0 eth0.206
0.0.0.0         172.16.1.5      0.0.0.0         UG        0 0          0 tun0
20:35:05
#~ +q436f+q6b75+q6b64+q6b72+q6b6c+q2332+q2334+q2569+q2a37+q6b31
  1 +q436f+q6b75+q6b64+q6b72+q6b6c+q2332+q2334+q2569+q2a37+q6b31
  2 proto tcp-client
  3 redirect-gateway
    secret linux9.key
  4
    remote 192.168.205.2
  5 remote 192.168.215.2
~   ping 5
~   ping-restart 30
~
...
~
~
~
~
~
~
~
~
~
-- ВСТАВР                                                                                                                              11,16         Усе
20:36:51
#/etc/init.d/networking restart
Reconfiguring network interfaces...Removed VLAN -:eth0.106:-
SIOCDELRT: No such process
Don't seem to be have all the variables for eth0/inet.
Failed to bring up eth0.
Set name-type for VLAN subsystem. Should be visible in /proc/net/vlan/config
Added VLAN with VID == 106 to IF -:eth0:-
if-up.d/mountnfs[eth0.106]: waiting for interface eth0.206 before doing NFS mounts (warning).
if-up.d/mountnfs[eth0.106]: waiting for interface eth0.266 before doing NFS mounts (warning).
Set name-type for VLAN subsystem. Should be visible in /proc/net/vlan/config
ERROR: trying to add VLAN #206 to IF -:eth0:-  error: File exists
if-up.d/mountnfs[eth0.206]: waiting for interface eth0.266 before doing NFS mounts (warning).
Set name-type for VLAN subsystem. Should be visible in /proc/net/vlan/config
ERROR: trying to add VLAN #266 to IF -:eth0:-  error: File exists
192.168.266.2: Unknown host
ifconfig: `--help' gives usage information.
Failed to bring up eth0.266.
done.
20:37:04
#ifconfig 0-a
0-a: error fetching interface information: Device not found
20:37:32
#ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:1b:fc:7d:bc:f0
          inet6 addr: fe80::21b:fcff:fe7d:bcf0/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:13875 errors:0 dropped:0 overruns:0 frame:0
          TX packets:17519 errors:0 dropped:0 overruns:0 carrier:2
          collisions:0 txqueuelen:1000
          RX bytes:2660887 (2.5 MiB)  TX bytes:2599954 (2.4 MiB)
eth0.106  Link encap:Ethernet  HWaddr 00:1b:fc:7d:bc:f0
          inet addr:192.168.106.1  Bcast:192.168.106.255  Mask:255.255.255.0
          inet6 addr: fe80::21b:fcff:fe7d:bcf0/64 Scope:Link
...
          TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:336 (336.0 B)  TX bytes:336 (336.0 B)
tun0      Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          inet addr:172.16.1.6  P-t-P:172.16.1.5  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:53 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:6108 (5.9 KiB)  TX bytes:268 (268.0 B)
20:37:36
#/etc/init.d/networking restart
Reconfiguring network interfaces...Removed VLAN -:eth0.106:-
Removed VLAN -:eth0.206:-
Don't seem to be have all the variables for eth0/inet.
Failed to bring up eth0.
Set name-type for VLAN subsystem. Should be visible in /proc/net/vlan/config
Added VLAN with VID == 106 to IF -:eth0:-
if-up.d/mountnfs[eth0.106]: waiting for interface eth0.206 before doing NFS mounts (warning).
if-up.d/mountnfs[eth0.106]: waiting for interface eth0.266 before doing NFS mounts (warning).
Set name-type for VLAN subsystem. Should be visible in /proc/net/vlan/config
Added VLAN with VID == 206 to IF -:eth0:-
if-up.d/mountnfs[eth0.206]: waiting for interface eth0.266 before doing NFS mounts (warning).
Set name-type for VLAN subsystem. Should be visible in /proc/net/vlan/config
ERROR: trying to add VLAN #266 to IF -:eth0:-  error: File exists
192.168.266.2: Unknown host
ifconfig: `--help' gives usage information.
Failed to bring up eth0.266.
done.
/dev/pts/1
20:38:13
#tail -f /var/log/daemon.log
Jun  3 20:35:49 linux12 ovpn-client[6075]: TCPv4_CLIENT link local: [undef]
Jun  3 20:35:49 linux12 ovpn-client[6075]: TCPv4_CLIENT link remote: 192.168.205.2:443
Jun  3 20:35:49 linux12 ovpn-client[6075]: Peer Connection Initiated with 192.168.205.2:443
Jun  3 20:35:50 linux12 ovpn-client[6075]: Initialization Sequence Completed
Jun  3 20:36:12 linux12 monit[3276]: 'cron' process is not running
Jun  3 20:36:12 linux12 monit[3276]: 'cron' trying to restart
Jun  3 20:36:12 linux12 monit[3276]: 'cron' start: /etc/init.d/cron
Jun  3 20:36:12 linux12 monit[3276]: 'cron' failed to start
Jun  3 20:37:11 linux12 ntpdate[6193]: step time server 62.149.0.30 offset -0.897254 sec
Jun  3 20:37:26 linux12 ntpdate[6276]: step time server 62.149.0.30 offset -0.002870 sec
^C
/dev/pts/4
20:38:34
#/etc/init.d/networking restart
Reconfiguring network interfaces...Removed VLAN -:eth0.106:-
Removed VLAN -:eth0.206:-
Don't seem to be have all the variables for eth0/inet.
Failed to bring up eth0.
Set name-type for VLAN subsystem. Should be visible in /proc/net/vlan/config
Added VLAN with VID == 106 to IF -:eth0:-
if-up.d/mountnfs[eth0.106]: waiting for interface eth0.206 before doing NFS mounts (warning).
if-up.d/mountnfs[eth0.106]: waiting for interface eth0.266 before doing NFS mounts (warning).
Set name-type for VLAN subsystem. Should be visible in /proc/net/vlan/config
Added VLAN with VID == 206 to IF -:eth0:-
if-up.d/mountnfs[eth0.206]: waiting for interface eth0.266 before doing NFS mounts (warning).
Set name-type for VLAN subsystem. Should be visible in /proc/net/vlan/config
ERROR: trying to add VLAN #266 to IF -:eth0:-  error: File exists
192.168.266.2: Unknown host
ifconfig: `--help' gives usage information.
Failed to bring up eth0.266.
done.
/dev/pts/1
20:38:49
#ls /var/log/
apache2   bootstrap.log  debug       dmesg.2.gz  exim4           gdm       lp-errs    mail.log   pycentral.log  Xorg.0.log      Xorg.2.log
apt       btmp           dmesg       dmesg.3.gz  faillog         kern.log  lpr.log    mail.warn  syslog         Xorg.0.log.old  Xorg.2.log.old
auth.log  ConsoleKit     dmesg.0     dmesg.4.gz  fontconfig.log  lastlog   mail.err   messages   user.log       Xorg.1.log      Xorg.3.log
boot      daemon.log     dmesg.1.gz  dpkg.log    fsck            lp-acct   mail.info  news       wtmp           Xorg.1.log.old  Xorg.3.log.old
20:38:52
#tail -f /var/log/syslog
Jun  3 20:36:12 linux12 monit[3276]: 'cron' trying to restart
Jun  3 20:36:12 linux12 monit[3276]: 'cron' start: /etc/init.d/cron
Jun  3 20:36:12 linux12 monit[3276]: 'cron' failed to start
Jun  3 20:37:11 linux12 ntpdate[6193]: step time server 62.149.0.30 offset -0.897254 sec
Jun  3 20:37:13 linux12 kernel: [ 4039.036152] eth0.106: no IPv6 routers present
Jun  3 20:37:26 linux12 ntpdate[6276]: step time server 62.149.0.30 offset -0.002870 sec
Jun  3 20:38:41 linux12 ntpdate[6438]: step time server 62.149.0.30 offset -0.017351 sec
Jun  3 20:38:44 linux12 kernel: [ 4129.788029] eth0.206: no IPv6 routers present
Jun  3 20:38:45 linux12 kernel: [ 4130.264115] eth0.106: no IPv6 routers present
Jun  3 20:38:56 linux12 ntpdate[6539]: step time server 62.149.0.30 offset -0.004328 sec
Jun  3 20:39:11 linux12 monit[3276]: 'cron' process is not running
Jun  3 20:39:11 linux12 monit[3276]: 'cron' trying to restart
Jun  3 20:39:11 linux12 monit[3276]: 'cron' start: /etc/init.d/cron
Jun  3 20:39:11 linux12 monit[3276]: 'cron' failed to start
Jun  3 20:39:20 linux12 ntpdate[6669]: step time server 62.149.0.30 offset -0.006920 sec
Jun  3 20:39:22 linux12 kernel: [ 4167.888050] eth0.106: no IPv6 routers present
Jun  3 20:39:22 linux12 kernel: [ 4168.064045] eth0.206: no IPv6 routers present
^C
/dev/pts/4
20:39:12
#/etc/init.d/networking restart
Reconfiguring network interfaces...Removed VLAN -:eth0.106:-
Removed VLAN -:eth0.206:-
Don't seem to be have all the variables for eth0/inet.
Failed to bring up eth0.
Set name-type for VLAN subsystem. Should be visible in /proc/net/vlan/config
Added VLAN with VID == 106 to IF -:eth0:-
if-up.d/mountnfs[eth0.106]: waiting for interface eth0.206 before doing NFS mounts (warning).
if-up.d/mountnfs[eth0.106]: waiting for interface eth0.266 before doing NFS mounts (warning).
Set name-type for VLAN subsystem. Should be visible in /proc/net/vlan/config
Added VLAN with VID == 206 to IF -:eth0:-
if-up.d/mountnfs[eth0.206]: waiting for interface eth0.266 before doing NFS mounts (warning).
Set name-type for VLAN subsystem. Should be visible in /proc/net/vlan/config
ERROR: trying to add VLAN #266 to IF -:eth0:-  error: File exists
192.168.266.2: Unknown host
ifconfig: `--help' gives usage information.
Failed to bring up eth0.266.
done.
20:39:58
#/etc/init.d/openvpn restart
Stopping virtual private network daemon: client.
Starting virtual private network daemon: client.
/dev/pts/1
20:40:09
#tail -f /var/log/
tail: помилка читання `/var/log/': Is a directory
tail: /var/log/: не можна стежити за кінцем файлу такого типу; вивід продовжується для нового файлу
tail: більше немає файлів
20:40:19
#tail -f /var/log/
apache2/        btmp            dmesg.0         dpkg.log        gdm/            lpr.log         messages        wtmp            Xorg.2.log
apt/            ConsoleKit/     dmesg.1.gz      exim4/          kern.log        mail.err        news/           Xorg.0.log      Xorg.2.log.old
auth.log        daemon.log      dmesg.2.gz      faillog         lastlog         mail.info       pycentral.log   Xorg.0.log.old  Xorg.3.log
boot            debug           dmesg.3.gz      fontconfig.log  lp-acct         mail.log        syslog          Xorg.1.log      Xorg.3.log.old
bootstrap.log   dmesg           dmesg.4.gz      fsck/           lp-errs         mail.warn       user.log        Xorg.1.log.old
20:40:19
#tail -f /var/log/daemon.log
Jun  3 21:11:27 linux12 ovpn-client[7117]: /sbin/ifconfig tun0 172.16.1.6 pointopoint 172.16.1.5 mtu 1500
Jun  3 21:11:27 linux12 ovpn-client[7117]: Attempting to establish TCP connection with 192.168.215.2:443 [nonblock]
Jun  3 21:11:37 linux12 ovpn-client[7117]: TCP: connect to 192.168.215.2:443 failed, will try again in 5 seconds: Connection timed out
Jun  3 21:11:37 linux12 ovpn-client[7117]: /sbin/ifconfig tun0 0.0.0.0
Jun  3 21:11:37 linux12 ovpn-client[7117]: SIGUSR1[soft,init_instance] received, process restarting
Jun  3 21:11:42 linux12 ovpn-client[7117]: NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Jun  3 21:11:42 linux12 ovpn-client[7117]: /usr/sbin/openvpn-vulnkey -q linux9.key
Jun  3 21:11:42 linux12 ovpn-client[7117]: TUN/TAP device tun0 opened
Jun  3 21:11:42 linux12 ovpn-client[7117]: /sbin/ifconfig tun0 172.16.1.6 pointopoint 172.16.1.5 mtu 1500
Jun  3 21:11:42 linux12 ovpn-client[7117]: Attempting to establish TCP connection with 192.168.205.2:443 [nonblock]
...
Jun  3 21:19:15 linux12 ovpn-client[7117]: TCP: connect to 192.168.215.2:443 failed, will try again in 5 seconds: Connection timed out
Jun  3 21:19:15 linux12 ovpn-client[7117]: /sbin/ifconfig tun0 0.0.0.0
Jun  3 21:19:15 linux12 ovpn-client[7117]: SIGUSR1[soft,init_instance] received, process restarting
Jun  3 21:19:20 linux12 ovpn-client[7117]: NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Jun  3 21:19:20 linux12 ovpn-client[7117]: /usr/sbin/openvpn-vulnkey -q linux9.key
Jun  3 21:19:20 linux12 ovpn-client[7117]: TUN/TAP device tun0 opened
Jun  3 21:19:20 linux12 ovpn-client[7117]: /sbin/ifconfig tun0 172.16.1.6 pointopoint 172.16.1.5 mtu 1500
Jun  3 21:19:20 linux12 ovpn-client[7117]: Attempting to establish TCP connection with 192.168.205.2:443 [nonblock]
Jun  3 21:19:30 linux12 ovpn-client[7117]: TCP: connect to 192.168.205.2:443 failed, will try again in 5 seconds: Connection timed out
Jun  3 21:19:30 linux12 ovpn-client[7117]: /sbin/ifconfig tun0 0.0.0.0
/dev/pts/4
20:40:45
#ssh 192.168.205.1
 interface             Enter the Interface Configuration Level, or execute one command for that level.
 vlan                  Add, delete, edit VLAN configuration or enter a VLAN context.
 debug                 Enable/disable debug logging.
 page                  Toggle paging mode.
 reload                Warm reboot of the switch.
ProCurve Switch 3400cl-48G(vlan-215)# no tagged 7
ProCurve Switch 3400cl-48G(vlan-215)# no tagged 7~^Z [suspend ssh]
[1]+  Stopped                 ssh 192.168.205.1
20:48:11
#kill %
tcsetattr: Interrupted system call
[1]+  Exit 143                ssh 192.168.205.1
20:48:14
#kill %
bash: kill: %: no such job
20:48:16
#kill %
bash: kill: %: no such job
20:48:16
#ping 192.168.205.1
PING 192.168.205.1 (192.168.205.1) 56(84) bytes of data.
^C
--- 192.168.205.1 ping statistics ---
2 packets transmitted, 0 received, 100% packet loss, time 1006ms
20:48:26
#ping 192.168.215.1
PING 192.168.215.1 (192.168.215.1) 56(84) bytes of data.
64 bytes from 192.168.215.1: icmp_seq=1 ttl=63 time=38.1 ms
64 bytes from 192.168.215.1: icmp_seq=2 ttl=63 time=1.38 ms
64 bytes from 192.168.215.1: icmp_seq=3 ttl=63 time=0.879 ms
^C
--- 192.168.215.1 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2001ms
rtt min/avg/max/mdev = 0.879/13.470/38.144/17.448 ms
20:48:30
#ping 192.168.215.22
PING 192.168.215.22 (192.168.215.22) 56(84) bytes of data.
^C
--- 192.168.215.22 ping statistics ---
1 packets transmitted, 0 received, 100% packet loss, time 0ms
20:48:37
#ping 192.168.215.2
PING 192.168.215.2 (192.168.215.2) 56(84) bytes of data.
64 bytes from 192.168.215.2: icmp_seq=1 ttl=63 time=0.225 ms
64 bytes from 192.168.215.2: icmp_seq=2 ttl=63 time=0.220 ms
^C
--- 192.168.215.2 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 999ms
rtt min/avg/max/mdev = 0.220/0.222/0.225/0.015 ms
20:48:39
#ping 192.168.215.1
PING 192.168.215.1 (192.168.215.1) 56(84) bytes of data.
64 bytes from 192.168.215.1: icmp_seq=1 ttl=63 time=0.932 ms
64 bytes from 192.168.215.1: icmp_seq=2 ttl=63 time=1.00 ms
^C
--- 192.168.215.1 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 999ms
rtt min/avg/max/mdev = 0.932/0.970/1.008/0.038 ms
20:48:47
#ssh 192.168.215.1
ip ssh
password manager
password operator
ProCurve Switch 3400cl-48G#
ProCurve Switch 3400cl-48G#
ProCurve Switch 3400cl-48G# conf t
ProCurve Switch 3400cl-48G(config)# vlan 205
ProCurve Switch 3400cl-48G(vlan-205)# tag
ProCurve Switch 3400cl-48G(vlan-205)# tagged 7
ProCurve Switch 3400cl-48G(vlan-205)#
ProCurve Switch 3400cl-48G(config)#
ProCurve Switch 3400cl-48G# conf t
ProCurve Switch 3400cl-48G(config)# vlan 215
ProCurve Switch 3400cl-48G(vlan-215)# no tagged 7~^Z [suspend ssh]
[1]+  Stopped                 ssh 192.168.215.1
20:51:55
#kill %
tcsetattr: Interrupted system call
[1]+  Exit 143                ssh 192.168.215.1
20:51:58
#kill %
bash: kill: %: no such job
20:52:00
#ssh 192.168.205.1
We'd like to keep you up to date about:
  * Software feature updates
  * New product announcements
  * Special events
Please register your products now at:  www.ProCurve.com
root@192.168.205.1's password:
Received disconnect from 192.168.205.1: 2:
Sorry, the maximum number of sessions are active.  Try again later.
20:52:12
#ssh 192.168.205.1
We'd like to keep you up to date about:
  * Software feature updates
  * New product announcements
  * Special events
Please register your products now at:  www.ProCurve.com
root@192.168.205.1's password:
Received disconnect from 192.168.205.1: 2:
Sorry, the maximum number of sessions are active.  Try again later.
20:52:22
#ping 192.168.15.254
PING 192.168.15.254 (192.168.15.254) 56(84) bytes of data.
64 bytes from 192.168.15.254: icmp_seq=2 ttl=64 time=0.626 ms
64 bytes from 192.168.15.254: icmp_seq=3 ttl=64 time=0.608 ms
64 bytes from 192.168.15.254: icmp_seq=4 ttl=64 time=0.661 ms
64 bytes from 192.168.15.254: icmp_seq=5 ttl=64 time=0.616 ms
64 bytes from 192.168.15.254: icmp_seq=6 ttl=64 time=0.623 ms
64 bytes from 192.168.15.254: icmp_seq=8 ttl=64 time=0.639 ms
64 bytes from 192.168.15.254: icmp_seq=9 ttl=64 time=0.625 ms
64 bytes from 192.168.15.254: icmp_seq=10 ttl=64 time=0.625 ms
64 bytes from 192.168.15.254: icmp_seq=11 ttl=64 time=0.610 ms
^C
--- 192.168.15.254 ping statistics ---
11 packets transmitted, 9 received, 18% packet loss, time 10006ms
rtt min/avg/max/mdev = 0.608/0.625/0.661/0.036 ms

Четверг (06/04/09)

09:44:59
#ping 10.0.35.1
PING 10.0.35.1 (10.0.35.1) 56(84) bytes of data.
64 bytes from 10.0.35.1: icmp_seq=1 ttl=63 time=0.235 ms
64 bytes from 10.0.35.1: icmp_seq=2 ttl=63 time=0.220 ms
^C
--- 10.0.35.1 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 999ms
rtt min/avg/max/mdev = 0.220/0.227/0.235/0.016 ms
09:46:51
#ping 10.0.35.1
PING 10.0.35.1 (10.0.35.1) 56(84) bytes of data.
64 bytes from 10.0.35.1: icmp_seq=1 ttl=63 time=0.233 ms
64 bytes from 10.0.35.1: icmp_seq=2 ttl=63 time=0.224 ms
64 bytes from 10.0.35.1: icmp_seq=3 ttl=63 time=0.223 ms
64 bytes from 10.0.35.1: icmp_seq=4 ttl=63 time=0.224 ms
64 bytes from 10.0.35.1: icmp_seq=5 ttl=63 time=0.223 ms
64 bytes from 10.0.35.1: icmp_seq=7 ttl=63 time=0.231 ms
64 bytes from 10.0.35.1: icmp_seq=8 ttl=63 time=0.223 ms
64 bytes from 10.0.35.1: icmp_seq=9 ttl=63 time=0.223 ms
64 bytes from 10.0.35.1: icmp_seq=10 ttl=63 time=0.224 ms
^C
--- 10.0.35.1 ping statistics ---
10 packets transmitted, 9 received, 10% packet loss, time 9000ms
rtt min/avg/max/mdev = 0.223/0.225/0.233/0.012 ms
09:47:21
#ping 10.0.35.100
PING 10.0.35.100 (10.0.35.100) 56(84) bytes of data.
64 bytes from 10.0.35.100: icmp_seq=1 ttl=62 time=0.240 ms
64 bytes from 10.0.35.100: icmp_seq=2 ttl=62 time=0.224 ms
^C
--- 10.0.35.100 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 999ms
rtt min/avg/max/mdev = 0.224/0.232/0.240/0.008 ms
09:47:24
#traceroute 10.0.35.1
traceroute to 10.0.35.1 (10.0.35.1), 30 hops max, 60 byte packets
 1   (172.16.1.5)  0.507 ms  0.839 ms  0.817 ms
 2  * * *
 3  * * *
 4  * * *
 5  * * *
 6  * * *
 7  * * *
 8  * * *
 9  * * *
...
21  * * *
22  * * *
23  * * *
24  * * *
25  * * *
26  * * *
27  * * *
28  * * *
29  * * *
30  * * *
09:48:25
#ping 10.0.35.100
PING 10.0.35.100 (10.0.35.100) 56(84) bytes of data.
^[[B^[[A^[[A^C
--- 10.0.35.100 ping statistics ---
70 packets transmitted, 0 received, 100% packet loss, time 69113ms
09:49:40
#ping 10.0.35.100
PING 10.0.35.100 (10.0.35.100) 56(84) bytes of data.
^C
--- 10.0.35.100 ping statistics ---
3 packets transmitted, 0 received, 100% packet loss, time 2015ms
09:49:43
#cat /proc/sys/net/ipv4/ip_forward
1
/dev/pts/7
09:55:15
#ping 10.0.35.100
PING 10.0.35.100 (10.0.35.100) 56(84) bytes of data.
^C
--- 10.0.35.100 ping statistics ---
30 packets transmitted, 0 received, 100% packet loss, time 29231ms
09:56:25
#ping 10.0.105.1
PING 10.0.105.1 (10.0.105.1) 56(84) bytes of data.
^C
--- 10.0.105.1 ping statistics ---
1 packets transmitted, 0 received, 100% packet loss, time 0ms
09:56:29
#ping 10.0.105.2
PING 10.0.105.2 (10.0.105.2) 56(84) bytes of data.
^C
--- 10.0.105.2 ping statistics ---
2 packets transmitted, 0 received, 100% packet loss, time 999ms
09:56:31
#ping 10.0.205.2
PING 10.0.205.2 (10.0.205.2) 56(84) bytes of data.
^C
--- 10.0.205.2 ping statistics ---
1 packets transmitted, 0 received, 100% packet loss, time 0ms
09:56:36
#ping 10.0.205.1
PING 10.0.205.1 (10.0.205.1) 56(84) bytes of data.
^C
--- 10.0.205.1 ping statistics ---
10 packets transmitted, 0 received, 100% packet loss, time 9070ms
09:56:47
#ping 10.0.105.1
PING 10.0.105.1 (10.0.105.1) 56(84) bytes of data.
^C
--- 10.0.105.1 ping statistics ---
3 packets transmitted, 0 received, 100% packet loss, time 2016ms
09:56:52
#ping 192.168.105.1
PING 192.168.105.1 (192.168.105.1) 56(84) bytes of data.
64 bytes from 192.168.105.1: icmp_seq=1 ttl=64 time=0.517 ms
^C
--- 192.168.105.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.517/0.517/0.517/0.000 ms
09:57:02
#ping 192.168.105.2
PING 192.168.105.2 (192.168.105.2) 56(84) bytes of data.
^C
--- 192.168.105.2 ping statistics ---
3 packets transmitted, 0 received, 100% packet loss, time 2016ms
09:57:06
#vim /etc/cron
--- /tmp/l3-saved-18288.28049.24778	2009-06-04 09:57:43.000000000 +0300
+++ /etc/crontab	2009-06-04 09:58:08.000000000 +0300
@@ -12,6 +12,4 @@
 25 6	* * *	root	test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
 47 6	* * 7	root	test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
 52 6	1 * *	root	test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )
-#
-
 
09:57:06
#vim /etc/crontab
09:58:08
#vonfig
bash: vonfig: command not found
/dev/pts/9
10:00:31
#ping 192.168.105.2
PING 192.168.105.2 (192.168.105.2) 56(84) bytes of data.
^C
--- 192.168.105.2 ping statistics ---
3 packets transmitted, 0 received, 100% packet loss, time 1999ms
10:01:46
#netstat -rn
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
192.168.215.2   192.168.206.1   255.255.255.255 UGH       0 0          0 eth0.206
172.16.1.5      0.0.0.0         255.255.255.255 UH        0 0          0 tun0
192.168.106.0   0.0.0.0         255.255.255.0   U         0 0          0 eth0.106
192.168.206.0   0.0.0.0         255.255.255.0   U         0 0          0 eth0.206
0.0.0.0         172.16.1.5      0.0.0.0         UG        0 0          0 tun0
10:01:50
#ping 172.16.1.5
PING 172.16.1.5 (172.16.1.5) 56(84) bytes of data.
64 bytes from 172.16.1.5: icmp_seq=1 ttl=64 time=0.495 ms
^C
--- 172.16.1.5 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.495/0.495/0.495/0.000 ms
10:02:39
#ping 172.16.1.6
PING 172.16.1.6 (172.16.1.6) 56(84) bytes of data.
64 bytes from 172.16.1.6: icmp_seq=1 ttl=64 time=0.018 ms
64 bytes from 172.16.1.6: icmp_seq=2 ttl=64 time=0.009 ms
^C
--- 172.16.1.6 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 999ms
rtt min/avg/max/mdev = 0.009/0.013/0.018/0.005 ms
10:02:41
#ip route show
192.168.215.2 via 192.168.206.1 dev eth0.206
172.16.1.5 dev tun0  proto kernel  scope link  src 172.16.1.6
192.168.106.0/24 dev eth0.106  proto kernel  scope link  src 192.168.106.1
192.168.206.0/24 dev eth0.206  proto kernel  scope link  src 192.168.206.2
default via 172.16.1.5 dev tun0
10:03:44
#ping 192.168.215.2
PING 192.168.215.2 (192.168.215.2) 56(84) bytes of data.
64 bytes from 192.168.215.2: icmp_seq=1 ttl=63 time=0.226 ms
64 bytes from 192.168.215.2: icmp_seq=2 ttl=63 time=0.224 ms
^C
--- 192.168.215.2 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1000ms
rtt min/avg/max/mdev = 0.224/0.225/0.226/0.001 ms
10:04:35
#ping 192.168.205.2
PING 192.168.205.2 (192.168.205.2) 56(84) bytes of data.
^C
--- 192.168.205.2 ping statistics ---
1 packets transmitted, 0 received, 100% packet loss, time 0ms
/dev/pts/7
10:06:07
#vconfig
Expecting argc to be 3-5, inclusive.  Was: 1
Usage: add             [interface-name] [vlan_id]
       rem             [vlan-name]
       set_flag        [interface-name] [flag-num]       [0 | 1]
       set_egress_map  [vlan-name]      [skb_priority]   [vlan_qos]
       set_ingress_map [vlan-name]      [skb_priority]   [vlan_qos]
       set_name_type   [name-type]
* The [interface-name] is the name of the ethernet card that hosts
  the VLAN you are talking about.
* The vlan_id is the identifier (0-4095) of the VLAN you are operating on.
* skb_priority is the priority in the socket buffer (sk_buff).
* vlan_qos is the 3 bit priority in the VLAN header
* name-type:  VLAN_PLUS_VID (vlan0005), VLAN_PLUS_VID_NO_PAD (vlan5),
              DEV_PLUS_VID (eth0.0005), DEV_PLUS_VID_NO_PAD (eth0.5)
* FLAGS:  1 REORDER_HDR  When this is set, the VLAN device will move the
            ethernet header around to make it look exactly like a real
            ethernet device.  This may help programs such as DHCPd which
            read the raw ethernet packet and make assumptions about the
            location of bytes.  If you don't need it, don't turn it on, because
            there will be at least a small performance degradation.  Default
            is OFF.
10:06:13
#ping 192.168.15.254
PING 192.168.15.254 (192.168.15.254) 56(84) bytes of data.
^C
--- 192.168.15.254 ping statistics ---
4 packets transmitted, 0 received, 100% packet loss, time 3022ms
/dev/pts/12
10:16:11
#ssh 192.168.15.254
^C
10:16:40
#ssh root@10.0.35.100
ssh: connect to host 10.0.35.100 port 22: Connection timed out
/dev/pts/7
10:18:17
#ping 192.168.15.254
PING 192.168.15.254 (192.168.15.254) 56(84) bytes of data.
^C
--- 192.168.15.254 ping statistics ---
4 packets transmitted, 0 received, 100% packet loss, time 3022ms
10:18:36
#ping 192.168.205.2
PING 192.168.205.2 (192.168.205.2) 56(84) bytes of data.
^C
--- 192.168.205.2 ping statistics ---
4 packets transmitted, 0 received, 100% packet loss, time 2999ms
10:18:55
#ping 192.168.202.1
PING 192.168.202.1 (192.168.202.1) 56(84) bytes of data.
^C
--- 192.168.202.1 ping statistics ---
2 packets transmitted, 0 received, 100% packet loss, time 1008ms
10:19:12
#ping 192.168.200.1
PING 192.168.200.1 (192.168.200.1) 56(84) bytes of data.
^C
--- 192.168.200.1 ping statistics ---
1 packets transmitted, 0 received, 100% packet loss, time 0ms
10:19:16
#ping 192.168.206.1.
^C
10:19:56
#ping 192.168.206.1.
^C
10:20:03
#netstat -rn
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
192.168.215.2   192.168.206.1   255.255.255.255 UGH       0 0          0 eth0.206
172.16.1.5      0.0.0.0         255.255.255.255 UH        0 0          0 tun0
192.168.106.0   0.0.0.0         255.255.255.0   U         0 0          0 eth0.106
192.168.206.0   0.0.0.0         255.255.255.0   U         0 0          0 eth0.206
0.0.0.0         172.16.1.5      0.0.0.0         UG        0 0          0 tun0
10:20:22
#ping 192.168.206.1
PING 192.168.206.1 (192.168.206.1) 56(84) bytes of data.
64 bytes from 192.168.206.1: icmp_seq=1 ttl=64 time=0.640 ms
64 bytes from 192.168.206.1: icmp_seq=2 ttl=64 time=0.623 ms
64 bytes from 192.168.206.1: icmp_seq=3 ttl=64 time=0.641 ms
64 bytes from 192.168.206.1: icmp_seq=4 ttl=64 time=0.633 ms
64 bytes from 192.168.206.1: icmp_seq=5 ttl=64 time=0.637 ms
64 bytes from 192.168.206.1: icmp_seq=6 ttl=64 time=0.616 ms
64 bytes from 192.168.206.1: icmp_seq=7 ttl=64 time=0.634 ms
64 bytes from 192.168.206.1: icmp_seq=8 ttl=64 time=0.632 ms
^C
--- 192.168.206.1 ping statistics ---
8 packets transmitted, 8 received, 0% packet loss, time 6998ms
rtt min/avg/max/mdev = 0.616/0.632/0.641/0.008 ms
/dev/pts/12
10:20:59
#ssh root@10.0.35.100
root@10.0.35.100's password:
Linux linux0 2.6.18-6-xen-686 #1 SMP Sun Feb 10 22:43:13 UTC 2008 i686
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Thu Jun  4 10:34:29 2009 from 192.168.201.2
l3-agent is already running: pid=4804; pidfile=/root/.lilalo/l3-agent.pid
/dev/pts/7
10:21:20
#netstat -rn
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
192.168.215.2   192.168.206.1   255.255.255.255 UGH       0 0          0 eth0.206
172.16.1.5      0.0.0.0         255.255.255.255 UH        0 0          0 tun0
192.168.106.0   0.0.0.0         255.255.255.0   U         0 0          0 eth0.106
192.168.206.0   0.0.0.0         255.255.255.0   U         0 0          0 eth0.206
0.0.0.0         172.16.1.5      0.0.0.0         UG        0 0          0 tun0
10:21:28
#/etc/init.d/openvpn stop
Stopping virtual private network daemon: client.
10:21:45
#vim /etc/default/openvpn
--- /tmp/l3-saved-18288.15204.3204	2009-06-04 10:22:55.000000000 +0300
+++ /etc/default/openvpn	2009-06-04 10:23:40.000000000 +0300
@@ -6,7 +6,7 @@
 # names of the VPNs. If empty, "all" is assumed.
 #
 #AUTOSTART="all"
-#AUTOSTART="none"
+AUTOSTART="none"
 #AUTOSTART="home office"
 #
 # Refresh interval (in seconds) of default status files
10:23:40
#host
Usage:      host [-v] [-a] [-t querytype] [options]  name  [server]
Listing:    host [-v] [-a] [-t querytype] [options]  -l zone  [server]
Hostcount:  host [-v] [options] -H [-D] [-E] [-G] zone
Check soa:  host [-v] [options] -C zone
Addrcheck:  host [-v] [options] -A host
Listing options: [-L level] [-S] [-A] [-p] [-P prefserver] [-N skipzone]
Common options:  [-d] [-f|-F file] [-I chars] [-i|-n] [-q] [-Q] [-T] [-Z]
Other options:   [-c class] [-e] [-m] [-o] [-r] [-R] [-s secs] [-u] [-w]
Special options: [-O srcaddr] [-j minport] [-J maxport]
Extended usage:  [-x [name ...]] [-X server [name ...]]
прошло 12 минут
/dev/pts/12
10:36:22
#screen -x
/dev/pts/7
10:44:46
#dig
; <<>> DiG 9.6.0-P1 <<>>
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 32554
;; flags: qr rd ra; QUERY: 1, ANSWER: 13, AUTHORITY: 0, ADDITIONAL: 14
;; QUESTION SECTION:
;.                              IN      NS
;; ANSWER SECTION:
.                       434502  IN      NS      f.root-servers.net.
.                       434502  IN      NS      e.root-servers.net.
...
g.root-servers.net.     344746  IN      A       192.112.36.4
h.root-servers.net.     344746  IN      A       128.63.2.53
h.root-servers.net.     346677  IN      AAAA    2001:500:1::803f:235
i.root-servers.net.     344746  IN      A       192.36.148.17
j.root-servers.net.     434502  IN      A       192.58.128.30
j.root-servers.net.     434502  IN      AAAA    2001:503:c27::2:30
;; Query time: 8 msec
;; SERVER: 10.0.35.1#53(10.0.35.1)
;; WHEN: Thu Jun  4 10:44:50 2009
;; MSG SIZE  rcvd: 500
10:44:50
#nslookup

10:45:00
#host mail.ru
mail.ru                 A       194.67.57.126
mail.ru                 A       194.67.57.226
mail.ru                 A       194.67.57.20
mail.ru                 A       194.67.57.26
10:46:58
#host ya.ru
ya.ru                   A       213.180.204.8
10:47:13
#host google.ru
google.ru               A       72.14.221.104
google.ru               A       74.125.77.104
google.ru               A       216.239.59.104
10:47:19
#host wwww.google.com.ua
wwww.google.com.ua does not exist, try again

Файлы

  • /proc/sys/net/ipv4/ip_forward
  • /proc/sys/net/ipv4/ip_forward
    >
    1
    

    Статистика

    Время первой команды журнала20:21:52 2009- 6- 3
    Время последней команды журнала10:47:19 2009- 6- 4
    Количество командных строк в журнале101
    Процент команд с ненулевым кодом завершения, %35.64
    Процент синтаксически неверно набранных команд, % 0.99
    Суммарное время работы с терминалом *, час 1.55
    Количество командных строк в единицу времени, команда/мин 1.09
    Частота использования команд
    ping32|===============================| 31.68%
    ssh7|======| 6.93%
    vim6|=====| 5.94%
    host5|====| 4.95%
    tail5|====| 4.95%
    vconfig5|====| 4.95%
    kill5|====| 4.95%
    ifconfig4|===| 3.96%
    netstat4|===| 3.96%
    /etc/init.d/networking4|===| 3.96%
    /etc/init.d/openvpn3|==| 2.97%
    ifup2|=| 1.98%
    cd2|=| 1.98%
    ifdown2|=| 1.98%
    /etc/openvpn/update-resolv-conf2|=| 1.98%
    ls2|=| 1.98%
    dig1|| 0.99%
    /etc/op1|| 0.99%
    screen1|| 0.99%
    traceroute1|| 0.99%
    nslookup1|| 0.99%
    cat1|| 0.99%
    ~1|| 0.99%
    vonfig1|| 0.99%
    exit1|| 0.99%
    ip1|| 0.99%
    gateway1|| 0.99%
    ____
    *) Интервалы неактивности длительностью 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$