/l3/users/eb/2009/linux7/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 |
|
#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=2.67 ms 64 bytes from 10.0.35.100: icmp_seq=2 ttl=62 time=0.226 ms ^C --- 10.0.35.100 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1001ms rtt min/avg/max/mdev = 0.226/1.450/2.674/1.224 ms |
#openvpn --genkey --secret linux7.key
|
#openvpn --genkey --secret linux7.key
|
#ls -l
итого 8 -rw------- 1 root root 636 Июн 3 17:56 linux7.key -rwxr-xr-x 1 root root 1352 Май 1 15:25 update-resolv-conf |
#ls -l
итого 8 -rw------- 1 root root 636 Июн 3 17:56 linux7.key -rwxr-xr-x 1 root root 1352 Май 1 15:25 update-resolv-conf |
#vim server.conf
--- /dev/null 2009-06-03 09:30:42.504939627 +0300 +++ server.conf 2009-06-03 18:01:13.000000000 +0300 @@ -0,0 +1,6 @@ +port 443 +proto tcp-server +dev tun +ifconfig 192.168.204.2 192.168.203.2 +secret linux7.key + |
#ls -l
итого 12 -rw------- 1 root root 636 Июн 3 17:56 linux7.key -rw-r--r-- 1 root root 90 Июн 3 18:01 server.conf -rwxr-xr-x 1 root root 1352 Май 1 15:25 update-resolv-conf |
#ls -l
итого 12 -rw------- 1 root root 636 Июн 3 17:56 linux7.key -rw-r--r-- 1 root root 90 Июн 3 18:01 server.conf -rwxr-xr-x 1 root root 1352 Май 1 15:25 update-resolv-conf |
#~ +q436f+q6b75+q6b64+q6b72+q6b6c+q2332+q2334+q2569+q2a37+q6b31
rsync version 3.0.5 protocol version 30 Copyright (C) 1996-2008 by Andrew Tridgell, Wayne Davison, and others. Web site: http://rsync.samba.org/ Capabilities: 64-bit files, 64-bit inums, 32-bit timestamps, 64-bit long ints, socketpairs, hardlinks, symlinks, IPv6, batchfiles, inplace, append, ACLs, xattrs, iconv, symtimes rsync comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under certain conditions. See the GNU General Public Licence for details. ... --read-batch=FILE read a batched update from FILE --protocol=NUM force an older protocol version to be used --iconv=CONVERT_SPEC request charset conversion of filenames -4, --ipv4 prefer IPv4 -6, --ipv6 prefer IPv6 --version print version number (-h) --help show this help (-h works with no other options) Use "rsync --daemon --help" to see the daemon-mode command-line options. Please see the rsync(1) and rsyncd.conf(5) man pages for full documentation. See http://rsync.samba.org/ for updates, bug reports, and answers |
#~ +q436f+q6b75+q6b64+q6b72+q6b6c+q2332+q2334+q2569+q2a37+q6b31
rsync version 3.0.5 protocol version 30 Copyright (C) 1996-2008 by Andrew Tridgell, Wayne Davison, and others. Web site: http://rsync.samba.org/ Capabilities: 64-bit files, 64-bit inums, 32-bit timestamps, 64-bit long ints, socketpairs, hardlinks, symlinks, IPv6, batchfiles, inplace, append, ACLs, xattrs, iconv, symtimes rsync comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under certain conditions. See the GNU General Public Licence for details. ... --read-batch=FILE read a batched update from FILE --protocol=NUM force an older protocol version to be used --iconv=CONVERT_SPEC request charset conversion of filenames -4, --ipv4 prefer IPv4 -6, --ipv6 prefer IPv6 --version print version number (-h) --help show this help (-h works with no other options) Use "rsync --daemon --help" to see the daemon-mode command-line options. Please see the rsync(1) and rsyncd.conf(5) man pages for full documentation. See http://rsync.samba.org/ for updates, bug reports, and answers |
#vim server.conf
--- /tmp/l3-saved-3775.27590.7145 2009-06-03 18:04:25.000000000 +0300 +++ server.conf 2009-06-03 18:08:46.000000000 +0300 @@ -1,6 +1,6 @@ port 443 proto tcp-server dev tun -ifconfig 192.168.204.2 192.168.203.2 +ifconfig 172.16.3.1 172.16.3.2 secret linux7.key |
#rsync -au ./linux7.key 192.168.203.2:/tmp
The authenticity of host '192.168.203.2 (192.168.203.2)' can't be established. RSA key fingerprint is 34:6c:c2:da:38:7c:d7:17:e9:cd:17:8d:e7:cf:f1:a6. +--[ RSA 2048]----+ | | | . . . ..| | o = o ..o| | . + + o . + o.| | = o S . o o.o| | o . . o+| | =| | o | | E | +-----------------+ Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '192.168.203.2' (RSA) to the list of known hosts. |
#rsync -au ./linux7.key 192.168.203.2:/tmp
The authenticity of host '192.168.203.2 (192.168.203.2)' can't be established. RSA key fingerprint is 34:6c:c2:da:38:7c:d7:17:e9:cd:17:8d:e7:cf:f1:a6. +--[ RSA 2048]----+ | | | . . . ..| | o = o ..o| | . + + o . + o.| | = o S . o o.o| | o . . o+| | =| | o | | E | +-----------------+ Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '192.168.203.2' (RSA) to the list of known hosts. |
#rsync -au --progress ./linux7.key 192.168.203.2:/tmp
Host key fingerprint is 34:6c:c2:da:38:7c:d7:17:e9:cd:17:8d:e7:cf:f1:a6 +--[ RSA 2048]----+ | | | . . . ..| | o = o ..o| | . + + o . + o.| | = o S . o o.o| | o . . o+| | =| | o | | E | +-----------------+ sending incremental file list sent 35 bytes received 12 bytes 94.00 bytes/sec total size is 636 speedup is 13.53 |
#rsync -au --progress ./linux7.key 192.168.203.2:/tmp
Host key fingerprint is 34:6c:c2:da:38:7c:d7:17:e9:cd:17:8d:e7:cf:f1:a6 +--[ RSA 2048]----+ | | | . . . ..| | o = o ..o| | . + + o . + o.| | = o S . o o.o| | o . . o+| | =| | o | | E | +-----------------+ sending incremental file list sent 35 bytes received 12 bytes 94.00 bytes/sec total size is 636 speedup is 13.53 |
#ls -l /etc/init.d/
итого 336 -rwxr-xr-x 1 root root 1301 Мар 9 2008 anacron -rwxr-xr-x 1 root root 946 Окт 20 2008 atd -rwxr-xr-x 1 root root 4021 Май 14 22:50 aumix -rwxr-xr-x 1 root root 2155 Янв 5 2008 bootlogd -rwxr-xr-x 1 root root 1988 Июл 16 2008 bootmisc.sh -rwxr-xr-x 1 root root 3004 Авг 12 2008 checkfs.sh -rwxr-xr-x 1 root root 9831 Дек 30 2007 checkroot.sh -rwxr-xr-x 1 root root 682 Авг 17 2008 console-cyrillic -rwxr-xr-x 1 root root 7651 Фев 20 20:00 console-screen.kbd.sh ... -rwxr-xr-x 1 root root 1096 Янв 2 2008 stop-bootlogd-single -rwxr-xr-x 1 root root 515 Мар 28 23:16 sudo -rwxr-xr-x 1 root root 2809 Ноя 23 2008 syslog-ng -rwxr-xr-x 1 root root 7345 Апр 18 04:44 udev -rwxr-xr-x 1 root root 1001 Июл 11 2008 udev-mtab -rwxr-xr-x 1 root root 3175 Мар 2 2008 umountfs -rwxr-xr-x 1 root root 2140 Дек 30 2007 umountnfs.sh -rwxr-xr-x 1 root root 1456 Май 29 2008 umountroot -rwxr-xr-x 1 root root 1815 Сен 13 2006 urandom -rwxr-xr-x 1 root root 1777 Фев 2 14:29 x11-common |
#ls -l /etc/init.d/
итого 336 -rwxr-xr-x 1 root root 1301 Мар 9 2008 anacron -rwxr-xr-x 1 root root 946 Окт 20 2008 atd -rwxr-xr-x 1 root root 4021 Май 14 22:50 aumix -rwxr-xr-x 1 root root 2155 Янв 5 2008 bootlogd -rwxr-xr-x 1 root root 1988 Июл 16 2008 bootmisc.sh -rwxr-xr-x 1 root root 3004 Авг 12 2008 checkfs.sh -rwxr-xr-x 1 root root 9831 Дек 30 2007 checkroot.sh -rwxr-xr-x 1 root root 682 Авг 17 2008 console-cyrillic -rwxr-xr-x 1 root root 7651 Фев 20 20:00 console-screen.kbd.sh ... -rwxr-xr-x 1 root root 1096 Янв 2 2008 stop-bootlogd-single -rwxr-xr-x 1 root root 515 Мар 28 23:16 sudo -rwxr-xr-x 1 root root 2809 Ноя 23 2008 syslog-ng -rwxr-xr-x 1 root root 7345 Апр 18 04:44 udev -rwxr-xr-x 1 root root 1001 Июл 11 2008 udev-mtab -rwxr-xr-x 1 root root 3175 Мар 2 2008 umountfs -rwxr-xr-x 1 root root 2140 Дек 30 2007 umountnfs.sh -rwxr-xr-x 1 root root 1456 Май 29 2008 umountroot -rwxr-xr-x 1 root root 1815 Сен 13 2006 urandom -rwxr-xr-x 1 root root 1777 Фев 2 14:29 x11-common |
#/etc/init.d/openvpn restart
Stopping virtual private network daemon:. Starting virtual private network daemon: server. |
#/etc/init.d/openvpn restart
Stopping virtual private network daemon:. Starting virtual private network daemon: server. |
#tail -f /var/log/messages
Jun 3 12:37:00 linux7 -- MARK -- Jun 3 13:00:15 linux7 -- MARK -- Jun 3 13:47:48 linux7 -- MARK -- Jun 3 14:07:48 linux7 -- MARK -- Jun 3 17:11:47 linux7 kernel: [27667.498109] 802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com> Jun 3 17:11:47 linux7 kernel: [27667.498113] All bugs added by David S. Miller <davem@redhat.com> Jun 3 14:48:55 linux7 -- MARK -- Jun 3 18:12:51 linux7 kernel: [31331.160810] tun: Universal TUN/TAP device driver, 1.6 Jun 3 18:12:51 linux7 kernel: [31331.160814] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com> Jun 3 18:12:51 linux7 kernel: [31331.161859] tun0: Disabled Privacy Extensions ^C |
#tail -f /var/log/messages
Jun 3 12:37:00 linux7 -- MARK -- Jun 3 13:00:15 linux7 -- MARK -- Jun 3 13:47:48 linux7 -- MARK -- Jun 3 14:07:48 linux7 -- MARK -- Jun 3 17:11:47 linux7 kernel: [27667.498109] 802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com> Jun 3 17:11:47 linux7 kernel: [27667.498113] All bugs added by David S. Miller <davem@redhat.com> Jun 3 14:48:55 linux7 -- MARK -- Jun 3 18:12:51 linux7 kernel: [31331.160810] tun: Universal TUN/TAP device driver, 1.6 Jun 3 18:12:51 linux7 kernel: [31331.160814] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com> Jun 3 18:12:51 linux7 kernel: [31331.161859] tun0: Disabled Privacy Extensions ^C |
#tail -f /var/log/messages
Jun 3 12:37:00 linux7 -- MARK -- Jun 3 13:00:15 linux7 -- MARK -- Jun 3 13:47:48 linux7 -- MARK -- Jun 3 14:07:48 linux7 -- MARK -- Jun 3 17:11:47 linux7 kernel: [27667.498109] 802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com> Jun 3 17:11:47 linux7 kernel: [27667.498113] All bugs added by David S. Miller <davem@redhat.com> Jun 3 14:48:55 linux7 -- MARK -- Jun 3 18:12:51 linux7 kernel: [31331.160810] tun: Universal TUN/TAP device driver, 1.6 Jun 3 18:12:51 linux7 kernel: [31331.160814] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com> Jun 3 18:12:51 linux7 kernel: [31331.161859] tun0: Disabled Privacy Extensions ^C |
#tail -f /var/log/messages
Jun 3 12:37:00 linux7 -- MARK -- Jun 3 13:00:15 linux7 -- MARK -- Jun 3 13:47:48 linux7 -- MARK -- Jun 3 14:07:48 linux7 -- MARK -- Jun 3 17:11:47 linux7 kernel: [27667.498109] 802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com> Jun 3 17:11:47 linux7 kernel: [27667.498113] All bugs added by David S. Miller <davem@redhat.com> Jun 3 14:48:55 linux7 -- MARK -- Jun 3 18:12:51 linux7 kernel: [31331.160810] tun: Universal TUN/TAP device driver, 1.6 Jun 3 18:12:51 linux7 kernel: [31331.160814] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com> Jun 3 18:12:51 linux7 kernel: [31331.161859] tun0: Disabled Privacy Extensions ^C |
#tail -f /var/log/syslog
Jun 3 14:48:55 linux7 -- MARK -- Jun 3 18:12:51 linux7 ovpn-server[29584]: OpenVPN 2.1_rc15 i486-pc-linux-gnu [SSL] [LZO2] [EPOLL] [PKCS11] built on May 1 2009 Jun 3 18:12:51 linux7 ovpn-server[29584]: NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables Jun 3 18:12:51 linux7 ovpn-server[29584]: /usr/sbin/openvpn-vulnkey -q linux7.key Jun 3 18:12:51 linux7 kernel: [31331.160810] tun: Universal TUN/TAP device driver, 1.6 Jun 3 18:12:51 linux7 kernel: [31331.160814] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com> Jun 3 18:12:51 linux7 kernel: [31331.161859] tun0: Disabled Privacy Extensions Jun 3 18:12:51 linux7 ovpn-server[29584]: TUN/TAP device tun0 opened Jun 3 18:12:51 linux7 ovpn-server[29584]: /sbin/ifconfig tun0 172.16.3.1 pointopoint 172.16.3.2 mtu 1500 Jun 3 18:12:51 linux7 ovpn-server[29595]: Listening for incoming TCP connection on [undef]:443 ^C |
#tail -f /var/log/syslog
Jun 3 14:48:55 linux7 -- MARK -- Jun 3 18:12:51 linux7 ovpn-server[29584]: OpenVPN 2.1_rc15 i486-pc-linux-gnu [SSL] [LZO2] [EPOLL] [PKCS11] built on May 1 2009 Jun 3 18:12:51 linux7 ovpn-server[29584]: NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables Jun 3 18:12:51 linux7 ovpn-server[29584]: /usr/sbin/openvpn-vulnkey -q linux7.key Jun 3 18:12:51 linux7 kernel: [31331.160810] tun: Universal TUN/TAP device driver, 1.6 Jun 3 18:12:51 linux7 kernel: [31331.160814] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com> Jun 3 18:12:51 linux7 kernel: [31331.161859] tun0: Disabled Privacy Extensions Jun 3 18:12:51 linux7 ovpn-server[29584]: TUN/TAP device tun0 opened Jun 3 18:12:51 linux7 ovpn-server[29584]: /sbin/ifconfig tun0 172.16.3.1 pointopoint 172.16.3.2 mtu 1500 Jun 3 18:12:51 linux7 ovpn-server[29595]: Listening for incoming TCP connection on [undef]:443 ^C |
#ip ro
172.16.3.2 dev tun0 proto kernel scope link src 172.16.3.1 192.168.15.0/24 dev eth0 proto kernel scope link src 192.168.15.7 192.168.104.0/24 dev eth0.104 proto kernel scope link src 192.168.104.7 192.168.204.0/24 dev eth0.204 proto kernel scope link src 192.168.204.2 default via 192.168.204.1 dev eth0.204 |
#ip ro
172.16.3.2 dev tun0 proto kernel scope link src 172.16.3.1 192.168.15.0/24 dev eth0 proto kernel scope link src 192.168.15.7 192.168.104.0/24 dev eth0.104 proto kernel scope link src 192.168.104.7 192.168.204.0/24 dev eth0.204 proto kernel scope link src 192.168.204.2 default via 192.168.204.1 dev eth0.204 |
#tail -f /var/log/syslog
Jun 3 14:48:55 linux7 -- MARK -- Jun 3 18:12:51 linux7 ovpn-server[29584]: OpenVPN 2.1_rc15 i486-pc-linux-gnu [SSL] [LZO2] [EPOLL] [PKCS11] built on May 1 2009 Jun 3 18:12:51 linux7 ovpn-server[29584]: NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables Jun 3 18:12:51 linux7 ovpn-server[29584]: /usr/sbin/openvpn-vulnkey -q linux7.key Jun 3 18:12:51 linux7 kernel: [31331.160810] tun: Universal TUN/TAP device driver, 1.6 Jun 3 18:12:51 linux7 kernel: [31331.160814] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com> Jun 3 18:12:51 linux7 kernel: [31331.161859] tun0: Disabled Privacy Extensions Jun 3 18:12:51 linux7 ovpn-server[29584]: TUN/TAP device tun0 opened Jun 3 18:12:51 linux7 ovpn-server[29584]: /sbin/ifconfig tun0 172.16.3.1 pointopoint 172.16.3.2 mtu 1500 Jun 3 18:12:51 linux7 ovpn-server[29595]: Listening for incoming TCP connection on [undef]:443 Jun 3 18:15:27 linux7 ovpn-server[29595]: TCP connection established with 192.168.203.2:55720 Jun 3 18:15:27 linux7 ovpn-server[29595]: TCPv4_SERVER link local (bound): [undef]:443 Jun 3 18:15:27 linux7 ovpn-server[29595]: TCPv4_SERVER link remote: 192.168.203.2:55720 ^C |
#tail -f /var/log/syslog
Jun 3 14:48:55 linux7 -- MARK -- Jun 3 18:12:51 linux7 ovpn-server[29584]: OpenVPN 2.1_rc15 i486-pc-linux-gnu [SSL] [LZO2] [EPOLL] [PKCS11] built on May 1 2009 Jun 3 18:12:51 linux7 ovpn-server[29584]: NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables Jun 3 18:12:51 linux7 ovpn-server[29584]: /usr/sbin/openvpn-vulnkey -q linux7.key Jun 3 18:12:51 linux7 kernel: [31331.160810] tun: Universal TUN/TAP device driver, 1.6 Jun 3 18:12:51 linux7 kernel: [31331.160814] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com> Jun 3 18:12:51 linux7 kernel: [31331.161859] tun0: Disabled Privacy Extensions Jun 3 18:12:51 linux7 ovpn-server[29584]: TUN/TAP device tun0 opened Jun 3 18:12:51 linux7 ovpn-server[29584]: /sbin/ifconfig tun0 172.16.3.1 pointopoint 172.16.3.2 mtu 1500 Jun 3 18:12:51 linux7 ovpn-server[29595]: Listening for incoming TCP connection on [undef]:443 Jun 3 18:15:27 linux7 ovpn-server[29595]: TCP connection established with 192.168.203.2:55720 Jun 3 18:15:27 linux7 ovpn-server[29595]: TCPv4_SERVER link local (bound): [undef]:443 Jun 3 18:15:27 linux7 ovpn-server[29595]: TCPv4_SERVER link remote: 192.168.203.2:55720 ^C |
#ping 172.16.3.2
PING 172.16.3.2 (172.16.3.2) 56(84) bytes of data. 64 bytes from 172.16.3.2: icmp_seq=1 ttl=64 time=0.356 ms 64 bytes from 172.16.3.2: icmp_seq=2 ttl=64 time=0.276 ms 64 bytes from 172.16.3.2: icmp_seq=3 ttl=64 time=0.281 ms ^[[A64 bytes from 172.16.3.2: icmp_seq=4 ttl=64 time=0.275 ms ^C --- 172.16.3.2 ping statistics --- 4 packets transmitted, 4 received, 0% packet loss, time 3000ms rtt min/avg/max/mdev = 0.275/0.297/0.356/0.034 ms |
#ping 172.16.3.2
PING 172.16.3.2 (172.16.3.2) 56(84) bytes of data. 64 bytes from 172.16.3.2: icmp_seq=1 ttl=64 time=0.356 ms 64 bytes from 172.16.3.2: icmp_seq=2 ttl=64 time=0.276 ms 64 bytes from 172.16.3.2: icmp_seq=3 ttl=64 time=0.281 ms ^[[A64 bytes from 172.16.3.2: icmp_seq=4 ttl=64 time=0.275 ms ^C --- 172.16.3.2 ping statistics --- 4 packets transmitted, 4 received, 0% packet loss, time 3000ms rtt min/avg/max/mdev = 0.275/0.297/0.356/0.034 ms |
#ip ro
172.16.3.2 dev tun0 proto kernel scope link src 172.16.3.1 192.168.15.0/24 dev eth0 proto kernel scope link src 192.168.15.7 192.168.104.0/24 dev eth0.104 proto kernel scope link src 192.168.104.7 192.168.204.0/24 dev eth0.204 proto kernel scope link src 192.168.204.2 default via 192.168.204.1 dev eth0.204 |
#ip ro
172.16.3.2 dev tun0 proto kernel scope link src 172.16.3.1 192.168.15.0/24 dev eth0 proto kernel scope link src 192.168.15.7 192.168.104.0/24 dev eth0.104 proto kernel scope link src 192.168.104.7 192.168.204.0/24 dev eth0.204 proto kernel scope link src 192.168.204.2 default via 192.168.204.1 dev eth0.204 |
#ip ro change default via dev tun0
Error: an inet address is expected rather than "dev". |
#ip ro change default via dev tun0
Error: an inet address is expected rather than "dev". |
#ip ro change default via tun0
Error: an inet address is expected rather than "tun0". |
#ip ro change default via tun0
Error: an inet address is expected rather than "tun0". |
#ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:1b:fc:7d:b5:98 inet addr:192.168.15.7 Bcast:192.168.15.255 Mask:255.255.255.0 inet6 addr: fe80::21b:fcff:fe7d:b598/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:52658 errors:0 dropped:0 overruns:0 frame:0 TX packets:50235 errors:0 dropped:0 overruns:0 carrier:2 collisions:0 txqueuelen:1000 RX bytes:28038611 (26.7 MiB) TX bytes:5991280 (5.7 MiB) eth0.104 Link encap:Ethernet HWaddr 00:1b:fc:7d:b5:98 inet addr:192.168.104.7 Bcast:192.168.104.255 Mask:255.255.255.0 ... TX packets:1862 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:8034100 (7.6 MiB) TX bytes:8034100 (7.6 MiB) 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.3.1 P-t-P:172.16.3.2 Mask:255.255.255.255 UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1 RX packets:6 errors:0 dropped:0 overruns:0 frame:0 TX packets:6 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:100 RX bytes:504 (504.0 B) TX bytes:504 (504.0 B) |
#ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:1b:fc:7d:b5:98 inet addr:192.168.15.7 Bcast:192.168.15.255 Mask:255.255.255.0 inet6 addr: fe80::21b:fcff:fe7d:b598/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:52658 errors:0 dropped:0 overruns:0 frame:0 TX packets:50235 errors:0 dropped:0 overruns:0 carrier:2 collisions:0 txqueuelen:1000 RX bytes:28038611 (26.7 MiB) TX bytes:5991280 (5.7 MiB) eth0.104 Link encap:Ethernet HWaddr 00:1b:fc:7d:b5:98 inet addr:192.168.104.7 Bcast:192.168.104.255 Mask:255.255.255.0 ... TX packets:1862 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:8034100 (7.6 MiB) TX bytes:8034100 (7.6 MiB) 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.3.1 P-t-P:172.16.3.2 Mask:255.255.255.255 UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1 RX packets:6 errors:0 dropped:0 overruns:0 frame:0 TX packets:6 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:100 RX bytes:504 (504.0 B) TX bytes:504 (504.0 B) |
#ip ro
172.16.3.2 dev tun0 proto kernel scope link src 172.16.3.1 192.168.15.0/24 dev eth0 proto kernel scope link src 192.168.15.7 192.168.104.0/24 dev eth0.104 proto kernel scope link src 192.168.104.7 192.168.204.0/24 dev eth0.204 proto kernel scope link src 192.168.204.2 default via 172.16.3.2 dev tun0 |
#ip ro
172.16.3.2 dev tun0 proto kernel scope link src 172.16.3.1 192.168.15.0/24 dev eth0 proto kernel scope link src 192.168.15.7 192.168.104.0/24 dev eth0.104 proto kernel scope link src 192.168.104.7 192.168.204.0/24 dev eth0.204 proto kernel scope link src 192.168.204.2 default via 172.16.3.2 dev tun0 |
#ping 192.168.104.2
PING 192.168.104.2 (192.168.104.2) 56(84) bytes of data. From 192.168.104.7 icmp_seq=1 Destination Host Unreachable From 192.168.104.7 icmp_seq=2 Destination Host Unreachable From 192.168.104.7 icmp_seq=3 Destination Host Unreachable From 192.168.104.7 icmp_seq=4 Destination Host Unreachable From 192.168.104.7 icmp_seq=5 Destination Host Unreachable From 192.168.104.7 icmp_seq=6 Destination Host Unreachable ^C --- 192.168.104.2 ping statistics --- 8 packets transmitted, 0 received, +6 errors, 100% packet loss, time 7030ms , pipe 3 |
#ping 192.168.104.2
PING 192.168.104.2 (192.168.104.2) 56(84) bytes of data. From 192.168.104.7 icmp_seq=1 Destination Host Unreachable From 192.168.104.7 icmp_seq=2 Destination Host Unreachable From 192.168.104.7 icmp_seq=3 Destination Host Unreachable From 192.168.104.7 icmp_seq=4 Destination Host Unreachable From 192.168.104.7 icmp_seq=5 Destination Host Unreachable From 192.168.104.7 icmp_seq=6 Destination Host Unreachable ^C --- 192.168.104.2 ping statistics --- 8 packets transmitted, 0 received, +6 errors, 100% packet loss, time 7030ms , pipe 3 |
#ping 192.168.104.1
PING 192.168.104.1 (192.168.104.1) 56(84) bytes of data. ^C --- 192.168.104.1 ping statistics --- 3 packets transmitted, 0 received, 100% packet loss, time 2017ms |
#ping 192.168.104.1
PING 192.168.104.1 (192.168.104.1) 56(84) bytes of data. ^C --- 192.168.104.1 ping statistics --- 3 packets transmitted, 0 received, 100% packet loss, time 2017ms |
#ping 192.168.103.2
PING 192.168.103.2 (192.168.103.2) 56(84) bytes of data. ^C --- 192.168.103.2 ping statistics --- 6 packets transmitted, 0 received, 100% packet loss, time 4999ms |
#ping 192.168.103.2
PING 192.168.103.2 (192.168.103.2) 56(84) bytes of data. ^C --- 192.168.103.2 ping statistics --- 6 packets transmitted, 0 received, 100% packet loss, time 4999ms |
#ping 192.168.103.1
PING 192.168.103.1 (192.168.103.1) 56(84) bytes of data. ^C --- 192.168.103.1 ping statistics --- 4 packets transmitted, 0 received, 100% packet loss, time 3022ms |
#ping 192.168.103.1
PING 192.168.103.1 (192.168.103.1) 56(84) bytes of data. ^C --- 192.168.103.1 ping statistics --- 4 packets transmitted, 0 received, 100% packet loss, time 3022ms |
#ip ro
172.16.3.2 dev tun0 proto kernel scope link src 172.16.3.1 192.168.15.0/24 dev eth0 proto kernel scope link src 192.168.15.7 192.168.104.0/24 dev eth0.104 proto kernel scope link src 192.168.104.7 192.168.204.0/24 dev eth0.204 proto kernel scope link src 192.168.204.2 default via 172.16.3.2 dev tun0 |
#ip ro
172.16.3.2 dev tun0 proto kernel scope link src 172.16.3.1 192.168.15.0/24 dev eth0 proto kernel scope link src 192.168.15.7 192.168.104.0/24 dev eth0.104 proto kernel scope link src 192.168.104.7 192.168.204.0/24 dev eth0.204 proto kernel scope link src 192.168.204.2 default via 172.16.3.2 dev tun0 |
#ping 192.168.203.2
PING 192.168.203.2 (192.168.203.2) 56(84) bytes of data. ^C --- 192.168.203.2 ping statistics --- 6 packets transmitted, 0 received, 100% packet loss, time 5038ms |
#ping 192.168.203.2
PING 192.168.203.2 (192.168.203.2) 56(84) bytes of data. ^C --- 192.168.203.2 ping statistics --- 6 packets transmitted, 0 received, 100% packet loss, time 5038ms |
#ping 192.168.203.1
PING 192.168.203.1 (192.168.203.1) 56(84) bytes of data. ^C --- 192.168.203.1 ping statistics --- 2 packets transmitted, 0 received, 100% packet loss, time 1008ms |
#ping 192.168.203.1
PING 192.168.203.1 (192.168.203.1) 56(84) bytes of data. ^C --- 192.168.203.1 ping statistics --- 2 packets transmitted, 0 received, 100% packet loss, time 1008ms |
#ip ro
172.16.3.2 dev tun0 proto kernel scope link src 172.16.3.1 192.168.15.0/24 dev eth0 proto kernel scope link src 192.168.15.7 192.168.104.0/24 dev eth0.104 proto kernel scope link src 192.168.104.7 192.168.204.0/24 dev eth0.204 proto kernel scope link src 192.168.204.2 default via 192.168.204.1 dev eth0.204 |
#ip ro
172.16.3.2 dev tun0 proto kernel scope link src 172.16.3.1 192.168.15.0/24 dev eth0 proto kernel scope link src 192.168.15.7 192.168.104.0/24 dev eth0.104 proto kernel scope link src 192.168.104.7 192.168.204.0/24 dev eth0.204 proto kernel scope link src 192.168.204.2 default via 192.168.204.1 dev eth0.204 |
#ping 192.168.203.2
PING 192.168.203.2 (192.168.203.2) 56(84) bytes of data. 64 bytes from 192.168.203.2: icmp_seq=1 ttl=63 time=0.227 ms 64 bytes from 192.168.203.2: icmp_seq=2 ttl=63 time=0.224 ms 64 bytes from 192.168.203.2: icmp_seq=3 ttl=63 time=0.222 ms 64 bytes from 192.168.203.2: icmp_seq=4 ttl=63 time=0.221 ms 64 bytes from 192.168.203.2: icmp_seq=5 ttl=63 time=0.222 ms 64 bytes from 192.168.203.2: icmp_seq=6 ttl=63 time=0.230 ms 64 bytes from 192.168.203.2: icmp_seq=7 ttl=63 time=0.220 ms 64 bytes from 192.168.203.2: icmp_seq=8 ttl=63 time=0.221 ms ^C --- 192.168.203.2 ping statistics --- 8 packets transmitted, 8 received, 0% packet loss, time 7000ms rtt min/avg/max/mdev = 0.220/0.223/0.230/0.013 ms |
#ping 192.168.203.2
PING 192.168.203.2 (192.168.203.2) 56(84) bytes of data. 64 bytes from 192.168.203.2: icmp_seq=1 ttl=63 time=0.227 ms 64 bytes from 192.168.203.2: icmp_seq=2 ttl=63 time=0.224 ms 64 bytes from 192.168.203.2: icmp_seq=3 ttl=63 time=0.222 ms 64 bytes from 192.168.203.2: icmp_seq=4 ttl=63 time=0.221 ms 64 bytes from 192.168.203.2: icmp_seq=5 ttl=63 time=0.222 ms 64 bytes from 192.168.203.2: icmp_seq=6 ttl=63 time=0.230 ms 64 bytes from 192.168.203.2: icmp_seq=7 ttl=63 time=0.220 ms 64 bytes from 192.168.203.2: icmp_seq=8 ttl=63 time=0.221 ms ^C --- 192.168.203.2 ping statistics --- 8 packets transmitted, 8 received, 0% packet loss, time 7000ms rtt min/avg/max/mdev = 0.220/0.223/0.230/0.013 ms |
#ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:1b:fc:7d:b5:98 inet addr:192.168.15.7 Bcast:192.168.15.255 Mask:255.255.255.0 inet6 addr: fe80::21b:fcff:fe7d:b598/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:53838 errors:0 dropped:0 overruns:0 frame:0 TX packets:51361 errors:0 dropped:0 overruns:0 carrier:2 collisions:0 txqueuelen:1000 RX bytes:28222548 (26.9 MiB) TX bytes:6168118 (5.8 MiB) eth0.104 Link encap:Ethernet HWaddr 00:1b:fc:7d:b5:98 inet addr:192.168.104.7 Bcast:192.168.104.255 Mask:255.255.255.0 ... TX packets:1873 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:8035332 (7.6 MiB) TX bytes:8035332 (7.6 MiB) 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.3.1 P-t-P:172.16.3.2 Mask:255.255.255.255 UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1 RX packets:869 errors:0 dropped:0 overruns:0 frame:0 TX packets:1139 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:100 RX bytes:57108 (55.7 KiB) TX bytes:78126 (76.2 KiB) |
#ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:1b:fc:7d:b5:98 inet addr:192.168.15.7 Bcast:192.168.15.255 Mask:255.255.255.0 inet6 addr: fe80::21b:fcff:fe7d:b598/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:53838 errors:0 dropped:0 overruns:0 frame:0 TX packets:51361 errors:0 dropped:0 overruns:0 carrier:2 collisions:0 txqueuelen:1000 RX bytes:28222548 (26.9 MiB) TX bytes:6168118 (5.8 MiB) eth0.104 Link encap:Ethernet HWaddr 00:1b:fc:7d:b5:98 inet addr:192.168.104.7 Bcast:192.168.104.255 Mask:255.255.255.0 ... TX packets:1873 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:8035332 (7.6 MiB) TX bytes:8035332 (7.6 MiB) 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.3.1 P-t-P:172.16.3.2 Mask:255.255.255.255 UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1 RX packets:869 errors:0 dropped:0 overruns:0 frame:0 TX packets:1139 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:100 RX bytes:57108 (55.7 KiB) TX bytes:78126 (76.2 KiB) |
#/etc/init.d/openvpn restart
Stopping virtual private network daemon: server. Starting virtual private network daemon: server. |
#/etc/init.d/openvpn restart
Stopping virtual private network daemon: server. Starting virtual private network daemon: server. |
#tail -f /var/log/syslog
Jun 3 18:24:20 linux7 ovpn-server[29595]: event_wait : Interrupted system call (code=4) Jun 3 18:24:20 linux7 ovpn-server[29595]: /sbin/ifconfig tun0 0.0.0.0 Jun 3 18:24:20 linux7 ovpn-server[29595]: SIGTERM[hard,] received, process exiting Jun 3 18:24:21 linux7 ovpn-server[30451]: OpenVPN 2.1_rc15 i486-pc-linux-gnu [SSL] [LZO2] [EPOLL] [PKCS11] built on May 1 2009 Jun 3 18:24:21 linux7 ovpn-server[30451]: NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables Jun 3 18:24:21 linux7 ovpn-server[30451]: /usr/sbin/openvpn-vulnkey -q linux7.key Jun 3 18:24:21 linux7 kernel: [32021.335204] tun0: Disabled Privacy Extensions Jun 3 18:24:21 linux7 ovpn-server[30451]: TUN/TAP device tun0 opened Jun 3 18:24:21 linux7 ovpn-server[30451]: /sbin/ifconfig tun0 172.16.3.1 pointopoint 172.16.3.2 mtu 1500 Jun 3 18:24:21 linux7 ovpn-server[30456]: Listening for incoming TCP connection on [undef]:443 Jun 3 18:24:29 linux7 ovpn-server[30456]: TCP connection established with 192.168.203.2:34624 Jun 3 18:24:29 linux7 ovpn-server[30456]: TCPv4_SERVER link local (bound): [undef]:443 Jun 3 18:24:29 linux7 ovpn-server[30456]: TCPv4_SERVER link remote: 192.168.203.2:34624 Ñ^C |
#tail -f /var/log/syslog
Jun 3 18:24:20 linux7 ovpn-server[29595]: event_wait : Interrupted system call (code=4) Jun 3 18:24:20 linux7 ovpn-server[29595]: /sbin/ifconfig tun0 0.0.0.0 Jun 3 18:24:20 linux7 ovpn-server[29595]: SIGTERM[hard,] received, process exiting Jun 3 18:24:21 linux7 ovpn-server[30451]: OpenVPN 2.1_rc15 i486-pc-linux-gnu [SSL] [LZO2] [EPOLL] [PKCS11] built on May 1 2009 Jun 3 18:24:21 linux7 ovpn-server[30451]: NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables Jun 3 18:24:21 linux7 ovpn-server[30451]: /usr/sbin/openvpn-vulnkey -q linux7.key Jun 3 18:24:21 linux7 kernel: [32021.335204] tun0: Disabled Privacy Extensions Jun 3 18:24:21 linux7 ovpn-server[30451]: TUN/TAP device tun0 opened Jun 3 18:24:21 linux7 ovpn-server[30451]: /sbin/ifconfig tun0 172.16.3.1 pointopoint 172.16.3.2 mtu 1500 Jun 3 18:24:21 linux7 ovpn-server[30456]: Listening for incoming TCP connection on [undef]:443 Jun 3 18:24:29 linux7 ovpn-server[30456]: TCP connection established with 192.168.203.2:34624 Jun 3 18:24:29 linux7 ovpn-server[30456]: TCPv4_SERVER link local (bound): [undef]:443 Jun 3 18:24:29 linux7 ovpn-server[30456]: TCPv4_SERVER link remote: 192.168.203.2:34624 Ñ^C |
#ping 172Ñ.16.3.2
PING 172.16.3.2 (172.16.3.2) 56(84) bytes of data. 64 bytes from 172.16.3.2: icmp_seq=1 ttl=64 time=0.540 ms 64 bytes from 172.16.3.2: icmp_seq=2 ttl=64 time=0.278 ms 64 bytes from 172.16.3.2: icmp_seq=3 ttl=64 time=0.277 ms ^C --- 172.16.3.2 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 1998ms rtt min/avg/max/mdev = 0.277/0.365/0.540/0.123 ms |
#ping 172Ñ.16.3.2
PING 172.16.3.2 (172.16.3.2) 56(84) bytes of data. 64 bytes from 172.16.3.2: icmp_seq=1 ttl=64 time=0.540 ms 64 bytes from 172.16.3.2: icmp_seq=2 ttl=64 time=0.278 ms 64 bytes from 172.16.3.2: icmp_seq=3 ttl=64 time=0.277 ms ^C --- 172.16.3.2 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 1998ms rtt min/avg/max/mdev = 0.277/0.365/0.540/0.123 ms |
#ping 172.16.3.1
PING 172.16.3.1 (172.16.3.1) 56(84) bytes of data. 64 bytes from 172.16.3.1: icmp_seq=1 ttl=64 time=0.019 ms 64 bytes from 172.16.3.1: icmp_seq=2 ttl=64 time=0.009 ms 64 bytes from 172.16.3.1: icmp_seq=3 ttl=64 time=0.008 ms 64 bytes from 172.16.3.1: icmp_seq=4 ttl=64 time=0.011 ms ^C --- 172.16.3.1 ping statistics --- 4 packets transmitted, 4 received, 0% packet loss, time 2998ms rtt min/avg/max/mdev = 0.008/0.011/0.019/0.006 ms |
#ping 172.16.3.1
PING 172.16.3.1 (172.16.3.1) 56(84) bytes of data. 64 bytes from 172.16.3.1: icmp_seq=1 ttl=64 time=0.019 ms 64 bytes from 172.16.3.1: icmp_seq=2 ttl=64 time=0.009 ms 64 bytes from 172.16.3.1: icmp_seq=3 ttl=64 time=0.008 ms 64 bytes from 172.16.3.1: icmp_seq=4 ttl=64 time=0.011 ms ^C --- 172.16.3.1 ping statistics --- 4 packets transmitted, 4 received, 0% packet loss, time 2998ms rtt min/avg/max/mdev = 0.008/0.011/0.019/0.006 ms |
#ping 172.16.3.2
PING 172.16.3.2 (172.16.3.2) 56(84) bytes of data. 64 bytes from 172.16.3.2: icmp_seq=1 ttl=64 time=0.533 ms 64 bytes from 172.16.3.2: icmp_seq=2 ttl=64 time=0.283 ms 64 bytes from 172.16.3.2: icmp_seq=3 ttl=64 time=0.284 ms ^C --- 172.16.3.2 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 1999ms rtt min/avg/max/mdev = 0.283/0.366/0.533/0.119 ms |
#ping 172.16.3.2
PING 172.16.3.2 (172.16.3.2) 56(84) bytes of data. 64 bytes from 172.16.3.2: icmp_seq=1 ttl=64 time=0.533 ms 64 bytes from 172.16.3.2: icmp_seq=2 ttl=64 time=0.283 ms 64 bytes from 172.16.3.2: icmp_seq=3 ttl=64 time=0.284 ms ^C --- 172.16.3.2 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 1999ms rtt min/avg/max/mdev = 0.283/0.366/0.533/0.119 ms |
#vim server.conf
--- /tmp/l3-saved-3775.7948.14459 2009-06-03 18:26:14.000000000 +0300 +++ server.conf 2009-06-03 18:26:54.000000000 +0300 @@ -2,5 +2,6 @@ proto tcp-server dev tun ifconfig 172.16.3.1 172.16.3.2 +route 192.168.104.0/24 secret linux7.key |
#/etc/init.d/openvpn restart
Stopping virtual private network daemon: server. Starting virtual private network daemon: server. |
#/etc/init.d/openvpn restart
Stopping virtual private network daemon: server. Starting virtual private network daemon: server. |
#tail -f /var/log/syslog
Jun 3 18:27:16 linux7 ovpn-server[30456]: event_wait : Interrupted system call (code=4) Jun 3 18:27:16 linux7 ovpn-server[30456]: /sbin/ifconfig tun0 0.0.0.0 Jun 3 18:27:16 linux7 ovpn-server[30456]: SIGTERM[hard,] received, process exiting Jun 3 18:27:17 linux7 ovpn-server[30565]: OpenVPN 2.1_rc15 i486-pc-linux-gnu [SSL] [LZO2] [EPOLL] [PKCS11] built on May 1 2009 Jun 3 18:27:17 linux7 ovpn-server[30565]: NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables Jun 3 18:27:17 linux7 ovpn-server[30565]: /usr/sbin/openvpn-vulnkey -q linux7.key Jun 3 18:27:17 linux7 kernel: [32196.900422] tun0: Disabled Privacy Extensions Jun 3 18:27:17 linux7 ovpn-server[30565]: TUN/TAP device tun0 opened Jun 3 18:27:17 linux7 ovpn-server[30565]: /sbin/ifconfig tun0 172.16.3.1 pointopoint 172.16.3.2 mtu 1500 Jun 3 18:27:17 linux7 ovpn-server[30571]: Listening for incoming TCP connection on [undef]:443 Jun 3 18:27:22 linux7 ovpn-server[30571]: TCP connection established with 192.168.203.2:34627 Jun 3 18:27:22 linux7 ovpn-server[30571]: TCPv4_SERVER link local (bound): [undef]:443 Jun 3 18:27:22 linux7 ovpn-server[30571]: TCPv4_SERVER link remote: 192.168.203.2:34627 ^C |
#tail -f /var/log/syslog
Jun 3 18:27:16 linux7 ovpn-server[30456]: event_wait : Interrupted system call (code=4) Jun 3 18:27:16 linux7 ovpn-server[30456]: /sbin/ifconfig tun0 0.0.0.0 Jun 3 18:27:16 linux7 ovpn-server[30456]: SIGTERM[hard,] received, process exiting Jun 3 18:27:17 linux7 ovpn-server[30565]: OpenVPN 2.1_rc15 i486-pc-linux-gnu [SSL] [LZO2] [EPOLL] [PKCS11] built on May 1 2009 Jun 3 18:27:17 linux7 ovpn-server[30565]: NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables Jun 3 18:27:17 linux7 ovpn-server[30565]: /usr/sbin/openvpn-vulnkey -q linux7.key Jun 3 18:27:17 linux7 kernel: [32196.900422] tun0: Disabled Privacy Extensions Jun 3 18:27:17 linux7 ovpn-server[30565]: TUN/TAP device tun0 opened Jun 3 18:27:17 linux7 ovpn-server[30565]: /sbin/ifconfig tun0 172.16.3.1 pointopoint 172.16.3.2 mtu 1500 Jun 3 18:27:17 linux7 ovpn-server[30571]: Listening for incoming TCP connection on [undef]:443 Jun 3 18:27:22 linux7 ovpn-server[30571]: TCP connection established with 192.168.203.2:34627 Jun 3 18:27:22 linux7 ovpn-server[30571]: TCPv4_SERVER link local (bound): [undef]:443 Jun 3 18:27:22 linux7 ovpn-server[30571]: TCPv4_SERVER link remote: 192.168.203.2:34627 ^C |
#ping 192.168.103.1
PING 192.168.103.1 (192.168.103.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 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 ^C --- 192.168.103.1 ping statistics --- 7 packets transmitted, 0 received, +7 errors, 100% packet loss, time 6008ms |
#ping 192.168.103.1
PING 192.168.103.1 (192.168.103.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 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 ^C --- 192.168.103.1 ping statistics --- 7 packets transmitted, 0 received, +7 errors, 100% packet loss, time 6008ms |
#ip ro
192.168.104.0 via 172.16.3.2 dev tun0 172.16.3.2 dev tun0 proto kernel scope link src 172.16.3.1 192.168.15.0/24 dev eth0 proto kernel scope link src 192.168.15.7 192.168.104.0/24 dev eth0.104 proto kernel scope link src 192.168.104.7 192.168.204.0/24 dev eth0.204 proto kernel scope link src 192.168.204.2 default via 192.168.204.1 dev eth0.204 |
#ip ro
192.168.104.0 via 172.16.3.2 dev tun0 172.16.3.2 dev tun0 proto kernel scope link src 172.16.3.1 192.168.15.0/24 dev eth0 proto kernel scope link src 192.168.15.7 192.168.104.0/24 dev eth0.104 proto kernel scope link src 192.168.104.7 192.168.204.0/24 dev eth0.204 proto kernel scope link src 192.168.204.2 default via 192.168.204.1 dev eth0.204 |
#/etc/init.d/openvpn restart
Stopping virtual private network daemon: server. Starting virtual private network daemon: server. |
#/etc/init.d/openvpn restart
Stopping virtual private network daemon: server. Starting virtual private network daemon: server. |
#/etc/init.d/openvpn restart
Stopping virtual private network daemon: server. Starting virtual private network daemon: server. |
#/etc/init.d/openvpn restart
Stopping virtual private network daemon: server. Starting virtual private network daemon: server. |
Время первой команды журнала | 17:50:06 2009- 6- 3 | ||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 18:30:32 2009- 6- 3 | ||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 18.81 | ||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 3.96 | ||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 0.67 | ||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 2.50 | ||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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