/l3/users/eb/2009/linux11/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 :16 :17 :18 :19 :20 :21 :22 :23 :24 :25 :26 :27 :28 :29 :30 :31 :32 :33 :34 :35 :36 :37 :38 :39 :40 :41 :42 :43 :44 :45 :46 :47 :48 :49 :50 :51 :52 :53 :54 :55 :56 :57 :58 :59 :60 :61 :62 :63 :64 :65 :66 :67 :68 :69 :70 :71 :72 :73 |
|
#ping 192.168.105.2
PING 192.168.105.2 (192.168.105.2) 56(84) bytes of data. From 10.0.35.1 icmp_seq=1 Time to live exceeded From 10.0.35.1 icmp_seq=2 Time to live exceeded From 10.0.35.1 icmp_seq=3 Time to live exceeded From 10.0.35.1 icmp_seq=4 Time to live exceeded From 10.0.35.1 icmp_seq=5 Time to live exceeded From 10.0.35.1 icmp_seq=6 Time to live exceeded ^X^[[AFrom 10.0.35.1 icmp_seq=7 Time to live exceeded ^C --- 192.168.105.2 ping statistics --- 7 packets transmitted, 0 received, +7 errors, 100% packet loss, time 6007ms |
#netstat -rn
Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 172.16.1.5 0.0.0.0 255.255.255.255 UH 0 0 0 tun0 192.168.105.0 172.16.1.5 255.255.255.255 UGH 0 0 0 tun0 192.168.15.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 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 192.168.206.1 0.0.0.0 UG 0 0 0 eth0.206 0.0.0.0 192.168.15.254 0.0.0.0 UG 0 0 0 eth0 |
#ping 192.168.105.2
PING 192.168.105.2 (192.168.105.2) 56(84) bytes of data. From 10.0.35.1 icmp_seq=1 Time to live exceeded From 10.0.35.1 icmp_seq=2 Time to live exceeded ^C --- 192.168.105.2 ping statistics --- 2 packets transmitted, 0 received, +2 errors, 100% packet loss, time 1001ms |
#ping 192.168.105.2
PING 192.168.105.2 (192.168.105.2) 56(84) bytes of data. From 10.0.35.1 icmp_seq=1 Time to live exceeded From 10.0.35.1 icmp_seq=2 Time to live exceeded From 10.0.35.1 icmp_seq=3 Time to live exceeded From 10.0.35.1 icmp_seq=4 Time to live exceeded From 10.0.35.1 icmp_seq=5 Time to live exceeded From 10.0.35.1 icmp_seq=6 Time to live exceeded From 10.0.35.1 icmp_seq=7 Time to live exceeded From 10.0.35.1 icmp_seq=8 Time to live exceeded From 10.0.35.1 icmp_seq=9 Time to live exceeded From 10.0.35.1 icmp_seq=10 Time to live exceeded From 10.0.35.1 icmp_seq=11 Time to live exceeded ^C --- 192.168.105.2 ping statistics --- 11 packets transmitted, 0 received, +11 errors, 100% packet loss, time 10016ms |
#netstat -rn
Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 172.16.1.5 0.0.0.0 255.255.255.255 UH 0 0 0 tun0 192.168.105.0 172.16.1.5 255.255.255.255 UGH 0 0 0 tun0 192.168.15.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 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 192.168.206.1 0.0.0.0 UG 0 0 0 eth0.206 0.0.0.0 192.168.15.254 0.0.0.0 UG 0 0 0 eth0 |
#netstat -rn
Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 192.168.15.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 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 192.168.206.1 0.0.0.0 UG 0 0 0 eth0.206 0.0.0.0 192.168.15.254 0.0.0.0 UG 0 0 0 eth0 |
#/etc/init.d/openvpn restart
Stopping virtual private network daemon:. Starting virtual private network daemon: client. |
#route del 0.0.0.0 0.0.0.0 gw 192.168.15.254
Usage: inet_route [-vF] del {-host|-net} Target[/prefix] [gw Gw] [metric M] [[dev] If] inet_route [-vF] add {-host|-net} Target[/prefix] [gw Gw] [metric M] [netmask N] [mss Mss] [window W] [irtt I] [mod] [dyn] [reinstate] [[dev] If] inet_route [-vF] add {-host|-net} Target[/prefix] [metric M] reject inet_route [-FC] flush NOT supported |
#route del 0.0.0.0/0 gw 192.168.15.254
SIOCDELRT: Нет такого процесса |
#/etc/init.d/openvpn restart
Stopping virtual private network daemon: client. Starting virtual private network daemon: client. |
#ping 192.168.105.2
PING 192.168.105.2 (192.168.105.2) 56(84) bytes of data. From 10.0.35.1 icmp_seq=1 Time to live exceeded From 10.0.35.1 icmp_seq=2 Time to live exceeded ^C --- 192.168.105.2 ping statistics --- 2 packets transmitted, 0 received, +2 errors, 100% packet loss, time 1001ms |
#ping 192.168.105.1
PING 192.168.105.1 (192.168.105.1) 56(84) bytes of data. From 10.0.35.1 icmp_seq=1 Time to live exceeded From 10.0.35.1 icmp_seq=2 Time to live exceeded ^XFrom 10.0.35.1 icmp_seq=3 Time to live exceeded ^C --- 192.168.105.1 ping statistics --- 3 packets transmitted, 0 received, +3 errors, 100% packet loss, time 2003ms |
#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.452 ms ^C --- 172.16.1.5 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.452/0.452/0.452/0.000 ms |
#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.034 ms 64 bytes from 172.16.1.6: icmp_seq=2 ttl=64 time=0.021 ms ^C --- 172.16.1.6 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 999ms rtt min/avg/max/mdev = 0.021/0.027/0.034/0.008 ms |
#ping 192.168.105.1
PING 192.168.105.1 (192.168.105.1) 56(84) bytes of data. From 10.0.35.1 icmp_seq=1 Time to live exceeded From 10.0.35.1 icmp_seq=2 Time to live exceeded ^C --- 192.168.105.1 ping statistics --- 2 packets transmitted, 0 received, +2 errors, 100% packet loss, time 1001ms |
#netstat -rn
Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 172.16.1.5 0.0.0.0 255.255.255.255 UH 0 0 0 tun0 192.168.105.0 172.16.1.5 255.255.255.255 UGH 0 0 0 tun0 192.168.15.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 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 192.168.206.1 0.0.0.0 UG 0 0 0 eth0.206 |
#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.470 ms ^C --- 172.16.1.5 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.470/0.470/0.470/0.000 ms |
#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.032 ms ^C --- 172.16.1.6 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.032/0.032/0.032/0.000 ms |
#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.030 ms 64 bytes from 172.16.1.6: icmp_seq=2 ttl=64 time=0.016 ms ^C --- 172.16.1.6 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 999ms rtt min/avg/max/mdev = 0.016/0.023/0.030/0.007 ms |
#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.435 ms 64 bytes from 172.16.1.5: icmp_seq=2 ttl=64 time=0.355 ms ^C --- 172.16.1.5 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 999ms rtt min/avg/max/mdev = 0.355/0.395/0.435/0.040 ms |
#!v
1 # Used by ifup(8) and ifdown(8). See the interfaces(5) manpage or 2 # /usr/share/doc/ifupdown/examples for more information. 3 4 auto lo eth0 5 6 iface lo inet loopback 7 iface eth0 inet static 8 address 192.168.15.11 9 netmask 255.255.255.0 10 ... 18 netmask 255.255.255.0 19 vlan_raw_device eth0 20 21 auto eth0.206 22 iface eth0.206 inet static 23 address 192.168.206.2 24 netmask 255.255.255.0 25 vlan_raw_device eth0 26 gateway 192.168.206.1 "/etc/network/interfaces" 26L, 608C |
#~ +q436f+q6b75+q6b64+q6b72+q6b6c+q2332+q2334+q2569+q2a37+q6b31
2 proto tcp-client 3 dev tun 255.255.255.0 4 ifconfig 172.16.1.6 172.16.1.5 ~ ~ ~ ~ ~ ~ ~ ... ~ ~ ~ ~ ~ ~ ~ ~ ~ "client.conf" 7L, 138C записано |
#/etc/init.d/openvpn restart
Stopping virtual private network daemon: client. Starting virtual private network daemon: client. |
#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 --- 1 packets transmitted, 0 received, 100% packet loss, time 0ms |
#netstat -rn
Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 172.16.1.5 0.0.0.0 255.255.255.255 UH 0 0 0 tun0 192.168.15.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 192.168.105.0 172.16.1.5 255.255.255.0 UG 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 192.168.206.1 0.0.0.0 UG 0 0 0 eth0.206 |
#ping 192.168.105.1
PING 192.168.105.1 (192.168.105.1) 56(84) bytes of data. ^C --- 192.168.105.1 ping statistics --- 14 packets transmitted, 0 received, 100% packet loss, time 13103ms |
#vi client.conf
--- /tmp/l3-saved-4448.27788.26129 2009-06-03 18:35:29.000000000 +0300 +++ client.conf 2009-06-03 18:35:55.000000000 +0300 @@ -2,6 +2,7 @@ proto tcp-client dev tun ifconfig 172.16.1.6 172.16.1.5 -route 192.168.105.0 255.255.255.0 +#route 192.168.105.0 255.255.255.0 +redirect-gateway secret linux9.key remote 192.168.205.2 |
#netstat -rn
Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 192.168.205.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.15.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 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 |
#ping 192.168.105.1
PING 192.168.105.1 (192.168.105.1) 56(84) bytes of data. ^C --- 192.168.105.1 ping statistics --- 2 packets transmitted, 0 received, 100% packet loss, time 1007ms |
#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 3022ms |
#netstat -rn
Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 192.168.205.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.15.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 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 |
#ping 192.168.105.2
PING 192.168.105.2 (192.168.105.2) 56(84) bytes of data. From 10.0.35.1 icmp_seq=70 Time to live exceeded From 10.0.35.1 icmp_seq=71 Time to live exceeded From 10.0.35.1 icmp_seq=72 Time to live exceeded ^C --- 192.168.105.2 ping statistics --- 72 packets transmitted, 0 received, +3 errors, 100% packet loss, time 71001ms |
#netstat -rn
Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 192.168.15.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 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 192.168.206.1 0.0.0.0 UG 0 0 0 eth0.206 |
#netstat -rn
Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 192.168.205.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.15.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 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 |
#/etc/init.d/openvpn restart
Stopping virtual private network daemon: client. Starting virtual private network daemon: client. |
#ping 192.168.105.2
PING 192.168.105.2 (192.168.105.2) 56(84) bytes of data. ping: sendmsg: No buffer space available ping: sendmsg: No buffer space available ping: sendmsg: No buffer space available ping: sendmsg: No buffer space available ping: sendmsg: No buffer space available ^C --- 192.168.105.2 ping statistics --- 19 packets transmitted, 0 received, 100% packet loss, time 37029ms |
#netstat -rn
Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 192.168.205.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.15.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 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 |
#/etc/init.d/openvpn restart
Stopping virtual private network daemon: client. Starting virtual private network daemon: client. |
#netstat -rn
Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 192.168.205.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.15.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 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 |
#netstat -rn
Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 192.168.205.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.15.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 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 |
#netstat -rn
Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 192.168.205.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.15.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 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 |
#netstat -rn
Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 192.168.205.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.15.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 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 |
#netstat -rn
Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 192.168.205.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.15.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 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 |
#netstat -rn
Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 192.168.205.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.15.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 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 |
#netstat -rn
Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 192.168.205.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.15.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 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 |
#netstat -rn
Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 192.168.205.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.15.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 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 |
#netstat -rn
Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 192.168.205.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.15.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 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 |
#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 --- 2 packets transmitted, 0 received, 100% packet loss, time 1007ms |
#ping 172.16.1.5
PING 172.16.1.5 (172.16.1.5) 56(84) bytes of data. ^C --- 172.16.1.5 ping statistics --- 1 packets transmitted, 0 received, 100% packet loss, time 0ms |
#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.039 ms ^C --- 172.16.1.6 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.039/0.039/0.039/0.000 ms |
#ping 172.16.1.5
PING 172.16.1.5 (172.16.1.5) 56(84) bytes of data. ^C --- 172.16.1.5 ping statistics --- 7 packets transmitted, 0 received, 100% packet loss, time 6048ms |
#!ta
tail -f /var/log/daemon.log Jun 3 18:40:40 linux11 ovpn-client[23485]: SIGTERM[hard,init_instance] received, process exiting Jun 3 18:40:41 linux11 ovpn-client[23546]: OpenVPN 2.1_rc15 i486-pc-linux-gnu [SSL] [LZO2] [EPOLL] [PKCS11] built on May 1 2009 Jun 3 18:40:41 linux11 ovpn-client[23546]: NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables Jun 3 18:40:41 linux11 ovpn-client[23546]: /usr/sbin/openvpn-vulnkey -q linux9.key Jun 3 18:40:41 linux11 ovpn-client[23546]: TUN/TAP device tun0 opened Jun 3 18:40:41 linux11 ovpn-client[23546]: /sbin/ifconfig tun0 172.16.1.6 pointopoint 172.16.1.5 mtu 1500 Jun 3 18:40:41 linux11 ovpn-client[23554]: Attempting to establish TCP connection with 192.168.205.2:443 [nonblock] Jun 3 18:40:51 linux11 ovpn-client[23554]: TCP: connect to 192.168.205.2:443 failed, will try again in 5 seconds: Connection timed out Jun 3 18:41:06 linux11 ovpn-client[23554]: TCP: connect to 192.168.205.2:443 failed, will try again in 5 seconds: Connection timed out ... Jun 3 18:41:28 linux11 ovpn-client[23554]: SIGTERM[hard,init_instance] received, process exiting Jun 3 18:41:29 linux11 ovpn-client[23713]: OpenVPN 2.1_rc15 i486-pc-linux-gnu [SSL] [LZO2] [EPOLL] [PKCS11] built on May 1 2009 Jun 3 18:41:29 linux11 ovpn-client[23713]: NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables Jun 3 18:41:29 linux11 ovpn-client[23713]: /usr/sbin/openvpn-vulnkey -q linux9.key Jun 3 18:41:29 linux11 ovpn-client[23713]: TUN/TAP device tun0 opened Jun 3 18:41:29 linux11 ovpn-client[23713]: /sbin/ifconfig tun0 172.16.1.6 pointopoint 172.16.1.5 mtu 1500 Jun 3 18:41:29 linux11 ovpn-client[23721]: Attempting to establish TCP connection with 192.168.205.2:443 [nonblock] Jun 3 18:41:39 linux11 ovpn-client[23721]: TCP: connect to 192.168.205.2:443 failed, will try again in 5 seconds: Connection timed out Jun 3 18:41:54 linux11 ovpn-client[23721]: TCP: connect to 192.168.205.2:443 failed, will try again in 5 seconds: Connection timed out ^C |
#/etc/init.d/openvpn restart
Stopping virtual private network daemon: client. Starting virtual private network daemon: client. |
#ping 172.16.1.5
PING 172.16.1.5 (172.16.1.5) 56(84) bytes of data. ^C --- 172.16.1.5 ping statistics --- 2 packets transmitted, 0 received, 100% packet loss, time 999ms |
#ping 192.168.105.2
PING 192.168.105.2 (192.168.105.2) 56(84) bytes of data. ^X^C --- 192.168.105.2 ping statistics --- 2 packets transmitted, 0 received, 100% packet loss, time 1007ms |
#netstat -rn
Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 192.168.205.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.15.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 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 |
#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=1.02 ms 64 bytes from 172.16.1.5: icmp_seq=2 ttl=64 time=0.509 ms 64 bytes from 172.16.1.5: icmp_seq=3 ttl=64 time=0.316 ms 64 bytes from 172.16.1.5: icmp_seq=4 ttl=64 time=0.501 ms 64 bytes from 172.16.1.5: icmp_seq=5 ttl=64 time=0.511 ms ^C --- 172.16.1.5 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4001ms rtt min/avg/max/mdev = 0.316/0.571/1.022/0.238 ms |
#ping 192.168.105.2
PING 192.168.105.2 (192.168.105.2) 56(84) bytes of data. 64 bytes from 192.168.105.2: icmp_seq=1 ttl=63 time=1.54 ms 64 bytes from 192.168.105.2: icmp_seq=2 ttl=63 time=1.34 ms 64 bytes from 192.168.105.2: icmp_seq=3 ttl=63 time=1.38 ms 64 bytes from 192.168.105.2: icmp_seq=4 ttl=63 time=1.39 ms 64 bytes from 192.168.105.2: icmp_seq=5 ttl=63 time=1.43 ms 64 bytes from 192.168.105.2: icmp_seq=6 ttl=63 time=1.41 ms c64 bytes from 192.168.105.2: icmp_seq=7 ttl=63 time=1.41 ms 64 bytes from 192.168.105.2: icmp_seq=8 ttl=63 time=1.36 ms ^C --- 192.168.105.2 ping statistics --- 8 packets transmitted, 8 received, 0% packet loss, time 7010ms rtt min/avg/max/mdev = 1.346/1.411/1.544/0.068 ms |
#ping 192.168.105.2
PING 192.168.105.2 (192.168.105.2) 56(84) bytes of data. 64 bytes from 192.168.105.2: icmp_seq=1 ttl=63 time=5887 ms 64 bytes from 192.168.105.2: icmp_seq=2 ttl=63 time=4880 ms 64 bytes from 192.168.105.2: icmp_seq=3 ttl=63 time=3872 ms 64 bytes from 192.168.105.2: icmp_seq=4 ttl=63 time=2864 ms 64 bytes from 192.168.105.2: icmp_seq=5 ttl=63 time=1857 ms 64 bytes from 192.168.105.2: icmp_seq=6 ttl=63 time=849 ms 64 bytes from 192.168.105.2: icmp_seq=7 ttl=63 time=1.39 ms 64 bytes from 192.168.105.2: icmp_seq=8 ttl=63 time=1.28 ms 64 bytes from 192.168.105.2: icmp_seq=9 ttl=63 time=1.42 ms 64 bytes from 192.168.105.2: icmp_seq=10 ttl=63 time=1.38 ms ^C --- 192.168.105.2 ping statistics --- 10 packets transmitted, 10 received, 0% packet loss, time 9042ms rtt min/avg/max/mdev = 1.283/2021.781/5887.679/2120.999 ms, pipe 6 |
#ping 192.168.106.2
PING 192.168.106.2 (192.168.106.2) 56(84) bytes of data. 64 bytes from 192.168.106.2: icmp_seq=1 ttl=64 time=0.227 ms 64 bytes from 192.168.106.2: icmp_seq=2 ttl=64 time=0.223 ms 64 bytes from 192.168.106.2: icmp_seq=3 ttl=64 time=0.226 ms 64 bytes from 192.168.106.2: icmp_seq=4 ttl=64 time=0.223 ms ^C --- 192.168.106.2 ping statistics --- 4 packets transmitted, 4 received, 0% packet loss, time 2999ms rtt min/avg/max/mdev = 0.223/0.224/0.227/0.018 ms |
#ssh 192.168.106.2
l3-agent is already running: pid=13430; pidfile=/root/.lilalo/l3-agent.pid -bash: agent: command not found |
#netstat -rn
Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 192.168.106.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 0.0.0.0 192.168.106.1 0.0.0.0 UG 0 0 0 eth0 |
#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 --- 2 packets transmitted, 0 received, 100% packet loss, time 1007ms |
#~
Stopping virtual private network daemon: client. Starting virtual private network daemon: client. |
#~ +q436f+q6b75+q6b64+q6b72+q6b6c+q2332+q2334+q2569+q2a37+q6b31
2 proto tcp-client 3 route 192.168.105.0 255.255.255.0 4 ifconfig 172.16.1.6 172.16.1.5 5 #route 192.168.105.0 255.255.255.0 ~ ~ ~ ~ ~ ~ ... ~ ~ ~ ~ ~ ~ ~ ~ ~ "client.conf" 8L, 155C записано |
#echo 1>/proc/sys/
crypto/ debug/ dev/ fs/ kernel/ net/ vm/ |
#echo 1>/proc/sys/
crypto/ debug/ dev/ fs/ kernel/ net/ vm/ |
#echo 1>/proc/sys/net/ipv4/ip
ip_default_ttl ip_forward ipfrag_low_thresh ipfrag_secret_interval ip_local_port_range ip_no_pmtu_disc ip_dynaddr ipfrag_high_thresh ipfrag_max_dist ipfrag_time ip_nonlocal_bind |
#echo 1>/proc/sys/net/ipv4/ip_
ip_default_ttl ip_dynaddr ip_forward ip_local_port_range ip_nonlocal_bind ip_no_pmtu_disc |
#echo 1>/proc/sys/net/ipv4/ip_forward
bash: echo: ошибка записи: Недопустимый аргумент |
#/etc/init.d/openvpn restart
Stopping virtual private network daemon: client. Starting virtual private network daemon: client. |
#ping 192.168.105.1
PING 192.168.105.1 (192.168.105.1) 56(84) bytes of data. ^C --- 192.168.105.1 ping statistics --- 1 packets transmitted, 0 received, 100% packet loss, time 0ms |
#ping 192.168.106.1
PING 192.168.106.1 (192.168.106.1) 56(84) bytes of data. 64 bytes from 192.168.106.1: icmp_seq=1 ttl=64 time=0.221 ms ^C --- 192.168.106.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.221/0.221/0.221/0.000 ms |
#ping 192.168.206.1
PING 192.168.206.1 (192.168.206.1) 56(84) bytes of data. ^C --- 192.168.206.1 ping statistics --- 2 packets transmitted, 0 received, 100% packet loss, time 1007ms |
#ping 192.168.206.2
PING 192.168.206.2 (192.168.206.2) 56(84) bytes of data. 64 bytes from 192.168.206.2: icmp_seq=1 ttl=64 time=0.225 ms ^C --- 192.168.206.2 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.225/0.225/0.225/0.000 ms |
#ping 192.168.206.1
PING 192.168.206.1 (192.168.206.1) 56(84) bytes of data. ^C --- 192.168.206.1 ping statistics --- 61 packets transmitted, 0 received, 100% packet loss, time 60479ms |
#echo 1> /proc/sys/net/ipv4/ip_forward
bash: echo: ошибка записи: Недопустимый аргумент |
#echo 1 > /proc/sys/net/ipv4/ip_forward
|
#ping 192.168.206.1
PING 192.168.206.1 (192.168.206.1) 56(84) bytes of data. ^C --- 192.168.206.1 ping statistics --- 4 packets transmitted, 0 received, 100% packet loss, time 3024ms |
#ping 192.168.105.2
PING 192.168.105.2 (192.168.105.2) 56(84) bytes of data. 64 bytes from 192.168.105.2: icmp_seq=1 ttl=62 time=1.67 ms ^C --- 192.168.105.2 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 1.677/1.677/1.677/0.000 ms |
#kill %
[1]+ Завершено all date (wd: ~) (wd now: /etc/openvpn) |
#kill %
bash: kill: %: не такой задачи |
#kill %
bash: kill: %: не такой задачи |
#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=1 ttl=64 time=3.56 ms ^C --- 192.168.15.254 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 3.567/3.567/3.567/0.000 ms |
#ssh 192.168.15.254
Connection to 192.168.15.254 closed by remote host. |
#netstat -rn
Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 192.168.205.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.15.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 192.168.105.0 172.16.1.5 255.255.255.0 UG 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 |
#vi /etc/network/interfaces
--- /tmp/l3-saved-4448.31482.21442 2009-06-03 19:05:05.000000000 +0300 +++ /etc/network/interfaces 2009-06-03 19:07:16.000000000 +0300 @@ -4,23 +4,30 @@ auto lo eth0 iface lo inet loopback + +#iface eth0 inet static +# address 192.168.15.11 +# netmask 255.255.255.0 + +iface lo inet loopback iface eth0 inet static - address 192.168.15.11 + address 192.168.106.2 netmask 255.255.255.0 - + gateway 192.168.106.1 +# # network 192.168.106.0 # broadcast 192.168.106.255 # gateway 192.168.15.254 -auto eth0.106 -iface eth0.106 inet static - address 192.168.106.1 - netmask 255.255.255.0 - vlan_raw_device eth0 +#auto eth0.106 +#iface eth0.106 inet static +# address 192.168.106.1 +# netmask 255.255.255.0 +# vlan_raw_device eth0 -auto eth0.206 -iface eth0.206 inet static - address 192.168.206.2 - netmask 255.255.255.0 - vlan_raw_device eth0 - gateway 192.168.206.1 +#auto eth0.206 +#iface eth0.206 inet static +# address 192.168.206.2 +# netmask 255.255.255.0 +# vlan_raw_device eth0 +# gateway 192.168.206.1 |
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:1b:fc:7d:bc:f5 inet addr:192.168.106.2 Bcast:192.168.106.255 Mask:255.255.255.0 inet6 addr: fe80::21b:fcff:fe7d:bcf5/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:74475 errors:0 dropped:0 overruns:0 frame:0 TX packets:65750 errors:0 dropped:0 overruns:0 carrier:2 collisions:0 txqueuelen:1000 RX bytes:30119375 (28.7 MiB) TX bytes:8603650 (8.2 MiB) eth0.106 Link encap:Ethernet HWaddr 00:1b:fc:7d:bc:f5 inet addr:192.168.106.1 Bcast:192.168.106.255 Mask:255.255.255.0 ... TX packets:1231 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:72720 (71.0 KiB) TX bytes:72720 (71.0 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.6 P-t-P:172.16.1.5 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:68 overruns:0 carrier:0 collisions:0 txqueuelen:100 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) |
#ifdown eth0.106
ifdown: interface eth0.106 not configured |
#ifconfig eth0.106 down
|
#ifconfig eth0.206 down
|
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:1b:fc:7d:bc:f5 inet addr:192.168.106.2 Bcast:192.168.106.255 Mask:255.255.255.0 inet6 addr: fe80::21b:fcff:fe7d:bcf5/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:74478 errors:0 dropped:0 overruns:0 frame:0 TX packets:65762 errors:0 dropped:0 overruns:0 carrier:2 collisions:0 txqueuelen:1000 RX bytes:30119936 (28.7 MiB) TX bytes:8604370 (8.2 MiB) lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 ... TX packets:1242 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:73629 (71.9 KiB) TX bytes:73629 (71.9 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.6 P-t-P:172.16.1.5 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:181 overruns:0 carrier:0 collisions:0 txqueuelen:100 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) |
#ping 192.168.106.1
PING 192.168.106.1 (192.168.106.1) 56(84) bytes of data. 64 bytes from 192.168.106.1: icmp_seq=1 ttl=64 time=0.030 ms ^C --- 192.168.106.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.030/0.030/0.030/0.000 ms |
Время первой команды журнала | 18:27:10 2009- 6- 3 | |||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 19:11:44 2009- 6- 3 | |||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 30.69 | |||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.00 | |||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 0.74 | |||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 2.27 | |||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду w. В поле WHAT, соответствующем текущему терминалу, должна быть указана программа script.
Команды, при наборе которых были допущены синтаксические ошибки, выводятся перечёркнутым текстом:
$ l s-l bash: l: command not found |
Если код завершения команды равен нулю, команда была выполнена без ошибок. Команды, код завершения которых отличен от нуля, выделяются цветом.
$ test 5 -lt 4 |
Команды, ход выполнения которых был прерван пользователем, выделяются цветом.
$ 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 |
Команды, выполненные с привилегиями суперпользователя, выделяются слева красной чертой.
# id uid=0(root) gid=0(root) Gruppen=0(root) |
Изменения, внесённые в текстовый файл с помощью редактора, запоминаются и показываются в журнале в формате ed. Строки, начинающиеся символом "<", удалены, а строки, начинающиеся символом ">" -- добавлены.
$ vi ~/.bashrc
|
Для того чтобы изменить файл в соответствии с показанными в диффшоте изменениями, можно воспользоваться командой patch. Нужно скопировать изменения, запустить программу patch, указав в качестве её аргумента файл, к которому применяются изменения, и всавить скопированный текст:
$ patch ~/.bashrc |
Для того чтобы получить краткую справочную информацию о команде, нужно подвести к ней мышь. Во всплывающей подсказке появится краткое описание команды.
Если справочная информация о команде есть, команда выделяется голубым фоном, например: vi. Если справочная информация отсутствует, команда выделяется розовым фоном, например: notepad.exe. Справочная информация может отсутствовать в том случае, если (1) команда введена неверно; (2) если распознавание команды LiLaLo выполнено неверно; (3) если информация о команде неизвестна LiLaLo. Последнее возможно для редких команд.
Большие, в особенности многострочные, всплывающие подсказки лучше всего показываются браузерами KDE Konqueror, Apple Safari и Microsoft Internet Explorer. В браузерах Mozilla и Firefox они отображаются не полностью, а вместо перевода строки выводится специальный символ.
Время ввода команды, показанное в журнале, соответствует времени начала ввода командной строки, которое равно тому моменту, когда на терминале появилось приглашение интерпретатора
Имя терминала, на котором была введена команда, показано в специальном блоке. Этот блок показывается только в том случае, если терминал текущей команды отличается от терминала предыдущей.
Вывод не интересующих вас в настоящий момент элементов журнала, таких как время, имя терминала и других, можно отключить. Для этого нужно воспользоваться формой управления журналом вверху страницы.
Небольшие комментарии к командам можно вставлять прямо из командной строки. Комментарий вводится прямо в командную строку, после символов #^ или #v. Символы ^ и v показывают направление выбора команды, к которой относится комментарий: ^ - к предыдущей, v - к следующей. Например, если в командной строке было введено:
$ whoami
user
$ #^ Интересно, кто я?в журнале это будет выглядеть так:
$ whoami
user
Интересно, кто я? |
Если комментарий содержит несколько строк, его можно вставить в журнал следующим образом:
$ whoami
user
$ cat > /dev/null #^ Интересно, кто я?
Программа whoami выводит имя пользователя, под которым мы зарегистрировались в системе. - Она не может ответить на вопрос о нашем назначении в этом мире.В журнале это будет выглядеть так:
$ whoami user
|
Комментарии, не относящиеся непосредственно ни к какой из команд, добавляются точно таким же способом, только вместо симолов #^ или #v нужно использовать символы #=
1 2 3 4Группы команд, выполненных на разных терминалах, разделяются специальной линией. Под этой линией в правом углу показано имя терминала, на котором выполнялись команды. Для того чтобы посмотреть команды только одного сенса, нужно щёкнуть по этому названию.
LiLaLo (L3) расшифровывается как Live Lab Log.
Программа разработана для повышения эффективности обучения Unix/Linux-системам.
(c) Игорь Чубин, 2004-2008