/l3/users/13-02-2012/NT-Lnet/debian1.net.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 :16 :17 :18 |
|
#vim /etc/host
|
#vim /etc/hosts
|
#~
PING freebsd1.net.nt (192.168.13.21): 56 data bytes 92 bytes from 192.168.13.1: Destination Host Unreachable Vr HL TOS Len ID Flg off TTL Pro cks Src Dst 4 5 00 5400 d9e9 0 0000 3e 01 135c 192.168.0.254 192.168.13.21 92 bytes from 192.168.13.1: Destination Host Unreachable Vr HL TOS Len ID Flg off TTL Pro cks Src Dst 4 5 00 5400 d9ea 0 0000 3e 01 135b 192.168.0.254 192.168.13.21 92 bytes from 192.168.13.1: Destination Host Unreachable Vr HL TOS Len ID Flg off TTL Pro cks Src Dst 4 5 00 5400 d9eb 0 0000 3e 01 135a 192.168.0.254 192.168.13.21 ^C --- freebsd1.net.nt ping statistics --- 6 packets transmitted, 0 packets received, 100.0% packet loss |
#vim /etc/hosts
|
#~
|
#vim /etc/hosts
|
#ping localhost
PING localhost.net.nt. (127.0.0.1): 56 data bytes 64 bytes from 127.0.0.1: icmp_seq=0 ttl=64 time=1.839 ms 64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.181 ms ^C --- localhost.net.nt. ping statistics --- 2 packets transmitted, 2 packets received, 0.0% packet loss round-trip min/avg/max/stddev = 0.181/1.010/1.839/0.829 ms |
#telnet localhost echo
Trying 127.0.0.1... telnet: connect to address 127.0.0.1: Connection refused Trying ::1... ^C |
#sockstat -4
USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS root xinetd 13933 0 tcp4 *:19 *:* root xinetd 13933 6 tcp4 *:7 *:* root sshd 13771 3 tcp4 192.168.0.254:22 192.168.64.1:54933 root xinetd 12958 0 tcp4 *:23 *:* root sshd 7307 3 tcp4 192.168.0.254:22 192.168.13.253:1032 root natd 3870 3 div4 *:8668 *:* root sendmail 1051 3 tcp4 127.0.0.1:25 *:* root sshd 1044 4 tcp4 *:22 *:* root syslogd 814 7 udp4 *:514 *:* |
#sockstat -l4
USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS root xinetd 13933 0 tcp4 *:19 *:* root xinetd 13933 6 tcp4 *:7 *:* root xinetd 12958 0 tcp4 *:23 *:* root natd 3870 3 div4 *:8668 *:* root sendmail 1051 3 tcp4 127.0.0.1:25 *:* root sshd 1044 4 tcp4 *:22 *:* root syslogd 814 7 udp4 *:514 *:* |
#exit
exit Connection to 192.168.0.254 closed. |
#ssh root@192.168.13.22
Password: Last login: Tue Feb 14 18:42:50 2012 from 192.168.13.253 Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 7.4-RELEASE (GENERIC) #1: Sun Feb 12 15:17:17 EET 2012 Welcome to FreeBSD! Before seeking technical support, please use the following resources: o Security advisories and updated errata information for all releases are at http://www.FreeBSD.org/releases/ - always consult the ERRATA section for your release first as it's updated frequently. ... http://www.FreeBSD.org/search/. If the doc distribution has been installed, they're also available formatted in /usr/share/doc. If you still have a question or problem, please take the output of `uname -a', along with any relevant error messages, and email it as a question to the questions@FreeBSD.org mailing list. If you are unfamiliar with FreeBSD's directory layout, please refer to the hier(7) manual page. If you are not familiar with manual pages, type `man man'. You may also use sysinstall(8) to re-enter the installation and configuration utility. Edit /etc/motd to change this login announcement. Removing stale pidfile |
#ssh 192.168.168.5
root@192.168.168.5's password: Linux debian3 2.6.32-5-686 #1 SMP Fri Sep 9 20:51:05 UTC 2011 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Tue Feb 14 17:20:56 2012 from 192.168.0.254 l3-agent is already running: pid=1362; pidfile=/root/.lilalo/l3-agent.pid l3-agent is already running: pid=1362; pidfile=/root/.lilalo/l3-agent.pid |
#telnet 127.0.0.1 chargen
Trying 127.0.0.1... Connected to 127.0.0.1. Escape character is '^]'. !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefgh "#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghi #$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghij $%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijk %&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijkl &'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklm '()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmn ... 9:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}!"# :;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}!"#$ ;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}!"#$% <=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}!"#$%& =>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}!"#$%&' >?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}!"#$%&'( ?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}!"#$%&'() @ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}!"#$%&'()*^C^] telnet> quit Connection closed. |
#telnet 127.0.0.1 chargen
Trying 127.0.0.1... Connected to 127.0.0.1. Escape character is '^]'. !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefgh "#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghi #$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghij $%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijk %&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijkl &'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklm '()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmn ... !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefgh "#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghi !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefgh "#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghi #$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghij $%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijk %&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijkl &'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklm^C^] telnet> quit Connection closed. |
#w3m bash.org.ru
+ 1687 â [:||||:]:ÐоделиÑÑÑ´ 2012-02-15 10:45 #415630 + 1687 â [:||||:] ÐоделиÑÑÑ 2012-02-15 10:45 #415630 игÑаÑÑÑна ÑмÑлÑÑоÑе денди в Ñ Ð½Ñ ÐºÐ¸... игÑаÑÑÑна ÑмÑлÑÑоÑе денди в Ñ Ð½Ñ ÐºÐ¸... + 604 â [:||||:] ÐоделиÑÑÑѵ2012-02-1510:13Ð#415629. + 604 â [:||||:] ÐÐгазелнаоленÑÑ ÐµÑ Ð°ÑÑ.6Ñебе лÑбой о еневод ÑкажеÑ, ÑÑо олени бÑÑÑÑее ÐÑÐнÑ: ÑÑ Ð¼Ð½Ðµ ÑелµÑонÐдоÑÑавки оленей Ñкажи ÐÑÐÐ½Ñ Ð¾ÑÑ.... Ñ ÐµÐ³Ð¾ Ð·Ð½Ð°Ñ ÐлÐг: надо.бÑло³Ð½Ðµ Ð½Ð°Ñ + 814 â [:||||:] ÐоделиÑÑÑÑÐ2012-02-15 10:12 #415628 ... + 4393 âÐ[:||||:] ÐоделиÑÑÑÑ 2012-02-12 08:45 #415572 + 4393 âÐ[:||||:] ÐоделиÑÑÑÑ 2012-02-12 08:45 #415572 + 2540 â [:||||:] ÐоделиÑÑÑÑ 2012-02-12 08:45 #415571 + 2540 â [:||||:] ÐоделиÑÑÑÑ 2012-02-12 08:45 #415571 + 7586 â [:||||:] Ðодел¶ÑÑÑÑ 2012-02-12 08:13 #415570 + 7586 â [:||||:] Ðодел¶ÑÑÑÑ 2012-02-12 08:13 #415570 ÐолÑÑилÑÑ Ð°Ñкий ÑеÑепÑ! ТµÑÑо: 250г мÑки, 100 ÐÐ ÐЦдÐÐ ÐÐÐÐÐ, ÐÐÐЯТЬ»Ð,СÐÐРТÐ, ÐÐÐÐТÐÐÐÐРЯÐÐ Ð, СÐÐ ÐЦРÐÐÐÐ + 12172 â¸[:||||:] ÐоделиÑÑÑÑ 2012-02-11 09:13 #415569 С1ЯндекÑ.ÐÑобок. ⪠â â Viewing <ЦиÑаÑник Ð ÑнеÑа â ÑÑÑ. 670 â bash.org.ru> |
#ssh 192.168.168.5
root@192.168.168.5's password: Linux debian3 2.6.32-5-686 #1 SMP Fri Sep 9 20:51:05 UTC 2011 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Wed Feb 15 10:35:53 2012 from 192.168.0.254 l3-agent is already running: pid=1362; pidfile=/root/.lilalo/l3-agent.pid l3-agent is already running: pid=1362; pidfile=/root/.lilalo/l3-agent.pid |
#ping 192.168.13.1
PING 192.168.13.1 (192.168.13.1) 56(84) bytes of data. ^C --- 192.168.13.1 ping statistics --- 4 packets transmitted, 0 received, 100% packet loss, time 3025ms |
#ssh root@192.168.168.1
Password: Last login: Wed Feb 15 12:36:47 2012 from 192.168.13.253 Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 7.4-RELEASE (GENERIC) #1: Sun Feb 12 15:17:17 EET 2012 Welcome to FreeBSD! Before seeking technical support, please use the following resources: o Security advisories and updated errata information for all releases are at http://www.FreeBSD.org/releases/ - always consult the ERRATA section for your release first as it's updated frequently. ... http://www.FreeBSD.org/search/. If the doc distribution has been installed, they're also available formatted in /usr/share/doc. If you still have a question or problem, please take the output of `uname -a', along with any relevant error messages, and email it as a question to the questions@FreeBSD.org mailing list. If you are unfamiliar with FreeBSD's directory layout, please refer to the hier(7) manual page. If you are not familiar with manual pages, type `man man'. You may also use sysinstall(8) to re-enter the installation and configuration utility. Edit /etc/motd to change this login announcement. l3-agent is already running: pid=13831; pidfile=/root/.lilalo/l3-agent.pid |
#jobs
|
#Write failed: Broken pipe
|
#ssh root@192.168.168.1
ssh: connect to host 192.168.168.1 port 22: No route to host |
#ssh root@192.168.168.1
Password: Last login: Wed Feb 15 13:33:43 2012 from 192.168.64.1 Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 7.4-RELEASE (GENERIC) #1: Sun Feb 12 15:17:17 EET 2012 Welcome to FreeBSD! Before seeking technical support, please use the following resources: o Security advisories and updated errata information for all releases are at http://www.FreeBSD.org/releases/ - always consult the ERRATA section for your release first as it's updated frequently. ... http://www.FreeBSD.org/search/. If the doc distribution has been installed, they're also available formatted in /usr/share/doc. If you still have a question or problem, please take the output of `uname -a', along with any relevant error messages, and email it as a question to the questions@FreeBSD.org mailing list. If you are unfamiliar with FreeBSD's directory layout, please refer to the hier(7) manual page. If you are not familiar with manual pages, type `man man'. You may also use sysinstall(8) to re-enter the installation and configuration utility. Edit /etc/motd to change this login announcement. Removing stale pidfile |
#ssh 192.168.168.5
root@192.168.168.5's password: Linux debian3 2.6.32-5-686 #1 SMP Fri Sep 9 20:51:05 UTC 2011 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Wed Feb 15 12:04:26 2012 from 192.168.64.1 l3-agent is already running: pid=1362; pidfile=/root/.lilalo/l3-agent.pid l3-agent is already running: pid=1362; pidfile=/root/.lilalo/l3-agent.pid |
#ssh 192.168.168.5
root@192.168.168.5's password: Linux debian3 2.6.32-5-686 #1 SMP Fri Sep 9 20:51:05 UTC 2011 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Wed Feb 15 11:16:53 2012 from 192.168.0.254 l3-agent is already running: pid=1362; pidfile=/root/.lilalo/l3-agent.pid l3-agent is already running: pid=1362; pidfile=/root/.lilalo/l3-agent.pid |
#man ps\
|
#ps aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 1 0.0 0.1 2032 712 ? Ss Feb14 0:06 init [2] root 2 0.0 0.0 0 0 ? S Feb14 0:00 [kthreadd] root 3 0.0 0.0 0 0 ? S Feb14 0:00 [migration/0] root 4 0.0 0.0 0 0 ? S Feb14 0:00 [ksoftirqd/0] root 5 0.0 0.0 0 0 ? S Feb14 0:00 [watchdog/0] root 6 0.0 0.0 0 0 ? S Feb14 0:01 [events/0] root 7 0.0 0.0 0 0 ? S Feb14 0:00 [cpuset] root 8 0.0 0.0 0 0 ? S Feb14 0:00 [khelper] root 9 0.0 0.0 0 0 ? S Feb14 0:00 [netns] ... root 5855 0.0 0.5 6200 2944 pts/3 Ss+ 11:16 0:01 bash root 5946 0.2 0.5 8260 2840 ? Ss 12:04 0:00 sshd: root@pts/4 root 5949 1.1 0.1 3948 740 pts/4 Ss+ 12:04 0:01 script -f -c bash -q /root/.lilalo//1540322257522332346-1329300267.script root 5992 0.0 0.0 3952 472 pts/4 S+ 12:04 0:00 script -f -c bash -q /root/.lilalo//1540322257522332346-1329300267.script root 5993 1.0 0.5 6200 2936 pts/5 Ss+ 12:04 0:01 bash root 6041 0.9 0.5 8260 2840 ? Ss 12:05 0:00 sshd: root@pts/6 root 6044 2.0 0.1 3948 744 pts/6 Ss+ 12:05 0:01 script -f -c bash -q /root/.lilalo//17129321291309121464-1329300338.script root 6087 0.1 0.0 3952 476 pts/6 S+ 12:05 0:00 script -f -c bash -q /root/.lilalo//17129321291309121464-1329300338.script root 6088 6.7 0.5 6200 2940 pts/7 Ss 12:05 0:03 bash root 6377 0.0 0.2 4428 1040 pts/7 R+ 12:06 0:00 ps aux |
#ps aux | less
|
#ssh root@192.168.168.1
\Password: Last login: Wed Feb 15 14:09:55 2012 Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 7.4-RELEASE (GENERIC) #1: Sun Feb 12 15:17:17 EET 2012 Welcome to FreeBSD! Before seeking technical support, please use the following resources: o Security advisories and updated errata information for all releases are at http://www.FreeBSD.org/releases/ - always consult the ERRATA section for your release first as it's updated frequently. ... http://www.FreeBSD.org/search/. If the doc distribution has been installed, they're also available formatted in /usr/share/doc. If you still have a question or problem, please take the output of `uname -a', along with any relevant error messages, and email it as a question to the questions@FreeBSD.org mailing list. If you are unfamiliar with FreeBSD's directory layout, please refer to the hier(7) manual page. If you are not familiar with manual pages, type `man man'. You may also use sysinstall(8) to re-enter the installation and configuration utility. Edit /etc/motd to change this login announcement. Removing stale pidfile |
#ps aux | grep w3m | less
|
#ps aux | grep w3m | less
|
#w3m lurkmore.ru
Write failed: Broken pipe Opening socket... |
#ssh 192.168.168.5
root@192.168.168.5's password: Linux debian3 2.6.32-5-686 #1 SMP Fri Sep 9 20:51:05 UTC 2011 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Wed Feb 15 12:05:36 2012 from 192.168.64.1 l3-agent is already running: pid=1362; pidfile=/root/.lilalo/l3-agent.pid l3-agent is already running: pid=1362; pidfile=/root/.lilalo/l3-agent.pid |
#ssh root@192.168.168.1
Password: Last login: Wed Feb 15 14:10:43 2012 from 192.168.13.253 Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 7.4-RELEASE (GENERIC) #1: Sun Feb 12 15:17:17 EET 2012 Welcome to FreeBSD! Before seeking technical support, please use the following resources: o Security advisories and updated errata information for all releases are at http://www.FreeBSD.org/releases/ - always consult the ERRATA section for your release first as it's updated frequently. ... http://www.FreeBSD.org/search/. If the doc distribution has been installed, they're also available formatted in /usr/share/doc. If you still have a question or problem, please take the output of `uname -a', along with any relevant error messages, and email it as a question to the questions@FreeBSD.org mailing list. If you are unfamiliar with FreeBSD's directory layout, please refer to the hier(7) manual page. If you are not familiar with manual pages, type `man man'. You may also use sysinstall(8) to re-enter the installation and configuration utility. Edit /etc/motd to change this login announcement. Removing stale pidfile |
#ping 192.168.13.1
PING 192.168.13.1 (192.168.13.1) 56(84) bytes of data. 64 bytes from 192.168.13.1: icmp_req=1 ttl=62 time=5.42 ms 64 bytes from 192.168.13.1: icmp_req=2 ttl=62 time=6.55 ms 64 bytes from 192.168.13.1: icmp_req=3 ttl=62 time=40.7 ms ^C --- 192.168.13.1 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2003ms rtt min/avg/max/mdev = 5.425/17.578/40.757/16.396 ms |
#ssh 192.168.168.5
root@192.168.168.5's password: Linux debian3 2.6.32-5-686 #1 SMP Fri Sep 9 20:51:05 UTC 2011 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Wed Feb 15 12:13:05 2012 from 192.168.0.254 l3-agent is already running: pid=1362; pidfile=/root/.lilalo/l3-agent.pid l3-agent is already running: pid=1362; pidfile=/root/.lilalo/l3-agent.pid |
#ps aux | grep w3m | less
|
#ping ya.ru
PING ya.ru (93.158.134.203) 56(84) bytes of data. 64 bytes from www.yandex.ru (93.158.134.203): icmp_req=1 ttl=55 time=28.2 ms 64 bytes from www.yandex.ru (93.158.134.203): icmp_req=2 ttl=55 time=28.4 ms 64 bytes from www.yandex.ru (93.158.134.203): icmp_req=3 ttl=55 time=61.6 ms ^C --- ya.ru ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2002ms rtt min/avg/max/mdev = 28.254/39.465/61.680/15.709 ms |
#ipfw add pipe 1 tcp from any to 192.168.168.5 out
00100 pipe 1 tcp from any to 192.168.168.5 out |
#ipfw pipe 1 bw 1024KB
ipfw: bad command `bw' |
#ipfw pipe 1 config bw 1024KB
|
#w3m bash.org.ru
âbash.org.ru âithappens.ru âzadolba.li * bash.org.ru â ЦиÑаÑник Ð ÑнеÑа [adview] ЦиÑаÑÑ: новÑе ÑлÑÑайнÑе лÑÑÑие по ÑейÑÐ¸Ð½Ð³Ñ Ðездна Ñоп ÐÐµÐ·Ð´Ð½Ñ Ð»ÑÑÑее ÐÐµÐ·Ð´Ð½Ñ Ð´Ð¾Ð±Ð°Ð²Ð¸ÑÑ Ð¡Ð¼Ð¾ÑÑеÑÑ: вÑе ÑиÑаÑÑ ÑолÑко без минÑÑов УÑвеÑждено 33547 ÑиÑаÑ, ÑÐµÐ³Ð¾Ð´Ð½Ñ 20, ждÑÑ оÑеÑеди в Ðездне 616 ÐÑоÑее: ... ÑÑÑÐ½Ñ ÐºÐ°Ðº Ñебе обÑÑÑниÑÑ. вÑе Ñавно, ÑÑо на ÑÑÐµÐ½Ð°Ñ Ð¿Ð¸ÑаÑÑ "Цой жив" в Ñо вÑемÑ, когда он еÑе дейÑÑвиÑелÑно бÑл жив. + 5720 â [:||||:] ÐодÑÑ 2012-02-10 10:45²#415558 + 5720 â [:||||:] ÐодÑÑ 2012-02-10 10:45²#415558 Ñ Ñ ÑХоÑÑ ÐºÐ¾Ð³Ð¾ Ñ ´Ð±Ð¼2нÑваÑ.0ÐикÑÑÐкаÑаÑÑÐеговÑÑоÑеднем окне))) + 15264 âÑ[:||||:] ÐоделиÑÑÑÑ 2012-02-10 10:44 #415557 ⪠â â Viewing <ЦиÑаÑник Ð ÑнеÑа â ÑÑÑ. 670 â bash.org.ru> Ñ Ñ Ñ : Ð²Ð¾Ñ Ñ Ñ ÑÐµÐ±Ñ Ð¿ ÑажаÑÑÑ. ÑÑ Ð²Ñоде вÑе логиÑеÑки пÑавилÑно делаеÑÑ, но Ñак, ÑÑо Ñ Ð¼ÐµÐ½Ñ ÑÑо вÑзÑÐ²Ð°ÐµÑ Ð³Ð»ÑбоÑайÑее ÑмÑÑение. ÑÑÑ ÑмÑÑле? Ð½Ñ ÐºÐ°Ðº Ñебе обÑÑÑниÑÑ. вÑе Ñавно, ÑÑо на ÑÑÐµÐ½Ð°Ñ Ð¿Ð¸ÑаÑÑ "Цой жив" в Ñо вÑемÑ, когда он еÑе дейÑÑвиÑелÑно бÑл жив. + 5720 â [:||||:] ÐодÑÑ 2012-02-10 10:45 #415558 |
#ipfw list
00100 pipe 1 tcp from any to 192.168.168.5 out 65535 allow ip from any to any |
#ipfw show
00100 0 0 pipe 1 tcp from any to 192.168.168.5 out 65535 406900 89931832 allow ip from any to any |
#ping 192.168.168.5
PING 192.168.168.5 (192.168.168.5): 56 data bytes 64 bytes from 192.168.168.5: icmp_seq=0 ttl=61 time=12.892 ms 64 bytes from 192.168.168.5: icmp_seq=1 ttl=61 time=6.687 ms 64 bytes from 192.168.168.5: icmp_seq=2 ttl=61 time=12.721 ms ^C --- 192.168.168.5 ping statistics --- 3 packets transmitted, 3 packets received, 0.0% packet loss round-trip min/avg/max/stddev = 6.687/10.767/12.892/2.886 ms |
#ipfw show
00100 0 0 pipe 1 tcp from any to 192.168.168.5 out 65535 407058 89946176 allow ip from any to any |
#ipfw list
00100 pipe 1 tcp from any to 192.168.168.5 out 65535 allow ip from any to any |
#ipfw show
00100 0 0 pipe 1 tcp from any to 192.168.168.5 out 65535 429866 92613873 allow ip from any to any |
#exit
exit Connection to 192.168.13.22 closed. |
#ipfw list
00100 divert 8668 ip from any to any 65535 allow ip from any to any |
#ipfw add 99 deny icmp form 192.168.168.5 to any
ipfw: missing ``from'' |
#ipfw add 99 deny icmp from 192.168.168.5 to any
00099 deny icmp from 192.168.168.5 to any |
#ipfw list
00099 deny icmp from 192.168.168.5 to any 00100 divert 8668 ip from any to any 65535 allow ip from any to any |
#ipfw show
00099 4 336 deny icmp from 192.168.168.5 to any 00100 1197743 4666830200 divert 8668 ip from any to any 65535 1295756 4592941770 allow ip from any to any |
#ipfw add 99 deny icmp from any to 192.168.13.0/24
00099 deny icmp from any to 192.168.13.0/24 |
#ipfw list
00099 deny icmp from 192.168.168.5 to any 00099 deny icmp from any to 192.168.13.0/24 00100 divert 8668 ip from any to any 65535 allow ip from any to any |
#ipfw add 98 deny icmp from any to ya.ru
00098 deny icmp from any to 213.180.204.3 |
#ipfw add 97 deny icmp from any to ya.ru
00097 deny icmp from any to 213.180.193.3 |
#ipfw add 97 deny icmp from any to ya.ru
00097 deny icmp from any to 93.158.134.203 |
#ipfw add 97 deny icmp from any to ya.ru
00097 deny icmp from any to 93.158.134.3 |
#ipfw list
00097 deny icmp from any to 213.180.193.3 00097 deny icmp from any to 93.158.134.203 00097 deny icmp from any to 93.158.134.3 00098 deny icmp from any to 213.180.204.3 00099 deny icmp from 192.168.168.5 to any 00099 deny icmp from any to 192.168.13.0/24 00100 divert 8668 ip from any to any 65535 allow ip from any to any |
#ipfw del 97
ipfw: DEPRECATED: 'del' matched 'delete' as a sub-string |
#ipfw list
00098 deny icmp from any to 213.180.204.3 00099 deny icmp from 192.168.168.5 to any 00099 deny icmp from any to 192.168.13.0/24 00100 divert 8668 ip from any to any 65535 allow ip from any to any |
#ipfw del 98 99
ipfw: DEPRECATED: 'del' matched 'delete' as a sub-string |
#ipfw list
00100 divert 8668 ip from any to any 65535 allow ip from any to any |
#ipfs resetlog
|
#ipfw list
00100 divert 8668 ip from any to any 65535 allow ip from any to any |
#ipfw show
00100 1201061 4667306820 divert 8668 ip from any to any 65535 1299074 4593418390 allow ip from any to any |
#ipfs resetlog
|
#ipfw show
00100 1201103 4667310760 divert 8668 ip from any to any 65535 1299116 4593422330 allow ip from any to any |
#man ipfw
|
#vim /etc/
|
#vim /etc/rc.firewall
|
#vim /etc/*ipf*
|
#~
.rc.conf.swo libalias.conf printcap X11 lilalo profile aliases localtime protocols amd.map locate.rc pwd.db apmd.conf login.access rc auth.conf login.conf rc.bsdextended bluetooth login.conf.db rc.conf crontab mac.conf rc.conf~ csh.cshrc mail rc.d csh.login mail.rc rc.firewall ... host.conf opieaccess snmpd.config hostid opiekeys spwd.db hosts pam.d ssh hosts.allow passwd ssl hosts.allow~ pccard_ether sysctl.conf hosts.equiv periodic syslog.conf hosts.lpd pf.os termcap hosts~ phones ttys inetd.conf portsnap.conf zfs isdn ppp |
#ls /etc/|less
|
#vim /etc/security/
|
#syslog.conf*
/etc/defaults/rc.conf:firewall_flags="" # Flags passed to ipfw when type is a file /etc/defaults/periodic.conf:# 500.ipfwdenied /etc/defaults/periodic.conf:daily_status_security_ipfwdenied_enable="YES" /etc/defaults/periodic.conf:# 550.ipfwlimit /etc/defaults/periodic.conf:daily_status_security_ipfwlimit_enable="YES" /etc/mtree/BSD.usr.dist: ipfw /etc/periodic/security/500.ipfwdenied:# $FreeBSD: src/etc/periodic/security/500.ipfwdenied,v 1.6.26.1 2010/12/21 17:10:29 kensmith Exp $ /etc/periodic/security/500.ipfwdenied:case "$daily_status_security_ipfwdenied_enable" in /etc/periodic/security/500.ipfwdenied: if ipfw -a list 2>/dev/null | egrep "deny|reset|unreach" > ${TMP}; then /etc/periodic/security/500.ipfwdenied: check_diff new_only ipfw ${TMP} "${host} ipfw denied packets:" ... /etc/rc.d/ipfw:ipfw_poststart() /etc/rc.d/ipfw:ipfw_stop() /etc/rc.firewall:# Setup system for ipfw(4) firewall service. /etc/rc.firewall: fwcmd="/sbin/ipfw -q" /etc/rc.firewall: fwcmd="/sbin/ipfw" /etc/rc.firewall:# If you just configured ipfw in the kernel as a tool to solve network /etc/rc.firewall6: fw6cmd="/sbin/ipfw -q" /etc/rc.firewall6: fw6cmd="/sbin/ipfw" /etc/rc.firewall6:# If you just configured ipfw in the kernel as a tool to solve network /etc/netstart:/etc/rc.d/ipfw ${_start} |
#grep -r ipfw /etc|less
|
#iptables -L
Chain INPUT (policy ACCEPT) target prot opt source destination Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination |
#$FreeBSD: src/etc/rc.d/ipfw,v 1.15.2.6.2.1 2010/12/21 17:10:29
cat: /etc/ipfw.rules: No such file or directory |
#vim /etc/ipfw.rules
|
#vim /etc/rc.conf
|
#chmod +x /etc/ipfw.rules
|
#vim /etc/ipfw.rules
|
#ls /sbin/ip
ipf ipfstat ipfw ipnat ipresend ipfs ipftest ipmon ippool |
#ls /sbin/ip
ipf ipfstat ipfw ipnat ipresend ipfs ipftest ipmon ippool |
Время первой команды журнала | 18:13:21 2012- 2-14 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 13:01:23 2012- 2-15 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 13.86 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.99 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 2.92 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.58 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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