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

Содержание

Журнал

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

/dev/pts/31
17:52:33
#screen -x
/dev/pts/21
17:52:33
#screen -x
/dev/pts/1
17:54:24
#screen -ls
/dev/pts/2
17:59:22
#screen -x
/dev/pts/3
17:59:38
#screen -x
/dev/pts/1
18:01:10
#screen
/dev/pts/6
18:01:12
#alias exit='echo no exit'

18:01:28
#whois
Использование: whois [ОПЦИЯ]... ОБЪЕКТ...
-l                     одноуровневый минимальный поиск [только RPSL]
-L                     найти всё при минимуме указанных совпадений
-m                     найти первый уровень при максимуме указанных совпадений
-M                     найти всё при максимуме указанных совпадений
-c                     найти наименьшее совпадение, содержащее атрибут mnt-irt
-x                     точное совпадение [только RPSL]
-d                     возвращать также реверсные делегированные объекты DNS [только RPSL]
-i АТР[,АТР]...        выполнить инверсный поиск для указанных АТРибутов
-T ТИП[,ТИП]...        поиск только объектов с типом ТИП
...
-s ИСТОЧНИК[,ИСТОЧНИК]... искать в базе ИСТОЧНИКА
-g ИСТОЧНИК:ПЕРВЫЙ-ПОСЂ ПЕРВОГО до ПОСблон для объекта с типом ТИП ('all' для списка)
-v ТИП                 запросить расширенный шаблон для объекта с типом ТИП
-q [version|sources|types]  запросить указанную информацию о сервере [только RPSL]
-F                     быстрый сырой вывод (включает также -r)
-h УЗЕОРТ                присоединиться к ПОРТУ
-H                     скрыть легальные отказы
      --verbose        разъяснять, что происходит
      --help           отобразить эту помощь и выйти
      --version        вывести информацию о версии и выйти
/dev/pts/11
18:02:36
#screen -x
/dev/pts/6
18:03:00
#w
 18:03:12 up  2:16, 13 users,  load average: 0,00, 0,01, 0,02
USER     TTY      FROM              LOGIN@   IDLE   JCPU   PCPU WHAT
root     pts/1    192.168.15.253   17:13    1:55   0.00s  0.00s script -f -c bash -q /r
quiz     pts/0    linux1.unix.nt   15:53    1:33m  0.00s  0.00s /usr/bin/perl /usr/loca
root     pts/2    linux13.unix.nt  16:41    1:57   0.00s  0.00s script -f -c bash -q /r
root     pts/3    linux3.unix.nt   16:29    3:32   0.00s  0.00s script -f -c bash -q /r
root     pts/9    linux1.unix.nt   18:02   44.00s  0.00s  0.00s script -f -c bash -q /r
root     pts/11   linux9.unix.nt   18:02    0.00s  0.00s  0.00s script -f -c bash -q /r
root     pts/13   linux15.unix.nt  17:14    1:46   0.00s  0.00s script -f -c bash -q /r
root     pts/15   linux6.unix.nt   18:03    1.00s  0.00s  0.00s script -f -c bash -q /r
root     pts/17   linux6.unix.nt   17:14    1:44   0.00s  0.00s script -f -c bash -q /r
root     pts/19   linux5.unix.nt   17:14   48:56   0.00s  0.00s script -f -c bash -q /r
root     pts/21   linux9.unix.nt   17:14   48:32   0.00s  0.00s script -f -c bash -q /r
root     pts/31   linux11.unix.nt  17:35    1:40   0.02s  0.02s script -f -c bash -q /r
root     pts/6    :pts/8:S.0       18:01    0.00s  0.00s  0.00s script -f -c /bin/bash
/dev/pts/15
18:03:06
#screen -x
/dev/pts/3
18:04:54
#screen -x
/dev/pts/6
18:05:46
#w
 18:06:16 up  2:19, 16 users,  load average: 0,06, 0,03, 0,01
