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

Содержание

Журнал

Вторник (12/18/12)

/dev/pts/1
15:11:24
#host ya.ru
ya.ru has address 93.158.134.203
ya.ru has address 213.180.193.3
ya.ru has address 213.180.204.3
ya.ru has address 77.88.21.3
ya.ru has address 87.250.250.3
ya.ru has address 87.250.250.203
ya.ru has address 87.250.251.3
ya.ru has address 93.158.134.3
ya.ru mail is handled by 10 mx.yandex.ru.
15:16:50
#ping ya.ru
PING ya.ru (93.158.134.3) 56(84) bytes of data.
64 bytes from www.yandex.ru (93.158.134.3): icmp_req=1 ttl=58 time=18.1 ms
64 bytes from www.yandex.ru (93.158.134.3): icmp_req=2 ttl=58 time=19.7 ms
^C
--- ya.ru ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 18.163/18.932/19.702/0.781 ms
15:17:06
#vim /etc/resolv.conf
--- /dev/null	2012-12-17 19:01:14.436000008 +0200
+++ iptables	2012-12-18 16:46:17.000000000 +0200
@@ -0,0 +1,2 @@
+#!/bin/bash
+iptables-restore < /etc/iptables.rule
15:17:21
#~
search net.nt
nameserver 192.168.13.253
"/etc/resolv.conf" 2L, 40C
15:17:26
#~
Chain PREROUTING (policy ACCEPT)
target     prot opt source               destination
Chain INPUT (policy ACCEPT)
target     prot opt source               destination
Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
Chain POSTROUTING (policy ACCEPT)
target     prot opt source               destination
прошло 11 минут
15:29:22
#man iptables
прошло 14 минут
15:44:10
#cd /etc/network/if-up.d/

15:44:18
#ls -hl
итого 12K
-rwxr-xr-x 1 root root 4,5K Мар 28  2012 mountnfs
-rwxr-xr-x 1 root root  849 Дек 21  2009 openssh-server
15:44:19
#cd ..

15:44:34
#cd if-down.d/

15:44:36
#ls -hl
итого 0
15:44:39
#vim iptables
15:45:41
#cd ..

15:45:42
#cd if-up.d/

15:45:44
#ls -hl
итого 12K
-rwxr-xr-x 1 root root 4,5K Мар 28  2012 mountnfs
-rwxr-xr-x 1 root root  849 Дек 21  2009 openssh-server
15:45:45
#vim iptables
15:46:17
#ls -hl
итого 16K
-rw-r--r-- 1 root root   50 Дек 18 16:46 iptables
-rwxr-xr-x 1 root root 4,5K Мар 28  2012 mountnfs
-rwxr-xr-x 1 root root  849 Дек 21  2009 openssh-server
15:46:20
#chmod +x iptables

15:46:25
#ls -hl
итого 16K
-rwxr-xr-x 1 root root   50 Дек 18 16:46 iptables
-rwxr-xr-x 1 root root 4,5K Мар 28  2012 mountnfs
-rwxr-xr-x 1 root root  849 Дек 21  2009 openssh-server
15:46:27
#cd ..

15:46:29
#cd if-down.d/

15:46:31
#ls -hl
итого 4,0K
-rw-r--r-- 1 root root 47 Дек 18 16:45 iptables
15:46:32
#chmod +x iptables

15:46:35
#ls -hl
итого 4,0K
-rwxr-xr-x 1 root root 47 Дек 18 16:45 iptables

Среда (12/19/12)

/dev/pts/1
08:21:57
#iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination
Chain FORWARD (policy ACCEPT)
target     prot opt source               destination
Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
08:22:21
#iptables -t nat -L
Chain PREROUTING (policy ACCEPT)
target     prot opt source               destination
Chain INPUT (policy ACCEPT)
target     prot opt source               destination
Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
Chain POSTROUTING (policy ACCEPT)
target     prot opt source               destination
08:22:27