/l3/users/30-11-2009/nt-lnet/debian13.net.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 |
|
#ssh debian2
The authenticity of host 'debian2 (192.168.16.2)' can't be established. RSA key fingerprint is 51:5b:32:d8:70:19:6d:04:c7:b4:11:49:13:74:dc:bc. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'debian2' (RSA) to the list of known hosts. root@debian2's password: Last login: Tue Dec 1 14:58:03 2009 Linux debiant 2.6.18-5-xen-686 #1 SMP Fri Jun 1 05:05:24 UTC 2007 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. l3-agent is already running: pid=1618; pidfile=/root/.lilalo/l3-agent.pid |
#ssh debian2
root@debian2's password: Last login: Tue Dec 1 17:22:33 2009 from debian13.net.nt Linux debiant 2.6.18-5-xen-686 #1 SMP Fri Jun 1 05:05:24 UTC 2007 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. l3-agent is already running: pid=1618; pidfile=/root/.lilalo/l3-agent.pid |
#ssh 192.168.16.254
28 ;sid.net.nt. NS deb5.sid 30 ; 31 ; 32 ;alex.net.nt. NS hostA.alex 33 ;hostA.alex A 192.168.16.6 34 ; 35 ; 36 ;dima.net.nt. NS host1.dima 37 ;host1.dima A 192.168.16.26 38 ; ... Dec 1 06:29:42 debian dhcpd: DHCPREQUEST for 192.168.16.201 from 00:14:c2:05:9a:de via vlan141 Dec 1 06:29:42 debian dhcpd: DHCPACK on 192.168.16.201 to 00:14:c2:05:9a:de via vlan141 Dec 1 06:29:53 debian dhcpd: DHCPREQUEST for 192.168.16.202 from 00:16:35:7d:81:ee via vlan141 Dec 1 06:29:53 debian dhcpd: DHCPACK on 192.168.16.202 to 00:16:35:7d:81:ee via vlan141 Dec 1 06:30:01 debian /USR/SBIN/CRON[6055]: (root) CMD ( sh /sbin/ssh_port_forwarding) Dec 1 06:30:01 debian /USR/SBIN/CRON[6057]: (root) CMD ( ntpdate ntp.psn.ru) Dec 1 06:30:01 debian /USR/SBIN/CRON[6059]: (root) CMD (if [ -x /usr/bin/vnstat ] && [ `ls /var/lib/vnstat/ | wc -l` -ge 1 ]; then /usr/bin/vnstat -u; fi) Dec 1 06:30:53 debian dhcpd: DHCPREQUEST for 192.168.16.203 from 00:14:c2:05:a3:38 via vlan141 Dec 1 06:30:53 debian dhcpd: DHCPACK on 192.168.16.203 to 00:14:c2:05:a3:38 via vlan141 Connection to 192.168.16.254 closed. |
#vlock
*** This tty is not a VC (virtual console). *** *** It may not be securely locked. *** This TTY is now locked by root. Please press Enter to unlock. Password: Try to authenticate as root instead: Password: *** Unlock failed; please try again. *** This TTY is now locked by root. Please press Enter to unlock. Password: |
#reboot
|
#screen -x
|
#dig @192.168.16.254 net.nt axfr
![]() ;; Connection to 192.168.16.254#53(192.168.16.254) for net.nt failed: connection refused. |
#ssh 192.168.16.254
3 // Please read /usr/share/doc/bind9/README.Debian.gz for information on the 4 // structure of BIND configuration files in Debian, *BEFORE* you customize 5 // this configuration file. 6 // 7 // If you are just adding zones, please do that in /etc/bind/named.conf.local 8 9 include "/etc/bind/named.conf.options"; 10 11 // prime the server with knowledge of the root servers 12 zone "." { "/etc/bind/named.conf" 61L, 1237C 13 type hint; Connection to 192.168.16.254 closed. |
#ls -l /etc/bind/named.conf
![]() ls: /etc/bind/named.conf: Нет такого файла или каталога |
#dig @192.168.16.254 net.nt axfr
; <<>> DiG 9.5.1-P3 <<>> @192.168.16.254 net.nt axfr ; (1 server found) ;; global options: printcmd net.nt. 604800 IN SOA debian.net.nt. root.debian.net.nt. 17 604800 86400 2419200 604800 net.nt. 604800 IN NS debian.net.nt. net.nt. 604800 IN MX 5 debian.net.nt. debian.net.nt. 604800 IN A 192.168.16.254 debian1.net.nt. 604800 IN A 192.168.16.1 debian10.net.nt. 604800 IN A 192.168.16.10 debian11.net.nt. 604800 IN A 192.168.16.11 ... host95.net.nt. 604800 IN A 192.168.16.95 host96.net.nt. 604800 IN A 192.168.16.96 host97.net.nt. 604800 IN A 192.168.16.97 host98.net.nt. 604800 IN A 192.168.16.98 host99.net.nt. 604800 IN A 192.168.16.99 net.nt. 604800 IN SOA debian.net.nt. root.debian.net.nt. 17 604800 86400 2419200 604800 ;; Query time: 226 msec ;; SERVER: 192.168.16.254#53(192.168.16.254) ;; WHEN: Wed Dec 2 09:56:44 2009 ;; XFR size: 258 records (messages 1, bytes 6158) |
#nano /etc/bind9/named.conf
![]() |
#ls /etc/bind/
![]() ls: /etc/bind/: Нет такого файла или каталога |
#dig @192.168.16.254 net.nt axfr
; <<>> DiG 9.5.1-P3 <<>> @192.168.16.254 net.nt axfr ; (1 server found) ;; global options: printcmd net.nt. 604800 IN SOA debian.net.nt. root.debian.net.nt. 17 604800 86400 2419200 604800 net.nt. 604800 IN NS debian.net.nt. net.nt. 604800 IN MX 5 debian.net.nt. debian.net.nt. 604800 IN A 192.168.16.254 debian1.net.nt. 604800 IN A 192.168.16.1 debian10.net.nt. 604800 IN A 192.168.16.10 debian11.net.nt. 604800 IN A 192.168.16.11 ... host95.net.nt. 604800 IN A 192.168.16.95 host96.net.nt. 604800 IN A 192.168.16.96 host97.net.nt. 604800 IN A 192.168.16.97 host98.net.nt. 604800 IN A 192.168.16.98 host99.net.nt. 604800 IN A 192.168.16.99 net.nt. 604800 IN SOA debian.net.nt. root.debian.net.nt. 17 604800 86400 2419200 604800 ;; Query time: 12 msec ;; SERVER: 192.168.16.254#53(192.168.16.254) ;; WHEN: Wed Dec 2 10:17:52 2009 ;; XFR size: 258 records (messages 1, bytes 6158) |
#echo "http://www.securitylab.ru/?ID=40380
о оÑибоÑно набÑаннÑй адÑÐµÑ Ð² ÑÑÑоке бÑаÑзеÑа Ñ ÑаÑÑиÑениÑми .NET и .COM на 64.94.110.11, Ð½Ð°Ñ Ð¾Ð´ÑÑийÑÑ Ð² ÑаÑпоÑÑжении âVerisignâ. имени или пÑоÑÑ > ÑенÑÐ¸Ñ ÐºÑÑпнейÑим поиÑковÑм маÑинам и каÑалогам, пÑиÑем без ÐºÐ°ÐºÐ¸Ñ -либо маÑкеÑинговÑÑ ÑÑилий.й, возможно, ÑоÑÑÐ°Ð²Ð¸Ñ ÐºÐ¾Ð½ÐºÑ > новÑй паÑÑ Ð¾Ñ ISC, ÑÐµÐºÐ»Ð°Ð¼Ð½Ð¾Ð¼Ñ Ð½Ð°ÑÐ¸Ð½Ð°Ð½Ð¸Ñ VeriSign пÑидÑÑÑÑ ÑÑго."\nºÐ¾ на делегиÑованнÑе адÑеÑа. ÐÑли болÑÑинÑÑво Ð¸Ñ Ð²Ð»Ð°Ð´ÐµÐ»ÑÑев ÑÑÑановÑÑ http://www.securitylab.ru/?ID=40380 Ðа пÑоÑлой неделе VeriSign пÑедÑÑавила новÑй ÑеÑвиÑ, коÑоÑÑй пеÑенапÑавлÑÐµÑ Ð»Ñбой запÑÐ¾Ñ Ð½ÐµÑÑÑеÑÑвÑÑÑего доменного имени или пÑоÑÑо оÑибоÑно набÑаннÑй адÑÐµÑ Ð² ÑÑÑоке бÑаÑзеÑа Ñ ÑаÑÑиÑениÑми .NET и .COM на 64.94.110.11, Ð½Ð°Ñ Ð¾Ð´ÑÑийÑÑ Ðо ÑÑÐ¾Ð¼Ñ Ð°Ð´ÑеÑÑ Ð½Ð°Ñ Ð¾Ð´Ð¸ÑÑÑ Ð¸Ð½ÑеÑнеÑ-ÑÐ°Ð¹Ñ sitefinder.verisign.com, пÑинадлежаÑий Ñамой компании, и коÑоÑÑй, возможно, ÑоÑÑÐ°Ð²Ð¸Ñ ÐºÐ¾Ð½ÐºÑÑенÑÐ¸Ñ ÐºÑÑпнейÑим поиÑковÑм маÑинам и каÑалогам, пÑиÑем без ÐºÐ°ÐºÐ¸Ñ -либо маÑкеÑинговÑÑ ÑÑилий. Ðа новÑÑ Ð¸Ð½Ð¸ÑиаÑÐ¸Ð²Ñ Ð½ÐµÐ¼ÐµÐ´Ð»ÐµÐ½Ð½Ð¾ оÑÑеагиÑовала Internet Software Consortium (ISC), пÑоизводиÑÐµÐ»Ñ Ð¿Ð¾Ð¿ÑлÑÑного DNS ÑеÑвеÑа BIND, коÑоÑÑй иÑполÑзÑеÑÑÑ Ð½Ð° 80% вÑÐµÑ DNS-ÑеÑвеÑов в миÑе. ÐÑпÑÑенное иÑпÑавление (http://www.isc.org/products/BIND/delegation-only.html) пÑоÑÑо |
#dig @192.168.16.1 aes.net.nt ns
; <<>> DiG 9.5.1-P3 <<>> @192.168.16.1 aes.net.nt ns ; (1 server found) ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 9056 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1 ;; QUESTION SECTION: ;aes.net.nt. IN NS ;; ANSWER SECTION: aes.net.nt. 604800 IN NS debian1.aes.net.nt. ;; ADDITIONAL SECTION: debian1.aes.net.nt. 604800 IN A 192.168.16.1 ;; Query time: 21 msec ;; SERVER: 192.168.16.1#53(192.168.16.1) ;; WHEN: Wed Dec 2 10:33:06 2009 ;; MSG SIZE rcvd: 66 |
#ssibilities? (y or n)
![]() |
#ssh 192.168.16.1
Enter passphrase for key '/root/.ssh/id_rsa': Last login: Tue Dec 1 11:55:02 2009 from 192.168.16.2 Linux debiant 2.6.18-5-xen-686 #1 SMP Fri Jun 1 05:05:24 UTC 2007 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. l3-agent is already running: pid=1785; pidfile=/root/.lilalo/l3-agent.pid http://rtfm.fsay.net/modules.php?name=Articles&file=view&articles_id=117 |
#ssh 192.168.16.7
The authenticity of host '192.168.16.7 (192.168.16.7)' can't be established. RSA key fingerprint is 51:5b:32:d8:70:19:6d:04:c7:b4:11:49:13:74:dc:bc. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '192.168.16.7' (RSA) to the list of known hosts. root@192.168.16.7's password: Last login: Tue Dec 1 11:33:15 2009 from 192.168.16.8 Linux debiant 2.6.18-5-xen-686 #1 SMP Fri Jun 1 05:05:24 UTC 2007 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. l3-agent is already running: pid=1548; pidfile=/root/.lilalo/l3-agent.pid |
$[ -f /etc/bash_completion ] ; echo $?
0 |
#ssh 192.168.16.1
Enter passphrase for key '/root/.ssh/id_rsa': Last login: Wed Dec 2 10:34:34 2009 from debian13.net.nt Linux debiant 2.6.18-5-xen-686 #1 SMP Fri Jun 1 05:05:24 UTC 2007 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. l3-agent is already running: pid=1785; pidfile=/root/.lilalo/l3-agent.pid |
#echo "http://www.securitylab.ru/?ID=40380
![]() оÑибоÑно набÑаннÑй адÑÐµÑ Ð² ÑÑÑоке бÑаÑзеÑа Ñ ÑаÑÑиÑениÑми .NET и .COM на 64.94.110.11, Ð½Ð°Ñ Ð¾Ð´ÑÑийÑÑ Ð² ÑаÑпоÑÑжении âVerisignâ.¾ имени или пÑоÑÑо о нÑÐ¸Ñ ÐºÑÑпнейÑим поиÑковÑм маÑинам и каÑалогам, пÑиÑем без ÐºÐ°ÐºÐ¸Ñ -либо маÑкеÑинговÑÑ ÑÑилий.Ñй, возможно, ÑоÑÑÐ°Ð²Ð¸Ñ ÐºÐ¾Ð½ÐºÑÑен |
#dig @192.168.16.254 net.nt axfr
![]() |
#dig @192.168.16.254 net.nt axfr > /tmp/ns
![]() |
#dig @192.168.16.7 amel.net.nt axfr
; <<>> DiG 9.5.1-P3 <<>> @192.168.16.7 amel.net.nt axfr ; (1 server found) ;; global options: printcmd amel.net.nt. 86400 IN SOA debian7.amel.net.nt. root.debian7.amel.net.nt. 1 604800 86400 2419200 86400 amel.net.nt. 86400 IN NS debian7.amel.net.nt. amel.net.nt. 86400 IN A 192.168.16.7 amel.net.nt. 86400 IN MX 5 mx1.amel.net.nt. amel.net.nt. 86400 IN MX 10 mx2.amel.net.nt. debian7.amel.net.nt. 86400 IN A 192.168.16.7 debian8.amel.net.nt. 86400 IN A 192.168.16.8 debian9.amel.net.nt. 86400 IN A 192.168.16.9 ftp.amel.net.nt. 86400 IN CNAME debian7.amel.net.nt. mx1.amel.net.nt. 86400 IN CNAME debian8.amel.net.nt. mx2.amel.net.nt. 86400 IN CNAME debian9.amel.net.nt. www.amel.net.nt. 86400 IN CNAME debian7.amel.net.nt. amel.net.nt. 86400 IN SOA debian7.amel.net.nt. root.debian7.amel.net.nt. 1 604800 86400 2419200 86400 ;; Query time: 11 msec ;; SERVER: 192.168.16.7#53(192.168.16.7) ;; WHEN: Wed Dec 2 11:01:52 2009 ;; XFR size: 13 records (messages 1, bytes 312) |
#dig @192.168.16.7 amel.net.nt axfr
; <<>> DiG 9.5.1-P3 <<>> @192.168.16.7 amel.net.nt axfr ; (1 server found) ;; global options: printcmd ; Transfer failed. |
#dig @192.168.16.7 amel.net.nt axfr
; <<>> DiG 9.5.1-P3 <<>> @192.168.16.7 amel.net.nt axfr ; (1 server found) ;; global options: printcmd ; Transfer failed. |
#dig @192.168.16.7 16.168.192.in-addr.arpa axfr
; <<>> DiG 9.5.1-P3 <<>> @192.168.16.7 16.168.192.in-addr.arpa axfr ; (1 server found) ;; global options: printcmd 16.168.192.in-addr.arpa. 604800 IN SOA debian7.amel.net.nt. root.debian7.amel.net.nt. 1 604800 86400 2419200 604800 16.168.192.in-addr.arpa. 604800 IN NS debian7.amel.net.net. 7.16.168.192.in-addr.arpa. 604800 IN PTR debian7.amel.net.net. 8.16.168.192.in-addr.arpa. 604800 IN PTR debian8.amel.net.net. 9.16.168.192.in-addr.arpa. 604800 IN PTR debian9.amel.net.net. 16.168.192.in-addr.arpa. 604800 IN SOA debian7.amel.net.nt. root.debian7.amel.net.nt. 1 604800 86400 2419200 604800 ;; Query time: 3 msec ;; SERVER: 192.168.16.7#53(192.168.16.7) ;; WHEN: Wed Dec 2 11:04:29 2009 ;; XFR size: 6 records (messages 1, bytes 235) |
#~
![]() bash: /root: is a directory |
#echo "http://www.securitylab.ru/?ID=40380
оÑибоÑно набÑаннÑй адÑÐµÑ Ð² ÑÑÑоке бÑаÑзеÑа Ñ ÑаÑÑиÑениÑми .NET и .COM на 64.94.110.11, Ð½Ð°Ñ Ð¾Ð´ÑÑийÑÑ Ð² ÑаÑпоÑÑжении âVerisignâ.¾ имени или пÑоÑÑо о нÑÐ¸Ñ ÐºÑÑпнейÑим поиÑковÑм маÑинам и каÑалогам, пÑиÑем без ÐºÐ°ÐºÐ¸Ñ -либо маÑкеÑинговÑÑ ÑÑилий.Ñй, возможно, ÑоÑÑÐ°Ð²Ð¸Ñ ÐºÐ¾Ð½ÐºÑÑен вÑй паÑÑ Ð¾Ñ ISC, ÑÐµÐºÐ»Ð°Ð¼Ð½Ð¾Ð¼Ñ Ð½Ð°ÑÐ¸Ð½Ð°Ð½Ð¸Ñ VeriSign пÑидÑÑÑÑ ÑÑго."\nºÐ¾ на делегиÑованнÑе адÑеÑа. ÐÑли болÑÑинÑÑво Ð¸Ñ Ð²Ð»Ð°Ð´ÐµÐ»ÑÑев ÑÑÑановÑÑ Ð½Ð¾Ð² http://www.securitylab.ru/?ID=40380 Ðа пÑоÑлой неделе VeriSign пÑедÑÑавила новÑй ÑеÑвиÑ, коÑоÑÑй пеÑенапÑавлÑÐµÑ Ð»Ñбой запÑÐ¾Ñ Ð½ÐµÑÑÑеÑÑвÑÑÑего доменного имени или пÑоÑÑо оÑибоÑно набÑаннÑй адÑÐµÑ Ð² ÑÑÑоке бÑаÑзеÑа Ñ ÑаÑÑиÑениÑми .NET и .COM на 64.94.110.11, Ð½Ð°Ñ Ð¾Ð´ÑÑийÑÑ Ðо ÑÑÐ¾Ð¼Ñ Ð°Ð´ÑеÑÑ Ð½Ð°Ñ Ð¾Ð´Ð¸ÑÑÑ Ð¸Ð½ÑеÑнеÑ-ÑÐ°Ð¹Ñ sitefinder.verisign.com, пÑинадлежаÑий Ñамой компании, и коÑоÑÑй, возможно, ÑоÑÑÐ°Ð²Ð¸Ñ ÐºÐ¾Ð½ÐºÑÑенÑÐ¸Ñ ÐºÑÑпнейÑим поиÑковÑм маÑинам и каÑалогам, пÑиÑем без ÐºÐ°ÐºÐ¸Ñ -либо маÑкеÑинговÑÑ ÑÑилий. Ðа новÑÑ Ð¸Ð½Ð¸ÑиаÑÐ¸Ð²Ñ Ð½ÐµÐ¼ÐµÐ´Ð»ÐµÐ½Ð½Ð¾ оÑÑеагиÑовала Internet Software Consortium (ISC), пÑоизводиÑÐµÐ»Ñ Ð¿Ð¾Ð¿ÑлÑÑного DNS ÑеÑвеÑа BIND, коÑоÑÑй иÑполÑзÑеÑÑÑ Ð½Ð° 80% вÑÐµÑ DNS-ÑеÑвеÑов в миÑе. ÐÑпÑÑенное иÑпÑавление (http://www.isc.org/products/BIND/delegation-only.html) пÑоÑÑо |
#echo "http://www.securitylab.ru/?ID=40380
оÑибоÑно набÑаннÑй адÑÐµÑ Ð² ÑÑÑоке бÑаÑзеÑа Ñ ÑаÑÑиÑениÑми .NET и .COM на 64.94.110.11, Ð½Ð°Ñ Ð¾Ð´ÑÑийÑÑ Ð² ÑаÑпоÑÑжении âVerisignâ.¾ имени или пÑоÑÑо о нÑÐ¸Ñ ÐºÑÑпнейÑим поиÑковÑм маÑинам и каÑалогам, пÑиÑем без ÐºÐ°ÐºÐ¸Ñ -либо маÑкеÑинговÑÑ ÑÑилий.Ñй, возможно, ÑоÑÑÐ°Ð²Ð¸Ñ ÐºÐ¾Ð½ÐºÑÑен |
#\
> |
#dig @192.168.16.4 nz.net.nt axfr
; <<>> DiG 9.5.1-P3 <<>> @192.168.16.4 nz.net.nt axfr ; (1 server found) ;; global options: printcmd ; Transfer failed. |
#ssh 192.168.16.4
The authenticity of host '192.168.16.4 (192.168.16.4)' can't be established. RSA key fingerprint is 51:5b:32:d8:70:19:6d:04:c7:b4:11:49:13:74:dc:bc. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '192.168.16.4' (RSA) to the list of known hosts. root@192.168.16.4's password: Last login: Mon Nov 30 16:45:35 2009 from host204.net.nt Linux debiant 2.6.18-5-xen-686 #1 SMP Fri Jun 1 05:05:24 UTC 2007 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. l3-agent is already running: pid=1733; pidfile=/root/.lilalo/l3-agent.pid |
#ssh 192.168.16.4
root@192.168.16.4's password: Last login: Wed Dec 2 11:23:59 2009 from debian13.net.nt Linux debiant 2.6.18-5-xen-686 #1 SMP Fri Jun 1 05:05:24 UTC 2007 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. l3-agent is already running: pid=1733; pidfile=/root/.lilalo/l3-agent.pid |
#dig @192.168.16.4 nz.net.nt axfr
; <<>> DiG 9.5.1-P3 <<>> @192.168.16.4 nz.net.nt axfr ; (1 server found) ;; global options: printcmd nz.net.nt. 604800 IN SOA nz.net.nt. nazgual.ukr.net.nz.net.nt. 3 604800 86400 2419200 604800 nz.net.nt. 604800 IN NS debian4.net.nt. debian6.nz.net.nt. 604800 IN A 192.168.16.6 debian4.nz.net.nt. 604800 IN A 192.168.16.4 debian5.nz.net.nt. 604800 IN A 192.168.16.5 nz.net.nt. 604800 IN SOA nz.net.nt. nazgual.ukr.net.nz.net.nt. 3 604800 86400 2419200 604800 ;; Query time: 26 msec ;; SERVER: 192.168.16.4#53(192.168.16.4) ;; WHEN: Wed Dec 2 11:30:29 2009 ;; XFR size: 6 records (messages 6, bytes 330) |
#ssh 192.168.16.4
root@192.168.16.4's password: Last login: Wed Dec 2 11:30:25 2009 from debian13.net.nt Linux debiant 2.6.18-5-xen-686 #1 SMP Fri Jun 1 05:05:24 UTC 2007 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. l3-agent is already running: pid=1733; pidfile=/root/.lilalo/l3-agent.pid |
#ssh 192.168.16.11
root@192.168.16.11's password: Last login: Wed Dec 2 10:31:03 2009 from debian1.net.nt Linux debiant 2.6.18-5-xen-686 #1 SMP Fri Jun 1 05:05:24 UTC 2007 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. l3-agent is already running: pid=1770; pidfile=/root/.lilalo/l3-agent.pid |
#ssh 192.168.16.254
root@192.168.16.254's password: Linux debian 2.6.18.8-xen #1 SMP Wed Nov 5 11:18:00 EET 2008 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the 37 38 host1.max A 192.168.16.24 39 ; 40 ;andr.net.nt. NS host1.andr 41 ;host1.andr A 192.168.16.25 42 ; ... 3 18 ; Serial 4 604800 ; Refresh 5 86400 ; Retry 6 2419200 ; Expire 7 604800 ) ; Negative Cache TTL 8 9 @ NS debian.net.nt. 10 @ MX 5 debian "/etc/bind/db.net.nt" 307L, 9113C Connection to 192.168.16.254 closed. |
#ssh 192.168.16.11
root@192.168.16.11's password: Last login: Wed Dec 2 11:45:05 2009 from 192.168.16.13 Linux debiant 2.6.18-5-xen-686 #1 SMP Fri Jun 1 05:05:24 UTC 2007 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. l3-agent is already running: pid=1770; pidfile=/root/.lilalo/l3-agent.pid |
#less /var/log/daemon.log
|
#ssh 192.168.16.111
![]() |
#ssh 192.168.16.11
root@192.168.16.11's password: Last login: Wed Dec 2 12:08:04 2009 from 192.168.16.13 Linux debiant 2.6.18-5-xen-686 #1 SMP Fri Jun 1 05:05:24 UTC 2007 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. l3-agent is already running: pid=1770; pidfile=/root/.lilalo/l3-agent.pid |
#ssh 192.168.16.254
26 type master; { 27 file "/etc/bind/db.127"; { 27,1-8 10% } 30 zone "0.in-addr.arpa" { 31 type master; { 32 file "/etc/bind/db.0"; ... Nov 29 06:27:41 debian dhcpd: DHCPACK on 192.168.7.209 to 00:04:13:24:e5:7e via ak0 Nov 29 06:27:43 debian dhcpd: DHCPREQUEST for 192.168.7.210 from 00:04:13:25:67:21 via ak0 Nov 29 06:27:43 debian dhcpd: DHCPACK on 192.168.7.210 to 00:04:13:25:67:21 via ak0 Nov 29 06:29:47 debian dhcpd: DHCPREQUEST for 192.168.7.219 from 00:1d:46:f1:9f:c0 via ak0 Nov 29 06:29:47 debian dhcpd: DHCPACK on 192.168.7.219 to 00:1d:46:f1:9f:c0 via ak0 Nov 29 06:30:02 debian dhcpd: DHCPREQUEST for 192.168.7.215 from 00:0e:a6:20:4c:29 via ak0 Nov 29 06:30:02 debian dhcpd: DHCPACK on 192.168.7.215 to 00:0e:a6:20:4c:29 via ak0 Nov 29 06:31:38 debian dhcpd: DHCPREQUEST for 192.168.7.202 from 00:14:c2:fd:f3:80 via ak0 Nov 29 06:31:38 debian dhcpd: DHCPACK on 192.168.7.202 to 00:14:c2:fd:f3:80 via ak0 Connection to 192.168.16.254 closed. |
#ssh 192.168.16.11
root@192.168.16.11's password: Last login: Wed Dec 2 12:09:14 2009 from 192.168.16.13 Linux debiant 2.6.18-5-xen-686 #1 SMP Fri Jun 1 05:05:24 UTC 2007 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. l3-agent is already running: pid=1770; pidfile=/root/.lilalo/l3-agent.pid |
#ssh 192.168.16.254
1 // This is the primary configuration file for the BIND DNS server named. 2 // 3 // Please read /usr/share/doc/bind9/README.Debian.gz for information on the 4 // structure of BIND configuration files in Debian, *BEFORE* you customize 5 // this configuration file. 6 // "/etc/bind/named.conf" 63L, 1233C IPTABLES(8) IPTABLES(8) NAME NAME iptables - administration tool for IPv4 packet filtering and NAT ... "/etc/protocols" 59L, 2626C 13 ggp 3 GGP # gateway-gateway protocol 14 ipencap 4 IP-ENCAP # IP encapsulated in IP (officially ``IP'') 15 st 5 ST # ST datagram mode 16 tcp 6 TCP # transmission control protocol 17 egp 8 EGP # exterior gateway protocol 18 igp 9 IGP # any private interior gateway (Cisco) 19 pup 12 PUP # PARC universal packet protocol 20 udp 17 UDP # user datagram protocol Connection to 192.168.16.254 closed. |
#iptables
![]() iptables v1.3.6: no command specified Try `iptables -h' or 'iptables --help' for more information. |
#iptables -I
![]() iptables v1.3.6: Unknown arg `-I' Try `iptables -h' or 'iptables --help' for more information. |
#man iptables
|
#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 |
#iptables -L -t filter
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 |
#iptables -t filter -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 |
#iptables -t mangle -L
Chain PREROUTING (policy ACCEPT) target prot opt source destination 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 Chain POSTROUTING (policy ACCEPT) target prot opt source destination |
#iptables -t nat -L
Chain PREROUTING (policy ACCEPT) target prot opt source destination Chain POSTROUTING (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination |
#netstat -lnp | grep :110
tcp 0 0 0.0.0.0:110 0.0.0.0:* LISTEN 1480/popa3d |
#iptables -t filter -A INPUT -s 192.168.16.4 --dport 110 -p tcp -j REJECT
![]() iptables v1.3.6: Unknown arg `--dport' Try `iptables -h' or 'iptables --help' for more information. |
#iptables -t filter -A INPUT -s 192.168.16.4 -dport 110 -p tcp -j REJECT
![]() Bad argument `110' Try `iptables -h' or 'iptables --help' for more information. |
#iptables -t filter -A INPUT -s 192.168.16.4 -dport 110 -p tcp -j REJECT
![]() Bad argument `110' Try `iptables -h' or 'iptables --help' for more information. |
#iptables -t filter -A INPUT -s 192.168.16.4 -p tcp -dport 110 -j REJECT
![]() Bad argument `110' Try `iptables -h' or 'iptables --help' for more information. |
#iptables -t filter -A INPUT -s 192.168.16.4 -p tcp -dport :110 -j REJECT
![]() Bad argument `:110' Try `iptables -h' or 'iptables --help' for more information. |
#man iptables
|
##iptables -t nat -A OUTPUT -p icmp -d 192.168.16.1 -j SNAT
|
#man iptables
|
#iptables -t nat -A OUTPUT -d 192.168.16.1 -j SNAT --to 172.17.1.200
![]() iptables: Invalid argument |
#iptables -t nat -A OUTPUT -d 192.168.16.1 -j SNAT --to 172.17.1.200
![]() |
#man iptables
|
#man iptables
|
#iptables -h
iptables v1.3.6 Usage: iptables -[AD] chain rule-specification [options] iptables -[RI] chain rulenum rule-specification [options] iptables -D chain rulenum [options] iptables -[LFZ] [chain] [options] iptables -[NX] chain iptables -E old-chain-name new-chain-name iptables -P chain target [options] iptables -h (print this help information) Commands: ... --out-interface -o [!] output name[+] network interface name ([+] for wildcard) --table -t table table to manipulate (default: `filter') --verbose -v verbose mode --line-numbers print line numbers when listing --exact -x expand numbers (display exact values) [!] --fragment -f match second or further fragments only --modprobe=<command> try to insert modules using this command --set-counters PKTS BYTES set the counter during insert/append [!] --version -V print package version. |
#iptables -h | grep uid
![]() |
#iptables -h
iptables v1.3.6 Usage: iptables -[AD] chain rule-specification [options] iptables -[RI] chain rulenum rule-specification [options] iptables -D chain rulenum [options] iptables -[LFZ] [chain] [options] iptables -[NX] chain iptables -E old-chain-name new-chain-name iptables -P chain target [options] iptables -h (print this help information) Commands: ... --out-interface -o [!] output name[+] network interface name ([+] for wildcard) --table -t table table to manipulate (default: `filter') --verbose -v verbose mode --line-numbers print line numbers when listing --exact -x expand numbers (display exact values) [!] --fragment -f match second or further fragments only --modprobe=<command> try to insert modules using this command --set-counters PKTS BYTES set the counter during insert/append [!] --version -V print package version. |
#iptables -t nat -A OUTPUT -p tcp --dport 110 -d 192.168.16.1 -j DNAT --to 127.0.0.1:110
|
#iptables -t nat -L
Chain PREROUTING (policy ACCEPT) target prot opt source destination Chain POSTROUTING (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination DNAT tcp -- anywhere debian1.aes.net.nt tcp dpt:pop3 to:127.0.0.1:110 |
#iptables -t nat -L -n
Chain PREROUTING (policy ACCEPT) target prot opt source destination Chain POSTROUTING (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination DNAT tcp -- 0.0.0.0/0 192.168.16.1 tcp dpt:110 to:127.0.0.1:110 |
#iptables -t nat -L -n --line-numbers
Chain PREROUTING (policy ACCEPT) num target prot opt source destination Chain POSTROUTING (policy ACCEPT) num target prot opt source destination Chain OUTPUT (policy ACCEPT) num target prot opt source destination 1 DNAT tcp -- 0.0.0.0/0 192.168.16.1 tcp dpt:110 to:127.0.0.1:110 |
#iptables -t nat -D OUTPUT 1
|
#iptables -t nat -L -n --line-numbers
Chain PREROUTING (policy ACCEPT) num target prot opt source destination Chain POSTROUTING (policy ACCEPT) num target prot opt source destination Chain OUTPUT (policy ACCEPT) num target prot opt source destination |
#iptables -t nat -A OUTPUT --uid-owner 0 -p tcp --dport 110 -d 192.168.16.1 -j DNAT --to 127.0.0.1:110
![]() iptables v1.3.6: Unknown arg `--uid-owner' Try `iptables -h' or 'iptables --help' for more information. |
#man iptables
|
#modprobe ip
![]() ip6_queue ipcomp6 ipmi_watchdog ipt_CLUSTERIP ipt_ULOG ip6table_filter ip_conntrack ip_nat ipt_dscp ipv6 ip6table_mangle ip_conntrack_amanda ip_nat_amanda ipt_DSCP ip_vs ip6table_raw ip_conntrack_ftp ip_nat_ftp ipt_ecn ip_vs_dh ip6_tables ip_conntrack_h323 ip_nat_h323 ipt_ECN ip_vs_ftp ip6t_ah ip_conntrack_irc ip_nat_irc ipt_hashlimit ip_vs_lblc ip6t_dst ip_conntrack_netbios_ns ip_nat_pptp ipt_iprange ip_vs_lblcr ip6t_eui64 ip_conntrack_netlink ip_nat_sip ipt_LOG ip_vs_lc ip6t_frag ip_conntrack_pptp ip_nat_snmp_basic ipt_MASQUERADE ip_vs_nq ip6t_hbh ip_conntrack_proto_sctp ip_nat_tftp ipt_NETMAP ip_vs_rr ip6t_hl ip_conntrack_sip ip_queue ipt_owner ip_vs_sed ip6t_HL ip_conntrack_tftp ipr ipt_recent ip_vs_sh ip6t_ipv6header ipddp ips ipt_REDIRECT ip_vs_wlc ip6t_LOG ip_gre iptable_filter ipt_REJECT ip_vs_wrr ip6t_owner iphase iptable_mangle ipt_SAME ipw ip6t_REJECT ipip iptable_nat ipt_TCPMSS ipw2100 ip6t_rt ipmi_devintf iptable_raw ipt_tos ipw2200 ip6_tunnel ipmi_msghandler ip_tables ipt_TOS ipx ipaq ipmi_poweroff ipt_addrtype ipt_ttl ipcomp ipmi_si ipt_ah ipt_TTL |
#modprobe ipt_owner
|
#iptables -t nat -A OUTPUT --uid-owner 0 -p tcp --dport 110 -d 192.168.16.1 -j DNAT --to 127.0.0.1:110
![]() iptables v1.3.6: Unknown arg `--uid-owner' Try `iptables -h' or 'iptables --help' for more information. |
#iptables -t nat -A OUTPUT -m owner --uid-owner 0 -p tcp --dport 110 -d 192.168.16.1 -j DNAT --to 127.0.0.1:110
|
#iptables -L -n
Chain INPUT (policy ACCEPT) target prot opt source destination REJECT tcp -- 192.168.16.4 0.0.0.0/0 tcp dpt:110 reject-with icmp-port-unreachable Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination |
#iptables -L -n -t nat
Chain PREROUTING (policy ACCEPT) target prot opt source destination Chain POSTROUTING (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination DNAT tcp -- 0.0.0.0/0 192.168.16.1 OWNER UID match 0 tcp dpt:110 to:127.0.0.1:110 |
Время первой команды журнала | 16:22:14 2009-12- 1 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 13:45:08 2009-12- 2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 99 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 25.25 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 1.01 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 3.57 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.46 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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