USER     TTY      FROM              LOGIN@   IDLE   JCPU   PCPU WHAT
root     pts/1    192.168.15.253   17:13    4:59   0.00s  0.00s script -f -c bash -q /r
quiz     pts/0    linux1.unix.nt   15:53    1:36m  0.00s  0.00s /usr/bin/perl /usr/loca
root     pts/2    linux13.unix.nt  16:41    1:14   0.00s  0.00s script -f -c bash -q /r
root     pts/3    linux3.unix.nt   16:29   55.00s  0.00s  0.00s script -f -c bash -q /r
root     pts/9    linux1.unix.nt   18:02    3:48   0.00s  0.00s script -f -c bash -q /r
root     pts/11   linux9.unix.nt   18:02    3:04   0.00s  0.00s script -f -c bash -q /r
root     pts/13   linux15.unix.nt  17:14    4:50   0.00s  0.00s script -f -c bash -q /r
root     pts/15   linux6.unix.nt   18:03    3:05   0.00s  0.00s script -f -c bash -q /r
root     pts/17   linux6.unix.nt   17:14    1.00s  0.00s  0.00s script -f -c bash -q /r
root     pts/19   linux5.unix.nt   17:14   52:00   0.00s  0.00s script -f -c bash -q /r
root     pts/21   linux9.unix.nt   17:14   51:36   0.00s  0.00s script -f -c bash -q /r
root     pts/23   linux1.unix.nt   18:05   48.00s  0.00s  0.00s script -f -c bash -q /r
root     pts/25   linux15.unix.nt  18:06   11.00s  0.00s  0.00s script -f -c bash -q /r
root     pts/27   192.168.204.2    18:06    3.00s  0.00s  0.00s script -f -c bash -q /r
root     pts/31   linux11.unix.nt  17:35   36.00s  0.02s  0.02s script -f -c bash -q /r
root     pts/6    :pts/8:S.0       18:01    1.00s  0.00s  0.00s script -f -c /bin/bash
/dev/pts/25
18:06:01
#screen -x
/dev/pts/27
18:06:13
#screen -x
/dev/pts/6
18:06:16
#w
 18:06:44 up  2:19, 16 users,  load average: 0,11, 0,04, 0,02
USER     TTY      FROM              LOGIN@   IDLE   JCPU   PCPU WHAT
root     pts/1    192.168.15.253   17:13    5:27   0.00s  0.00s script -f -c bash -q /r
quiz     pts/0    linux1.unix.nt   15:53    1:37m  0.00s  0.00s /usr/bin/perl /usr/loca
root     pts/2    linux13.unix.nt  16:41    1:42   0.00s  0.00s script -f -c bash -q /r
root     pts/3    linux3.unix.nt   16:29    1:23   0.00s  0.00s script -f -c bash -q /r
root     pts/9    linux1.unix.nt   18:02    4:16   0.00s  0.00s script -f -c bash -q /r
root     pts/11   linux9.unix.nt   18:02    3:32   0.00s  0.00s script -f -c bash -q /r
root     pts/13   linux15.unix.nt  17:14    5:18   0.00s  0.00s script -f -c bash -q /r
root     pts/15   linux6.unix.nt   18:03    0.00s  0.00s  0.00s script -f -c bash -q /r
root     pts/17   linux6.unix.nt   17:14    3.00s  0.00s  0.00s script -f -c bash -q /r
root     pts/19   linux5.unix.nt   17:14   52:28   0.00s  0.00s script -f -c bash -q /r
root     pts/21   linux9.unix.nt   17:14   52:04   0.00s  0.00s script -f -c bash -q /r
root     pts/23   linux1.unix.nt   18:05    0.00s  0.00s  0.00s script -f -c bash -q /r
root     pts/25   linux15.unix.nt  18:06   39.00s  0.00s  0.00s script -f -c bash -q /r
root     pts/27   192.168.204.2    18:06   16.00s  0.00s  0.00s script -f -c bash -q /r
root     pts/31   linux11.unix.nt  17:35    1:04   0.02s  0.02s script -f -c bash -q /r
root     pts/6    :pts/8:S.0       18:01    0.00s  0.00s  0.00s script -f -c /bin/bash
18:06:44
#cd /etc/openvpn/

