/l3/users/eb/2009/linux7/user :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 :16 :17 :18 :19 :20 :21 |
|
#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 |
#/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. |
#ip ro
172.16.3.2 dev tun0 proto kernel scope link src 172.16.3.1 192.168.103.0/24 via 172.16.3.2 dev tun0 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 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.257 ms 64 bytes from 10.0.35.100: icmp_seq=2 ttl=62 time=0.218 ms 64 bytes from 10.0.35.100: icmp_seq=3 ttl=62 time=0.220 ms 64 bytes from 10.0.35.100: icmp_seq=4 ttl=62 time=0.222 ms 64 bytes from 10.0.35.100: icmp_seq=5 ttl=62 time=0.221 ms ^C --- 10.0.35.100 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 3998ms rtt min/avg/max/mdev = 0.218/0.227/0.257/0.022 ms |
#ping mail.ru
PING mail.ru (194.67.57.226) 56(84) bytes of data. ^C --- mail.ru ping statistics --- 8 packets transmitted, 0 received, 100% packet loss, time 7055ms |
#ping freetalk.org.ua
PING freetalk.org.ua (62.80.163.43) 56(84) bytes of data. ^C --- freetalk.org.ua ping statistics --- 43 packets transmitted, 0 received, 100% packet loss, time 42334ms |
#traceroute freetalk.org.ua
traceroute to freetalk.org.ua (62.80.163.43), 30 hops max, 60 byte packets 1 192.168.204.1 (192.168.204.1) 0.841 ms 1.251 ms 1.397 ms 2 10.0.35.1 (10.0.35.1) 0.340 ms 0.333 ms 0.325 ms 3 * * * 4 * * * 5 * * * 6 * * * 7 * * * 8 *^C |
#ip ro
172.16.3.2 dev tun0 proto kernel scope link src 172.16.3.1 192.168.103.0/24 via 172.16.3.2 dev tun0 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 |
#netstat -rm
netstat: invalid option -- 'm' usage: netstat [-vWeenNcCF] [<Af>] -r netstat {-V|--version|-h|--help} netstat [-vWnNcaeol] [<Socket> ...] netstat { [-vWeenNac] -i | [-cWnNe] -M | -s } -r, --route display routing table -i, --interfaces display interface table -g, --groups display multicast group memberships -s, --statistics display networking statistics (like SNMP) -M, --masquerade display masqueraded connections -v, --verbose be verbose ... -a, --all, --listening display all sockets (default: connected) -o, --timers display timers -F, --fib display Forwarding Information Base (default) -C, --cache display routing cache instead of FIB <Socket>={-t|--tcp} {-u|--udp} {-w|--raw} {-x|--unix} --ax25 --ipx --netrom <AF>=Use '-6|-4' or '-A <af>' or '--<af>'; default: inet List of possible address families (which support routing): inet (DARPA Internet) inet6 (IPv6) ax25 (AMPR AX.25) netrom (AMPR NET/ROM) ipx (Novell IPX) ddp (Appletalk DDP) x25 (CCITT X.25) |
#netstat -rn
Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 172.16.3.2 0.0.0.0 255.255.255.255 UH 0 0 0 tun0 192.168.103.0 172.16.3.2 255.255.255.0 UG 0 0 0 tun0 192.168.15.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 192.168.104.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.104 192.168.204.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.204 0.0.0.0 192.168.204.1 0.0.0.0 UG 0 0 0 eth0.204 |
#netstat -r
Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 172.16.3.2 * 255.255.255.255 UH 0 0 0 tun0 192.168.103.0 172.16.3.2 255.255.255.0 UG 0 0 0 tun0 192.168.15.0 * 255.255.255.0 U 0 0 0 eth0 192.168.104.0 * 255.255.255.0 U 0 0 0 eth0.104 192.168.204.0 * 255.255.255.0 U 0 0 0 eth0.204 default 192.168.204.1 0.0.0.0 UG 0 0 0 eth0.204 |
#route -n
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 172.16.3.2 0.0.0.0 255.255.255.255 UH 0 0 0 tun0 192.168.103.0 172.16.3.2 255.255.255.0 UG 0 0 0 tun0 192.168.15.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 192.168.104.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.104 192.168.204.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.204 0.0.0.0 192.168.204.1 0.0.0.0 UG 0 0 0 eth0.204 |
#iptables -t nat -A POSTROUTING -o eth0.204 -j MASQUERADE
|
#traceroute 10.0.35.1
traceroute to 10.0.35.1 (10.0.35.1), 30 hops max, 60 byte packets 1 192.168.204.1 (192.168.204.1) 1.202 ms 1.392 ms 1.628 ms 2 10.0.35.1 (10.0.35.1) 0.324 ms 0.313 ms 0.300 ms |
#ping 10.0.35.1
64 bytes from 10.0.35.1: icmp_seq=474 ttl=63 time=0.235 ms 64 bytes from 10.0.35.1: icmp_seq=475 ttl=63 time=0.225 ms 64 bytes from 10.0.35.1: icmp_seq=476 ttl=63 time=0.226 ms 64 bytes from 10.0.35.1: icmp_seq=477 ttl=63 time=0.225 ms 64 bytes from 10.0.35.1: icmp_seq=478 ttl=63 time=0.224 ms 64 bytes from 10.0.35.1: icmp_seq=479 ttl=63 time=0.224 ms 64 bytes from 10.0.35.1: icmp_seq=480 ttl=63 time=0.223 ms 64 bytes from 10.0.35.1: icmp_seq=481 ttl=63 time=0.225 ms 64 bytes from 10.0.35.1: icmp_seq=482 ttl=63 time=0.224 ms 64 bytes from 10.0.35.1: icmp_seq=483 ttl=63 time=0.226 ms ... 64 bytes from 10.0.35.1: icmp_seq=613 ttl=63 time=0.227 ms 64 bytes from 10.0.35.1: icmp_seq=614 ttl=63 time=0.225 ms 64 bytes from 10.0.35.1: icmp_seq=615 ttl=63 time=0.225 ms 64 bytes from 10.0.35.1: icmp_seq=616 ttl=63 time=0.236 ms 64 bytes from 10.0.35.1: icmp_seq=617 ttl=63 time=0.234 ms 64 bytes from 10.0.35.1: icmp_seq=618 ttl=63 time=0.225 ms ^C --- 10.0.35.1 ping statistics --- 618 packets transmitted, 618 received, 0% packet loss, time 616993ms rtt min/avg/max/mdev = 0.185/0.226/0.307/0.009 ms |
#/etc/init.d/openvpn restart;tail -f /var/log/syslog
Stopping virtual private network daemon: server. Starting virtual private network daemon: server. Jun 3 19:09:15 linux7 ovpn-server[30821]: event_wait : Interrupted system call (code=4) Jun 3 19:09:15 linux7 ovpn-server[30821]: /sbin/ifconfig tun0 0.0.0.0 Jun 3 19:09:16 linux7 ovpn-server[30821]: SIGTERM[hard,] received, process exiting Jun 3 19:09:17 linux7 ovpn-server[31081]: OpenVPN 2.1_rc15 i486-pc-linux-gnu [SSL] [LZO2] [EPOLL] [PKCS11] built on May 1 2009 Jun 3 19:09:17 linux7 ovpn-server[31081]: NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables Jun 3 19:09:17 linux7 ovpn-server[31081]: /usr/sbin/openvpn-vulnkey -q linux7.key Jun 3 19:09:17 linux7 kernel: [34716.693883] tun0: Disabled Privacy Extensions Jun 3 19:09:17 linux7 ovpn-server[31081]: TUN/TAP device tun0 opened Jun 3 19:09:17 linux7 ovpn-server[31081]: /sbin/ifconfig tun0 172.16.3.1 pointopoint 172.16.3.2 mtu 1500 Jun 3 19:09:17 linux7 ovpn-server[31087]: Listening for incoming TCP connection on [undef]:443 Jun 3 19:09:22 linux7 ovpn-server[31087]: TCP connection established with 192.168.203.2:54150 Jun 3 19:09:22 linux7 ovpn-server[31087]: TCPv4_SERVER link local (bound): [undef]:443 Jun 3 19:09:22 linux7 ovpn-server[31087]: TCPv4_SERVER link remote: 192.168.203.2:54150 Jun 3 19:09:22 linux7 ovpn-server[31087]: Peer Connection Initiated with 192.168.203.2:54150 Jun 3 19:09:23 linux7 ovpn-server[31087]: Initialization Sequence Completed ^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 64 bytes from 192.168.103.1: icmp_seq=2 ttl=64 time=2956 ms 64 bytes from 192.168.103.1: icmp_seq=3 ttl=64 time=1948 ms 64 bytes from 192.168.103.1: icmp_seq=4 ttl=64 time=941 ms 64 bytes from 192.168.103.1: icmp_seq=5 ttl=64 time=0.326 ms 64 bytes from 192.168.103.1: icmp_seq=6 ttl=64 time=0.428 ms 64 bytes from 192.168.103.1: icmp_seq=7 ttl=64 time=0.303 ms 64 bytes from 192.168.103.1: icmp_seq=8 ttl=64 time=0.297 ms ^C --- 192.168.103.1 ping statistics --- 8 packets transmitted, 7 received, +1 errors, 12% packet loss, time 7015ms rtt min/avg/max/mdev = 0.297/835.386/2956.176/1104.412 ms, pipe 3 |
#/etc/init.d/openvpn restart;tail -f /var/log/syslog
Stopping virtual private network daemon: server. Starting virtual private network daemon: server. Jun 3 19:10:27 linux7 ovpn-server[31087]: Listening for incoming TCP connection on [undef]:443 Jun 3 19:10:30 linux7 ovpn-server[31087]: /sbin/ifconfig tun0 0.0.0.0 Jun 3 19:10:30 linux7 ovpn-server[31087]: SIGTERM[hard,init_instance] received, process exiting Jun 3 19:10:31 linux7 ovpn-server[31174]: OpenVPN 2.1_rc15 i486-pc-linux-gnu [SSL] [LZO2] [EPOLL] [PKCS11] built on May 1 2009 Jun 3 19:10:31 linux7 ovpn-server[31174]: NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables Jun 3 19:10:31 linux7 ovpn-server[31174]: /usr/sbin/openvpn-vulnkey -q linux7.key Jun 3 19:10:31 linux7 kernel: [34791.522035] tun0: Disabled Privacy Extensions Jun 3 19:10:31 linux7 ovpn-server[31174]: TUN/TAP device tun0 opened Jun 3 19:10:31 linux7 ovpn-server[31174]: /sbin/ifconfig tun0 172.16.3.1 pointopoint 172.16.3.2 mtu 1500 Jun 3 19:10:31 linux7 ovpn-server[31180]: Listening for incoming TCP connection on [undef]:443 Jun 3 19:10:32 linux7 ovpn-server[31180]: TCP connection established with 192.168.203.2:54153 Jun 3 19:10:32 linux7 ovpn-server[31180]: TCPv4_SERVER link local (bound): [undef]:443 Jun 3 19:10:32 linux7 ovpn-server[31180]: TCPv4_SERVER link remote: 192.168.203.2:54153 Jun 3 19:10:32 linux7 ovpn-server[31180]: Peer Connection Initiated with 192.168.203.2:54153 Jun 3 19:10:34 linux7 ovpn-server[31180]: Initialization Sequence Completed ^C |
#/etc/init.d/openvpn restart;tail -f /var/log/syslog
Stopping virtual private network daemon: server. Starting virtual private network daemon: server. Jun 3 19:10:49 linux7 ovpn-server[31180]: event_wait : Interrupted system call (code=4) Jun 3 19:10:49 linux7 ovpn-server[31180]: /sbin/ifconfig tun0 0.0.0.0 Jun 3 19:10:49 linux7 ovpn-server[31180]: SIGTERM[hard,] received, process exiting Jun 3 19:10:50 linux7 ovpn-server[31224]: OpenVPN 2.1_rc15 i486-pc-linux-gnu [SSL] [LZO2] [EPOLL] [PKCS11] built on May 1 2009 Jun 3 19:10:50 linux7 ovpn-server[31224]: NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables Jun 3 19:10:50 linux7 ovpn-server[31224]: /usr/sbin/openvpn-vulnkey -q linux7.key Jun 3 19:10:50 linux7 kernel: [34810.476580] tun0: Disabled Privacy Extensions Jun 3 19:10:50 linux7 ovpn-server[31224]: TUN/TAP device tun0 opened ... Jun 3 19:13:28 linux7 kernel: [34968.622561] tun0: Disabled Privacy Extensions Jun 3 19:13:28 linux7 ovpn-server[31230]: TUN/TAP device tun0 opened Jun 3 19:13:28 linux7 ovpn-server[31230]: /sbin/ifconfig tun0 172.16.3.1 pointopoint 172.16.3.2 mtu 1500 Jun 3 19:13:28 linux7 ovpn-server[31230]: Listening for incoming TCP connection on [undef]:443 Jun 3 19:13:33 linux7 ovpn-server[31230]: TCP connection established with 192.168.203.2:54158 Jun 3 19:13:33 linux7 ovpn-server[31230]: TCPv4_SERVER link local (bound): [undef]:443 Jun 3 19:13:33 linux7 ovpn-server[31230]: TCPv4_SERVER link remote: 192.168.203.2:54158 Jun 3 19:13:33 linux7 ovpn-server[31230]: Peer Connection Initiated with 192.168.203.2:54158 Jun 3 19:13:35 linux7 ovpn-server[31230]: Initialization Sequence Completed ^C |
#/etc/init.d/openvpn restart;tail -f /var/log/syslog
Stopping virtual private network daemon: server. Starting virtual private network daemon: server. Jun 3 19:14:14 linux7 ovpn-server[31230]: Listening for incoming TCP connection on [undef]:443 Jun 3 19:14:16 linux7 ovpn-server[31230]: /sbin/ifconfig tun0 0.0.0.0 Jun 3 19:14:16 linux7 ovpn-server[31230]: SIGTERM[hard,init_instance] received, process exiting Jun 3 19:14:17 linux7 ovpn-server[31346]: OpenVPN 2.1_rc15 i486-pc-linux-gnu [SSL] [LZO2] [EPOLL] [PKCS11] built on May 1 2009 Jun 3 19:14:17 linux7 ovpn-server[31346]: NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables Jun 3 19:14:17 linux7 ovpn-server[31346]: /usr/sbin/openvpn-vulnkey -q linux7.key Jun 3 19:14:17 linux7 kernel: [35017.249261] tun0: Disabled Privacy Extensions Jun 3 19:14:17 linux7 ovpn-server[31346]: TUN/TAP device tun0 opened ... Jun 3 19:36:27 linux7 kernel: [36347.557894] tun0: Disabled Privacy Extensions Jun 3 19:36:27 linux7 ovpn-server[31354]: TUN/TAP device tun0 opened Jun 3 19:36:27 linux7 ovpn-server[31354]: /sbin/ifconfig tun0 172.16.3.1 pointopoint 172.16.3.2 mtu 1500 Jun 3 19:36:27 linux7 ovpn-server[31354]: Listening for incoming TCP connection on [undef]:443 Jun 3 19:36:30 linux7 ovpn-server[31354]: TCP connection established with 192.168.203.2:50693 Jun 3 19:36:30 linux7 ovpn-server[31354]: TCPv4_SERVER link local (bound): [undef]:443 Jun 3 19:36:30 linux7 ovpn-server[31354]: TCPv4_SERVER link remote: 192.168.203.2:50693 Jun 3 19:36:31 linux7 ovpn-server[31354]: Peer Connection Initiated with 192.168.203.2:50693 Jun 3 19:36:31 linux7 ovpn-server[31354]: Initialization Sequence Completed ^C |
#~ +q436f+q6b75+q6b64+q6b72+q6b6c+q2332+q2334+q2569+q2a37+q6b31
Added VLAN with VID == 214 to IF -:eth0:- |
#ifconfig eth0.214 192.168.214.2
|
#ip ro
172.16.3.2 dev tun0 proto kernel scope link src 172.16.3.1 192.168.103.0/24 via 172.16.3.2 dev tun0 192.168.214.0/24 dev eth0.214 proto kernel scope link src 192.168.214.2 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.214.1
PING 192.168.214.1 (192.168.214.1) 56(84) bytes of data. 64 bytes from 192.168.214.1: icmp_seq=1 ttl=64 time=5.19 ms 64 bytes from 192.168.214.1: icmp_seq=2 ttl=64 time=0.750 ms 64 bytes from 192.168.214.1: icmp_seq=3 ttl=64 time=0.615 ms ^C --- 192.168.214.1 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2000ms rtt min/avg/max/mdev = 0.615/2.187/5.196/2.128 ms |
#~ +q436f+q6b75+q6b64+q6b72+q6b6c+q2332+q2334+q2569+q2a37+q6b31
172.16.3.2 dev tun0 proto kernel scope link src 172.16.3.1 192.168.103.0/24 via 172.16.3.2 dev tun0 192.168.214.0/24 dev eth0.214 proto kernel scope link src 192.168.214.2 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 |
#traceroute 10.0.35.1
traceroute to 10.0.35.1 (10.0.35.1), 30 hops max, 60 byte packets 1 192.168.204.1 (192.168.204.1) 1.188 ms 1.433 ms 1.682 ms 2 10.0.35.1 (10.0.35.1) 0.381 ms 0.369 ms 0.357 ms |
#ping -I eth0.214 192.168.204.1
PING 192.168.204.1 (192.168.204.1) from 192.168.214.2 eth0.214: 56(84) bytes of data. From 192.168.214.2 icmp_seq=1 Destination Host Unreachable From 192.168.214.2 icmp_seq=2 Destination Host Unreachable From 192.168.214.2 icmp_seq=3 Destination Host Unreachable From 192.168.214.2 icmp_seq=4 Destination Host Unreachable From 192.168.214.2 icmp_seq=5 Destination Host Unreachable From 192.168.214.2 icmp_seq=6 Destination Host Unreachable From 192.168.214.2 icmp_seq=7 Destination Host Unreachable From 192.168.214.2 icmp_seq=8 Destination Host Unreachable From 192.168.214.2 icmp_seq=9 Destination Host Unreachable From 192.168.214.2 icmp_seq=10 Destination Host Unreachable From 192.168.214.2 icmp_seq=11 Destination Host Unreachable From 192.168.214.2 icmp_seq=12 Destination Host Unreachable ^C --- 192.168.204.1 ping statistics --- 15 packets transmitted, 0 received, +12 errors, 100% packet loss, time 14078ms , pipe 3 |
#ping -I eth0.204 10.0.35.1
PING 10.0.35.1 (10.0.35.1) from 192.168.204.2 eth0.204: 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.227 ms 64 bytes from 10.0.35.1: icmp_seq=3 ttl=63 time=0.226 ms ^C --- 10.0.35.1 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 1998ms rtt min/avg/max/mdev = 0.226/0.229/0.235/0.013 ms |
#ping -I eth0.214 10.0.35.1
PING 10.0.35.1 (10.0.35.1) from 192.168.214.2 eth0.214: 56(84) bytes of data. From 192.168.214.2 icmp_seq=1 Destination Host Unreachable From 192.168.214.2 icmp_seq=2 Destination Host Unreachable From 192.168.214.2 icmp_seq=3 Destination Host Unreachable From 192.168.214.2 icmp_seq=4 Destination Host Unreachable From 192.168.214.2 icmp_seq=5 Destination Host Unreachable From 192.168.214.2 icmp_seq=6 Destination Host Unreachable From 192.168.214.2 icmp_seq=7 Destination Host Unreachable From 192.168.214.2 icmp_seq=8 Destination Host Unreachable From 192.168.214.2 icmp_seq=9 Destination Host Unreachable ... From 192.168.214.2 icmp_seq=52 Destination Host Unreachable From 192.168.214.2 icmp_seq=53 Destination Host Unreachable From 192.168.214.2 icmp_seq=54 Destination Host Unreachable From 192.168.214.2 icmp_seq=55 Destination Host Unreachable From 192.168.214.2 icmp_seq=56 Destination Host Unreachable From 192.168.214.2 icmp_seq=57 Destination Host Unreachable ^C --- 10.0.35.1 ping statistics --- 59 packets transmitted, 0 received, +57 errors, 100% packet loss, time 58311ms , pipe 3 |
#ip ro del default
|
#ip ro
172.16.3.2 dev tun0 proto kernel scope link src 172.16.3.1 192.168.103.0/24 via 172.16.3.2 dev tun0 192.168.214.0/24 dev eth0.214 proto kernel scope link src 192.168.214.2 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 |
#ping -I eth0.214 10.0.35.1
PING 10.0.35.1 (10.0.35.1) from 192.168.214.2 eth0.214: 56(84) bytes of data. From 192.168.214.2 icmp_seq=2 Destination Host Unreachable From 192.168.214.2 icmp_seq=3 Destination Host Unreachable From 192.168.214.2 icmp_seq=4 Destination Host Unreachable From 192.168.214.2 icmp_seq=5 Destination Host Unreachable From 192.168.214.2 icmp_seq=6 Destination Host Unreachable From 192.168.214.2 icmp_seq=7 Destination Host Unreachable ^C --- 10.0.35.1 ping statistics --- 9 packets transmitted, 0 received, +6 errors, 100% packet loss, time 8025ms , pipe 3 |
#ip ro add default via eth0.214 table 214
Error: an inet address is expected rather than "eth0.214". |
#ip ro add default dev eth0.214 table 214
|
#ip ro del default dev eth0.214 table 214
|
#ip ro del default via 192.168.214.1 table 214
RTNETLINK answers: No such process |
#ip ro
172.16.3.2 dev tun0 proto kernel scope link src 172.16.3.1 192.168.103.0/24 via 172.16.3.2 dev tun0 192.168.214.0/24 dev eth0.214 proto kernel scope link src 192.168.214.2 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 |
#ip ro add default via 192.168.204.1 table 204
|
#ip ro
172.16.3.2 dev tun0 proto kernel scope link src 172.16.3.1 192.168.103.0/24 via 172.16.3.2 dev tun0 192.168.214.0/24 dev eth0.214 proto kernel scope link src 192.168.214.2 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 |
#ip rule add from 192.168.214.2 lookup 214
|
#ip rule add from 192.168.204.2 lookup 204
|
#ip rule sh
0: from all lookup local 32764: from 192.168.204.2 lookup 204 32765: from 192.168.214.2 lookup 214 32766: from all lookup main 32767: from all lookup default |
#ping 192.168.214.1
PING 192.168.214.1 (192.168.214.1) 56(84) bytes of data. 64 bytes from 192.168.214.1: icmp_seq=1 ttl=64 time=0.651 ms 64 bytes from 192.168.214.1: icmp_seq=2 ttl=64 time=0.633 ms 64 bytes from 192.168.214.1: icmp_seq=3 ttl=64 time=0.614 ms 64 bytes from 192.168.214.1: icmp_seq=4 ttl=64 time=0.642 ms 64 bytes from 192.168.214.1: icmp_seq=5 ttl=64 time=0.617 ms 64 bytes from 192.168.214.1: icmp_seq=6 ttl=64 time=0.635 ms 64 bytes from 192.168.214.1: icmp_seq=7 ttl=64 time=0.635 ms ^C --- 192.168.214.1 ping statistics --- 7 packets transmitted, 7 received, 0% packet loss, time 5999ms rtt min/avg/max/mdev = 0.614/0.632/0.651/0.026 ms |
#ping 192.168.204.1
PING 192.168.204.1 (192.168.204.1) 56(84) bytes of data. 64 bytes from 192.168.204.1: icmp_seq=1 ttl=64 time=3.36 ms 64 bytes from 192.168.204.1: icmp_seq=2 ttl=64 time=0.944 ms 64 bytes from 192.168.204.1: icmp_seq=3 ttl=64 time=0.976 ms 64 bytes from 192.168.204.1: icmp_seq=4 ttl=64 time=0.638 ms ^C --- 192.168.204.1 ping statistics --- 4 packets transmitted, 4 received, 0% packet loss, time 3002ms rtt min/avg/max/mdev = 0.638/1.479/3.361/1.095 ms |
#ping -I eth0.214 192.168.204.1
PING 192.168.204.1 (192.168.204.1) from 192.168.214.2 eth0.214: 56(84) bytes of data. From 192.168.214.2 icmp_seq=1 Destination Host Unreachable From 192.168.214.2 icmp_seq=2 Destination Host Unreachable From 192.168.214.2 icmp_seq=3 Destination Host Unreachable From 192.168.214.2 icmp_seq=4 Destination Host Unreachable From 192.168.214.2 icmp_seq=5 Destination Host Unreachable From 192.168.214.2 icmp_seq=6 Destination Host Unreachable ^C --- 192.168.204.1 ping statistics --- 7 packets transmitted, 0 received, +6 errors, 100% packet loss, time 6030ms , pipe 3 |
#ping -I eth0.204 192.168.204.1
PING 192.168.204.1 (192.168.204.1) from 192.168.204.2 eth0.204: 56(84) bytes of data. 64 bytes from 192.168.204.1: icmp_seq=1 ttl=64 time=0.651 ms 64 bytes from 192.168.204.1: icmp_seq=2 ttl=64 time=0.623 ms ^C --- 192.168.204.1 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 999ms rtt min/avg/max/mdev = 0.623/0.637/0.651/0.014 ms |
#ping -I eth0.204 192.168.214.1
PING 192.168.214.1 (192.168.214.1) from 192.168.204.2 eth0.204: 56(84) bytes of data. ^C --- 192.168.214.1 ping statistics --- 2 packets transmitted, 0 received, 100% packet loss, time 1008ms |
#ping -I eth0.214 192.168.214.1
PING 192.168.214.1 (192.168.214.1) from 192.168.214.2 eth0.214: 56(84) bytes of data. 64 bytes from 192.168.214.1: icmp_seq=1 ttl=64 time=0.959 ms 64 bytes from 192.168.214.1: icmp_seq=2 ttl=64 time=0.634 ms 64 bytes from 192.168.214.1: icmp_seq=3 ttl=64 time=0.637 ms 64 bytes from 192.168.214.1: icmp_seq=4 ttl=64 time=0.626 ms ^C --- 192.168.214.1 ping statistics --- 4 packets transmitted, 4 received, 0% packet loss, time 2999ms rtt min/avg/max/mdev = 0.626/0.714/0.959/0.141 ms |
#ping 10.0.35.1
connect: Network is unreachable |
#ping -I eth0.214 10.0.35.1
PING 10.0.35.1 (10.0.35.1) from 192.168.214.2 eth0.214: 56(84) bytes of data. From 192.168.214.2 icmp_seq=2 Destination Host Unreachable From 192.168.214.2 icmp_seq=3 Destination Host Unreachable From 192.168.214.2 icmp_seq=4 Destination Host Unreachable From 192.168.214.2 icmp_seq=5 Destination Host Unreachable From 192.168.214.2 icmp_seq=6 Destination Host Unreachable From 192.168.214.2 icmp_seq=7 Destination Host Unreachable ^C --- 10.0.35.1 ping statistics --- 8 packets transmitted, 0 received, +6 errors, 100% packet loss, time 7015ms , pipe 3 |
#ping -I eth0.204 10.0.35.1
PING 10.0.35.1 (10.0.35.1) from 192.168.204.2 eth0.204: 56(84) bytes of data. From 192.168.204.2 icmp_seq=1 Destination Host Unreachable From 192.168.204.2 icmp_seq=2 Destination Host Unreachable From 192.168.204.2 icmp_seq=3 Destination Host Unreachable ^C --- 10.0.35.1 ping statistics --- 5 packets transmitted, 0 received, +3 errors, 100% packet loss, time 4023ms , pipe 3 |
#ip ro
172.16.3.2 dev tun0 proto kernel scope link src 172.16.3.1 192.168.103.0/24 via 172.16.3.2 dev tun0 192.168.214.0/24 dev eth0.214 proto kernel scope link src 192.168.214.2 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 |
#ip ru sh
0: from all lookup local 32764: from 192.168.204.2 lookup 204 32765: from 192.168.214.2 lookup 214 32766: from all lookup main 32767: from all lookup default |
#ping -I eth0.204 10.0.35.1
PING 10.0.35.1 (10.0.35.1) from 192.168.204.2 eth0.204: 56(84) bytes of data. From 192.168.204.2 icmp_seq=2 Destination Host Unreachable From 192.168.204.2 icmp_seq=3 Destination Host Unreachable From 192.168.204.2 icmp_seq=4 Destination Host Unreachable From 192.168.204.2 icmp_seq=5 Destination Host Unreachable From 192.168.204.2 icmp_seq=6 Destination Host Unreachable From 192.168.204.2 icmp_seq=7 Destination Host Unreachable ^C --- 10.0.35.1 ping statistics --- 9 packets transmitted, 0 received, +6 errors, 100% packet loss, time 8025ms , pipe 3 |
#ip ro add via 192.168.214.0/24 dev eth0.214 table 214
Error: an inet address is expected rather than "192.168.214.0/24". |
#ip ro add 192.168.214.0/24 dev eth0.214 table 214
|
#ip ro add 192.168.204.0/24 dev eth0.204 table 204
|
#ip ru sh
0: from all lookup local 32764: from 192.168.204.2 lookup 204 32765: from 192.168.214.2 lookup 214 32766: from all lookup main 32767: from all lookup default |
#ip ro
172.16.3.2 dev tun0 proto kernel scope link src 172.16.3.1 192.168.103.0/24 via 172.16.3.2 dev tun0 192.168.214.0/24 dev eth0.214 proto kernel scope link src 192.168.214.2 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 |
#ip ro show table 204
192.168.204.0/24 dev eth0.204 scope link default via 192.168.204.1 dev eth0.204 |
#ping 192.168.204.1
PING 192.168.204.1 (192.168.204.1) 56(84) bytes of data. 64 bytes from 192.168.204.1: icmp_seq=1 ttl=64 time=0.656 ms 64 bytes from 192.168.204.1: icmp_seq=2 ttl=64 time=0.970 ms 64 bytes from 192.168.204.1: icmp_seq=3 ttl=64 time=0.646 ms ^C --- 192.168.204.1 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2000ms rtt min/avg/max/mdev = 0.646/0.757/0.970/0.152 ms |
#ping 192.168.214.1
PING 192.168.214.1 (192.168.214.1) 56(84) bytes of data. 64 bytes from 192.168.214.1: icmp_seq=1 ttl=64 time=0.645 ms 64 bytes from 192.168.214.1: icmp_seq=2 ttl=64 time=0.630 ms ^C --- 192.168.214.1 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 999ms rtt min/avg/max/mdev = 0.630/0.637/0.645/0.026 ms |
#traceroute 10.0.35.1
traceroute to 10.0.35.1 (10.0.35.1), 30 hops max, 60 byte packets connect: Сеть недоступна |
#ip ru sh
0: from all lookup local 32764: from 192.168.204.2 lookup 204 32765: from 192.168.214.2 lookup 214 32766: from all lookup main 32767: from all lookup default |
#ip ro
172.16.3.2 dev tun0 proto kernel scope link src 172.16.3.1 192.168.103.0/24 via 172.16.3.2 dev tun0 192.168.214.0/24 dev eth0.214 proto kernel scope link src 192.168.214.2 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 |
#ip ro table 204
Command "table" is unknown, try "ip route help". |
#ip ro sh table 204
192.168.204.0/24 dev eth0.204 scope link default via 192.168.204.1 dev eth0.204 |
#ping 192.168.214.1
PING 192.168.214.1 (192.168.214.1) 56(84) bytes of data. 64 bytes from 192.168.214.1: icmp_seq=1 ttl=64 time=0.646 ms 64 bytes from 192.168.214.1: icmp_seq=2 ttl=64 time=0.625 ms 64 bytes from 192.168.214.1: icmp_seq=3 ttl=64 time=0.746 ms ^C --- 192.168.214.1 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2000ms rtt min/avg/max/mdev = 0.625/0.672/0.746/0.056 ms |
#ping 192.168.204.1
PING 192.168.204.1 (192.168.204.1) 56(84) bytes of data. 64 bytes from 192.168.204.1: icmp_seq=1 ttl=64 time=0.657 ms ^C --- 192.168.204.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.657/0.657/0.657/0.000 ms |
#ping 10.0.35.1
connect: Network is unreachable |
#ping -I 192.168.204.2 10.0.35.1
PING 10.0.35.1 (10.0.35.1) from 192.168.204.2 : 56(84) bytes of data. 64 bytes from 10.0.35.1: icmp_seq=1 ttl=63 time=0.245 ms 64 bytes from 10.0.35.1: icmp_seq=2 ttl=63 time=0.227 ms ^C --- 10.0.35.1 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 999ms rtt min/avg/max/mdev = 0.227/0.236/0.245/0.009 ms |
#ping -I 192.168.214.2 10.0.35.1
PING 10.0.35.1 (10.0.35.1) from 192.168.214.2 : 56(84) bytes of data. 64 bytes from 10.0.35.1: icmp_seq=1 ttl=63 time=0.247 ms 64 bytes from 10.0.35.1: icmp_seq=2 ttl=63 time=0.231 ms ^C --- 10.0.35.1 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 999ms rtt min/avg/max/mdev = 0.231/0.239/0.247/0.008 ms |
#tail -f /var/log/syslog
Jun 3 19:58:47 linux7 ovpn-server[31354]: /usr/sbin/openvpn-vulnkey -q linux7.key Jun 3 19:58:47 linux7 kernel: [37687.194414] tun0: Disabled Privacy Extensions Jun 3 19:58:47 linux7 ovpn-server[31354]: TUN/TAP device tun0 opened Jun 3 19:58:47 linux7 ovpn-server[31354]: /sbin/ifconfig tun0 172.16.3.1 pointopoint 172.16.3.2 mtu 1500 Jun 3 19:58:47 linux7 ovpn-server[31354]: Listening for incoming TCP connection on [undef]:443 Jun 3 20:01:53 linux7 ovpn-server[31354]: TCP connection established with 192.168.203.2:47575 Jun 3 20:01:53 linux7 ovpn-server[31354]: TCPv4_SERVER link local (bound): [undef]:443 Jun 3 20:01:53 linux7 ovpn-server[31354]: TCPv4_SERVER link remote: 192.168.203.2:47575 Jun 3 20:01:53 linux7 ovpn-server[31354]: Peer Connection Initiated with 192.168.203.2:47575 Jun 3 20:01:54 linux7 ovpn-server[31354]: Initialization Sequence Completed ... Jun 3 20:16:21 linux7 ovpn-server[31354]: TUN/TAP device tun0 opened Jun 3 20:16:21 linux7 ovpn-server[31354]: /sbin/ifconfig tun0 172.16.3.1 pointopoint 172.16.3.2 mtu 1500 Jun 3 20:16:21 linux7 ovpn-server[31354]: Listening for incoming TCP connection on [undef]:443 Jun 3 20:16:22 linux7 ovpn-server[31354]: TCP connection established with 192.168.203.2:54123 Jun 3 20:16:22 linux7 ovpn-server[31354]: TCPv4_SERVER link local (bound): [undef]:443 Jun 3 20:16:22 linux7 ovpn-server[31354]: TCPv4_SERVER link remote: 192.168.203.2:54123 Jun 3 20:16:22 linux7 ovpn-server[31354]: Peer Connection Initiated with 192.168.203.2:54123 Jun 3 20:16:23 linux7 ovpn-server[31354]: Initialization Sequence Completed Jun 3 20:17:01 linux7 /USR/SBIN/CRON[32208]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly) ^C |
#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.236 ms 64 bytes from 10.0.35.1: icmp_seq=2 ttl=63 time=0.229 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.226 ms 64 bytes from 10.0.35.1: icmp_seq=5 ttl=63 time=0.226 ms 64 bytes from 10.0.35.1: icmp_seq=6 ttl=63 time=0.226 ms 64 bytes from 10.0.35.1: icmp_seq=7 ttl=63 time=0.227 ms 64 bytes from 10.0.35.1: icmp_seq=8 ttl=63 time=0.224 ms 64 bytes from 10.0.35.1: icmp_seq=9 ttl=63 time=0.236 ms ... 64 bytes from 10.0.35.1: icmp_seq=31 ttl=63 time=0.233 ms 64 bytes from 10.0.35.1: icmp_seq=32 ttl=63 time=0.224 ms 64 bytes from 10.0.35.1: icmp_seq=33 ttl=63 time=0.227 ms 64 bytes from 10.0.35.1: icmp_seq=34 ttl=63 time=0.224 ms 64 bytes from 10.0.35.1: icmp_seq=35 ttl=63 time=0.225 ms 64 bytes from 10.0.35.1: icmp_seq=36 ttl=63 time=0.226 ms ^C --- 10.0.35.1 ping statistics --- 36 packets transmitted, 36 received, 0% packet loss, time 34996ms rtt min/avg/max/mdev = 0.223/0.227/0.239/0.013 ms |
#traceroute -n 10.0.35.1
traceroute to 10.0.35.1 (10.0.35.1), 30 hops max, 60 byte packets 1 192.168.214.1 0.836 ms 1.080 ms 1.318 ms 2 10.0.35.1 0.382 ms 0.366 ms 0.352 ms |
#iptables-save -t nat
# Generated by iptables-save v1.4.3.2 on Wed Jun 3 20:20:47 2009 *nat :PREROUTING ACCEPT [1158:79628] :POSTROUTING ACCEPT [887:70792] :OUTPUT ACCEPT [1770:140333] -A POSTROUTING -o eth0.204 -j MASQUERADE COMMIT # Completed on Wed Jun 3 20:20:47 2009 |
#tail -f /var/log/syslog
Jun 3 20:16:21 linux7 kernel: [38741.158568] tun0: Disabled Privacy Extensions Jun 3 20:16:21 linux7 ovpn-server[31354]: TUN/TAP device tun0 opened Jun 3 20:16:21 linux7 ovpn-server[31354]: /sbin/ifconfig tun0 172.16.3.1 pointopoint 172.16.3.2 mtu 1500 Jun 3 20:16:21 linux7 ovpn-server[31354]: Listening for incoming TCP connection on [undef]:443 Jun 3 20:16:22 linux7 ovpn-server[31354]: TCP connection established with 192.168.203.2:54123 Jun 3 20:16:22 linux7 ovpn-server[31354]: TCPv4_SERVER link local (bound): [undef]:443 Jun 3 20:16:22 linux7 ovpn-server[31354]: TCPv4_SERVER link remote: 192.168.203.2:54123 Jun 3 20:16:22 linux7 ovpn-server[31354]: Peer Connection Initiated with 192.168.203.2:54123 Jun 3 20:16:23 linux7 ovpn-server[31354]: Initialization Sequence Completed Jun 3 20:17:01 linux7 /USR/SBIN/CRON[32208]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly) ... Jun 3 20:23:49 linux7 kernel: [39188.862636] tun0: Disabled Privacy Extensions Jun 3 20:23:49 linux7 ovpn-server[31354]: TUN/TAP device tun0 opened Jun 3 20:23:49 linux7 ovpn-server[31354]: /sbin/ifconfig tun0 172.16.3.1 pointopoint 172.16.3.2 mtu 1500 Jun 3 20:23:49 linux7 ovpn-server[31354]: Listening for incoming TCP connection on [undef]:443 Jun 3 20:24:08 linux7 ovpn-server[31354]: TCP connection established with 192.168.203.2:43084 Jun 3 20:24:08 linux7 ovpn-server[31354]: TCPv4_SERVER link local (bound): [undef]:443 Jun 3 20:24:08 linux7 ovpn-server[31354]: TCPv4_SERVER link remote: 192.168.203.2:43084 Jun 3 20:24:08 linux7 ovpn-server[31354]: Peer Connection Initiated with 192.168.203.2:43084 Jun 3 20:24:09 linux7 ovpn-server[31354]: Initialization Sequence Completed ^C |
#ping 192.168.214.1
PING 192.168.214.1 (192.168.214.1) 56(84) bytes of data. 64 bytes from 192.168.214.1: icmp_seq=1 ttl=64 time=0.638 ms 64 bytes from 192.168.214.1: icmp_seq=2 ttl=64 time=0.633 ms ^C --- 192.168.214.1 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 999ms rtt min/avg/max/mdev = 0.633/0.635/0.638/0.025 ms |
#mkdir /home/user/D
Desktop/ Documents/ Download/ |
#mkdir /home/user/Desktop/2
|
#iptables -t nat -A POSTROUTING -o eth0.214 -j MASQUERADE
|
#ls /tmp/
.ICE-unix/ orbit-user/ ssh-BLxtKr3130/ tmp/ .X11-unix/ keyring-x2NFKe/ photo.tar ssh-NUqHe21296/ .X0-lock .xfsm-ICE-PN10UU |
#tar x /tmp/photo.tar /home/user/Desktop/2
^C |
#tar xfC/tmp/photo.tar /tmp
tar: Для старой опции `C' нужно указать аргумент. Попробуйте `tar --help' или `tar --usage' для получения дополнительной информации. |
#tar xfC /tmp/photo.tar /tmp
|
#cd /tmp/
|
#ls -l
итого 105580 drwx------ 2 user user 4096 Июн 3 09:32 keyring-x2NFKe drwx------ 2 user user 4096 Июн 3 09:42 orbit-user -rw-r--r-- 1 root root 107980800 Июн 3 21:00 photo.tar drwx------ 2 user user 4096 Июн 3 09:32 ssh-BLxtKr3130 drwx------ 2 root root 4096 Июн 3 11:51 ssh-NUqHe21296 drwxrwxrwt 8 root root 4096 Июн 3 21:02 tmp |
#cd tmp/
|
#ls -l
итого 20 drwx------ 2 user user 4096 Июн 3 09:32 keyring-x2NFKe drwxr-xr-x 2 user user 4096 Июн 3 20:57 photo drwx------ 2 user user 4096 Июн 3 09:32 ssh-BLxtKr3130 drwx------ 2 root root 4096 Июн 3 11:51 ssh-NUqHe21296 drwxrwxrwt 6 root root 4096 Июн 3 12:36 tmp |
#cd photo/
|
#ls -l
итого 105696 -rwxr-xr-x 1 user user 4105063 Июн 3 20:55 img_9734.jpg -rwxr-xr-x 1 user user 4414614 Июн 3 20:55 img_9735.jpg -rwxr-xr-x 1 user user 4997629 Июн 3 20:55 img_9736.jpg -rwxr-xr-x 1 user user 3693197 Июн 3 20:55 img_9737.jpg -rwxr-xr-x 1 user user 3990062 Июн 3 20:55 img_9738.jpg -rwxr-xr-x 1 user user 4610330 Июн 3 20:55 img_9740.jpg -rwxr-xr-x 1 user user 5058422 Июн 3 20:55 img_9742.jpg -rwxr-xr-x 1 user user 5136458 Июн 3 20:55 img_9743.jpg -rwxr-xr-x 1 user user 4635099 Июн 3 20:55 img_9744.jpg ... -rwxr-xr-x 1 user user 3745775 Июн 3 20:55 img_9750.jpg -rwxr-xr-x 1 user user 4902001 Июн 3 20:55 img_9751.jpg -rwxr-xr-x 1 user user 4802906 Июн 3 20:55 img_9752.jpg -rwxr-xr-x 1 user user 4178805 Июн 3 20:55 img_9753.jpg -rwxr-xr-x 1 user user 5127576 Июн 3 20:55 img_9754.jpg -rwxr-xr-x 1 user user 5088055 Июн 3 20:55 img_9755.jpg -rwxr-xr-x 1 user user 3476002 Июн 3 20:55 img_9756.jpg -rwxr-xr-x 1 user user 4904708 Июн 3 20:55 img_9757.jpg -rwxr-xr-x 1 user user 4215942 Июн 3 20:55 img_9759.jpg -rwxr-xr-x 1 user user 4441832 Июн 3 20:55 img_9760.jpg |
#Âcp /tmp/tmp/photo/* /home/user/Desktop/2
|
Время первой команды журнала | 18:27:28 2009- 6- 3 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 21:03:10 2009- 6- 3 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 22.77 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.99 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 2.59 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.65 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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