/dev/pts/9
18:07:12
#screen -x
/dev/pts/6
18:07:35
#ls -l
итого 4
-rwxr-xr-x 1 root root 1352 Май  1 15:25 update-resolv-conf
18:07:36
#openvpn
openvpn          openvpn-vulnkey
18:07:36
#openvpn
openvpn          openvpn-vulnkey
18:07:36
#openvpn --genkey --secret linux0.key

/dev/pts/29
18:08:08
#screen -x
/dev/pts/6
18:08:46
#ls -l
итого 8
-rw------- 1 root root  636 Июн  3 18:08 linux0.key
-rwxr-xr-x 1 root root 1352 Май  1 15:25 update-resolv-conf
18:09:30
#vi server.conf
--- /dev/null	2009-06-03 15:47:06.748545282 +0300
+++ server.conf	2009-06-03 18:10:16.000000000 +0300
@@ -0,0 +1,5 @@
+port 44300
+proto tcp-server
+dev tun
+ifconfig 192.168.70.1 192.168.70.2
+secret linux0.key
18:10:16
#cat server.conf
port 44300
proto tcp-server
dev tun
ifconfig 192.168.70.1 192.168.70.2
secret linux0.key
/dev/pts/23
18:10:20
#screen -x
/dev/pts/33
18:12:34
#screen -x
/dev/pts/6
18:15:26
#vi client.conf
--- /tmp/l3-saved-11764.25484.22615	2009-06-03 18:15:28.000000000 +0300
+++ client.conf	2009-06-03 19:55:09.000000000 +0300
@@ -1,5 +1,10 @@
 port 44300
-proto tcp-server
+proto tcp-client
 dev tun
-ifconfig 192.168.70.1 192.168.70.2
+ifconfig 192.168.70.2 192.168.70.1
+#route 192.168.80.0 255.255.255.0
+redirect-gateway
 secret linux0.key
+remote 192.168.90.1
+ping 5
+ping-restart 30
/dev/pts/33
18:17:42
#screen -x
прошло 22 минуты
/dev/pts/2
18:39:52
#screen -x
прошло 28 минут
/dev/pts/11
19:08:06
#screen -x
/dev/pts/15
19:08:12
#screen -x
/dev/pts/17
19:09:06
#screen -x
прошло 48 минут
/dev/pts/6
19:57:28
#ssh 192.168.15.254
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.15.254's password:
Permission denied, please try again.
root@192.168.15.254's password:
Connection closed by 192.168.15.254
20:06:11
#ssh 192.168.15.254
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.15.254's password:
Permission denied, please try again.
root@192.168.15.254's password:
20:06:20
#ssh 192.168.15.254
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.15.254's password:
Permission denied, please try again.
root@192.168.15.254's password:
Permission denied, please try again.
root@192.168.15.254's password:
20:07:39
#ssh 192.168.15.254
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.15.254's password:
Permission denied, please try again.
root@192.168.15.254's password:
20:08:15
#ssh 192.168.15.254
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.15.254's password:
Permission denied, please try again.
root@192.168.15.254's password:
Permission denied, please try again.
root@192.168.15.254's password:
20:08:52
#ssh 192.168.15.254
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.15.254's password:
Permission denied, please try again.
root@192.168.15.254's password:
Permission denied, please try again.
root@192.168.15.254's password:
Received disconnect from 192.168.15.254: 2: Too many authentication failures for root
20:09:47
#cd ~

20:14:02
#ssh 192.168.15.254
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.15.254's password:
Permission denied, please try again.
root@192.168.15.254's password:
Permission denied, please try again.
root@192.168.15.254's password:
Received disconnect from 192.168.15.254: 2: Too many authentication failures for root
20:14:35