/l3/users/27-07-2009/nt-fbsdnet/fbsd4.net.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 :16 :17 :18 :19 |
|
$ssh 192.168.16.7
![]() user@192.168.16.7's password: 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. Last login: Wed Aug 5 18:27:53 2009 from 192.168.16.5 l3-agent is already running: pid=1529; pidfile=/home/user/.lilalo/l3-agent.pid |
$ssh 192.168.16.7
user@192.168.16.7's password: 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. Last login: Wed Aug 5 18:27:53 2009 from 192.168.16.5 l3-agent is already running: pid=1529; pidfile=/home/user/.lilalo/l3-agent.pid |
#su
![]() |
#su
![]() |
#su
|
$ssh 192.168.16.7
![]() user@192.168.16.7's password: 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. Last login: Wed Aug 5 18:31:52 2009 from 192.168.16.4 l3-agent is already running: pid=1529; pidfile=/home/user/.lilalo/l3-agent.pid |
$ssh 192.168.16.7
![]() user@192.168.16.7's password: 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. Last login: Wed Aug 5 18:31:52 2009 from 192.168.16.4 l3-agent is already running: pid=1529; pidfile=/home/user/.lilalo/l3-agent.pid |
$ssh 192.168.16.7
![]() user@192.168.16.7's password: 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. Last login: Wed Aug 5 18:31:52 2009 from 192.168.16.4 l3-agent is already running: pid=1529; pidfile=/home/user/.lilalo/l3-agent.pid |
$ssh 192.168.16.7
![]() user@192.168.16.7's password: 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. Last login: Wed Aug 5 18:31:52 2009 from 192.168.16.4 l3-agent is already running: pid=1529; pidfile=/home/user/.lilalo/l3-agent.pid |
$ssh 192.168.16.7
![]() user@192.168.16.7's password: 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. Last login: Wed Aug 5 18:31:52 2009 from 192.168.16.4 l3-agent is already running: pid=1529; pidfile=/home/user/.lilalo/l3-agent.pid |
$ssh 192.168.16.7
![]() user@192.168.16.7's password: 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. Last login: Wed Aug 5 18:31:52 2009 from 192.168.16.4 l3-agent is already running: pid=1529; pidfile=/home/user/.lilalo/l3-agent.pid |
$ssh 192.168.16.7
![]() user@192.168.16.7's password: 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. Last login: Wed Aug 5 18:31:52 2009 from 192.168.16.4 l3-agent is already running: pid=1529; pidfile=/home/user/.lilalo/l3-agent.pid |
$ssh 192.168.16.7
user@192.168.16.7's password: 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. Last login: Wed Aug 5 18:31:52 2009 from 192.168.16.4 l3-agent is already running: pid=1529; pidfile=/home/user/.lilalo/l3-agent.pid |
#echo $DISPLAY
![]() :1.0 |
#echo $DISPLAY
:1.0 |
#xhost -
![]() access control enabled, only authorized clients can connect |
#xhost -
![]() access control enabled, only authorized clients can connect |
#xhost -
access control enabled, only authorized clients can connect |
#echo $DISPLAY
![]() :1.0 |
#echo $DISPLAY
![]() :1.0 |
#echo $DISPLAY
:1.0 |
#vim /etc/inetd.conf
![]() --- /tmp/l3-saved-26768.1658.10656 2009-08-05 20:09:00.000000000 +0300 +++ /etc/inetd.conf 2009-08-05 20:09:31.000000000 +0300 @@ -12,7 +12,7 @@ #ftp stream tcp6 nowait root /usr/libexec/lukemftpd ftpd -l -r #ssh stream tcp nowait root /usr/sbin/sshd sshd -i -4 #ssh stream tcp6 nowait root /usr/sbin/sshd sshd -i -6 -#telnet stream tcp nowait root /usr/libexec/telnetd telnetd +telnet stream tcp nowait root /usr/libexec/telnetd telnetd #telnet stream tcp6 nowait root /usr/libexec/telnetd telnetd #shell stream tcp nowait root /usr/libexec/rshd rshd #shell stream tcp6 nowait root /usr/libexec/rshd rshd |
#vim /etc/inetd.conf
--- /tmp/l3-saved-26768.1658.10656 2009-08-05 20:09:00.000000000 +0300 +++ /etc/inetd.conf 2009-08-05 20:09:31.000000000 +0300 @@ -12,7 +12,7 @@ #ftp stream tcp6 nowait root /usr/libexec/lukemftpd ftpd -l -r #ssh stream tcp nowait root /usr/sbin/sshd sshd -i -4 #ssh stream tcp6 nowait root /usr/sbin/sshd sshd -i -6 -#telnet stream tcp nowait root /usr/libexec/telnetd telnetd +telnet stream tcp nowait root /usr/libexec/telnetd telnetd #telnet stream tcp6 nowait root /usr/libexec/telnetd telnetd #shell stream tcp nowait root /usr/libexec/rshd rshd #shell stream tcp6 nowait root /usr/libexec/rshd rshd |
#killall -1 inetd
![]() No matching processes were found |
#killall -1 inetd
![]() No matching processes were found |
#telnet 127.0.0.1
![]() Trying 127.0.0.1... telnet: connect to address 127.0.0.1: Connection refused telnet: Unable to connect to remote host |
#telnet 127.0.0.1
![]() Trying 127.0.0.1... telnet: connect to address 127.0.0.1: Connection refused telnet: Unable to connect to remote host |
#top
![]() last pid: 27723; load averages: 0.01, 0.07, 0.31 up 4+23:52:05 20:11:07 54 processes 2.3 running 0.0 sleepin 2.6 0.0 95.1 CPU states: % user, % nice, % system, % interrupt, % idle Mem: 76M Active, 189M Inact, 76M Wired, 40K Cache, 60M Buf, 149M Free 26674 nobody 96 21088K 20196K select 1:30 0.29% Xvnc Swap: 2015M Total, 201596Free 34936K 21268K select 0:39 0.05% Terminal 26727 8 10064K 8712K nanslp 17:06 perl5.8.8 1835 root 8 9992K 8680K nanslp 16:28 perl5.8.8 19418 PID USERNAME THR PRI NICE SIZE RES STATE TIME WCPU COMMAND ... 907 root 1 8 0 1396K 1100K nanslp 0:02 0.00% cron 26703 root 1 96 0 29660K 13888K select 0:02 0.00% xfce4-panel 736 root 1 96 0 1404K 1072K select 0:01 0.00% syslogd 26699 root 1 96 0 28348K 9976K select 0:01 0.00% xfce-mcs-mana 27471 user 1 96 0 3480K 2928K select 0:01 0.00% ssh 26701 root 1 96 0 27852K 11992K select 0:01 0.00% xfwm4 27410 user 1 96 0 1348K 936K select 0:00 0.00% script 27351 root 1 96 0 1348K 936K select 0:00 0.00% script 27292 root 1 96 0 1348K 936K select 0:00 0.00% script 795 root 1 96 0 1296K 824K select 0:00 0.00% usbd |
#top
last pid: 27723; load averages: 0.01, 0.07, 0.31 up 4+23:52:05 20:11:07 54 processes 2.3 running 0.0 sleepin 2.6 0.0 95.1 CPU states: % user, % nice, % system, % interrupt, % idle Mem: 76M Active, 189M Inact, 76M Wired, 40K Cache, 60M Buf, 149M Free 26674 nobody 96 21088K 20196K select 1:30 0.29% Xvnc Swap: 2015M Total, 201596Free 34936K 21268K select 0:39 0.05% Terminal 26727 8 10064K 8712K nanslp 17:06 perl5.8.8 1835 root 8 9992K 8680K nanslp 16:28 perl5.8.8 19418 PID USERNAME THR PRI NICE SIZE RES STATE TIME WCPU COMMAND ... 907 root 1 8 0 1396K 1100K nanslp 0:02 0.00% cron 26703 root 1 96 0 29660K 13888K select 0:02 0.00% xfce4-panel 736 root 1 96 0 1404K 1072K select 0:01 0.00% syslogd 26699 root 1 96 0 28348K 9976K select 0:01 0.00% xfce-mcs-mana 27471 user 1 96 0 3480K 2928K select 0:01 0.00% ssh 26701 root 1 96 0 27852K 11992K select 0:01 0.00% xfwm4 27410 user 1 96 0 1348K 936K select 0:00 0.00% script 27351 root 1 96 0 1348K 936K select 0:00 0.00% script 27292 root 1 96 0 1348K 936K select 0:00 0.00% script 795 root 1 96 0 1296K 824K select 0:00 0.00% usbd |
#vim /etc/rconf
![]() |
#vim /etc/rconf
|
#:wq
![]() ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ "/etc/ipfw.conf" [New File] 1 line, 30 characters written |
#:wq
![]() ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ "/etc/ipfw.conf" [New File] 1 line, 30 characters written |
#:wq
![]() ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ "/etc/ipfw.conf" [New File] 1 line, 30 characters written |
#:wq
![]() ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ "/etc/ipfw.conf" [New File] 1 line, 30 characters written |
#vim /etc/rc.conf
![]() |
#vim /etc/rc.conf
![]() |
#vim /etc/rc.conf
![]() |
#vim /etc/rc.conf
|
#:;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
![]() |
#:;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
![]() |
#:;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
![]() |
#:;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
#vim /etc/rc.conf1
![]() |
#vim /etc/rc.conf1
![]() |
#vim /etc/rc.conf1
![]() |
#vim /etc/rc.conf1
|
#:q
![]() |
#:q
![]() |
#:q
|
#ls
![]() .ICEauthority .gnome2_private .recently-used.xbel .Trash .gstreamer-0.10 .ssh .Xauthority .gtkrc-1.2-gnome2 .themes .bash_history .history .thumbnails .bash_profile .icons .vnc .bashrc .k5login .xsession .cache .l3rc .xsession-errors .config .lesshst .xsmIk2fG7 .cshrc .lilalo Desktop .dbus .local install .gconf .login mbox .gconfd .metacity nautilus-debug-log.txt .gnome .nautilus prepare-freebsd.sh .gnome2 .profile rc.conf1 |
#ls
![]() .ICEauthority .gnome2_private .recently-used.xbel .Trash .gstreamer-0.10 .ssh .Xauthority .gtkrc-1.2-gnome2 .themes .bash_history .history .thumbnails .bash_profile .icons .vnc .bashrc .k5login .xsession .cache .l3rc .xsession-errors .config .lesshst .xsmIk2fG7 .cshrc .lilalo Desktop .dbus .local install .gconf .login mbox .gconfd .metacity nautilus-debug-log.txt .gnome .nautilus prepare-freebsd.sh .gnome2 .profile rc.conf1 |
#ls
.ICEauthority .gnome2_private .recently-used.xbel .Trash .gstreamer-0.10 .ssh .Xauthority .gtkrc-1.2-gnome2 .themes .bash_history .history .thumbnails .bash_profile .icons .vnc .bashrc .k5login .xsession .cache .l3rc .xsession-errors .config .lesshst .xsmIk2fG7 .cshrc .lilalo Desktop .dbus .local install .gconf .login mbox .gconfd .metacity nautilus-debug-log.txt .gnome .nautilus prepare-freebsd.sh .gnome2 .profile rc.conf1 |
#ls /etc/
![]() X11 login.conf protocols aliases login.conf.db pwd.db amd.map mac.conf rc apmd.conf mail rc.bsdextended auth.conf mail.rc rc.conf bluetooth make.conf rc.conf1 crontab manpath.config rc.conf_old csh.cshrc manpath.config.bak rc.d csh.login manpath.config.bak.xorg rc.firewall csh.logout master.passwd rc.firewall6 ... hosts.allow pccard_ether snmpd.config hosts.equiv periodic spwd.db hosts.lpd periodic.conf ssh inetd.conf pf.conf ssl ipfw.conf pf.os sysctl.conf isdn phones syslog.conf lilalo portsnap.conf termcap localtime ppp ttys locate.rc printcap usbd.conf login.access profile wall_cmos_clock |
#ls /etc/
![]() X11 login.conf protocols aliases login.conf.db pwd.db amd.map mac.conf rc apmd.conf mail rc.bsdextended auth.conf mail.rc rc.conf bluetooth make.conf rc.conf1 crontab manpath.config rc.conf_old csh.cshrc manpath.config.bak rc.d csh.login manpath.config.bak.xorg rc.firewall csh.logout master.passwd rc.firewall6 ... hosts.allow pccard_ether snmpd.config hosts.equiv periodic spwd.db hosts.lpd periodic.conf ssh inetd.conf pf.conf ssl ipfw.conf pf.os sysctl.conf isdn phones syslog.conf lilalo portsnap.conf termcap localtime ppp ttys locate.rc printcap usbd.conf login.access profile wall_cmos_clock |
#ls /etc/
![]() X11 login.conf protocols aliases login.conf.db pwd.db amd.map mac.conf rc apmd.conf mail rc.bsdextended auth.conf mail.rc rc.conf bluetooth make.conf rc.conf1 crontab manpath.config rc.conf_old csh.cshrc manpath.config.bak rc.d csh.login manpath.config.bak.xorg rc.firewall csh.logout master.passwd rc.firewall6 ... hosts.allow pccard_ether snmpd.config hosts.equiv periodic spwd.db hosts.lpd periodic.conf ssh inetd.conf pf.conf ssl ipfw.conf pf.os sysctl.conf isdn phones syslog.conf lilalo portsnap.conf termcap localtime ppp ttys locate.rc printcap usbd.conf login.access profile wall_cmos_clock |
#ls /etc/
X11 login.conf protocols aliases login.conf.db pwd.db amd.map mac.conf rc apmd.conf mail rc.bsdextended auth.conf mail.rc rc.conf bluetooth make.conf rc.conf1 crontab manpath.config rc.conf_old csh.cshrc manpath.config.bak rc.d csh.login manpath.config.bak.xorg rc.firewall csh.logout master.passwd rc.firewall6 ... hosts.allow pccard_ether snmpd.config hosts.equiv periodic spwd.db hosts.lpd periodic.conf ssh inetd.conf pf.conf ssl ipfw.conf pf.os sysctl.conf isdn phones syslog.conf lilalo portsnap.conf termcap localtime ppp ttys locate.rc printcap usbd.conf login.access profile wall_cmos_clock |
#ls /etc | less
![]() |
#ls /etc | less
![]() |
#ls /etc | less
![]() |
#ls /etc | less
|
#cat /etc/defaults/rc.conf | grep firewall
![]() ### Basic network and firewall/security options: ### firewall_enable="NO" # Set to YES to enable firewall functionality firewall_script="/etc/rc.firewall" # Which script to run to set up the firewall firewall_type="UNKNOWN" # Firewall type (see /etc/rc.firewall) firewall_quiet="NO" # Set to YES to suppress rule display firewall_logging="NO" # Set to YES to enable events logging firewall_flags="" # Flags passed to ipfw when type is a file natd_enable="NO" # Enable natd (if firewall_enable == YES). ipv6_firewall_enable="NO" # Set to YES to enable IPv6 firewall ipv6_firewall_script="/etc/rc.firewall6" # Which script to run to set up the IPv6 firewall ipv6_firewall_type="UNKNOWN" # IPv6 Firewall type (see /etc/rc.firewall6) ipv6_firewall_quiet="NO" # Set to YES to suppress rule display ipv6_firewall_logging="NO" # Set to YES to enable events logging ipv6_firewall_flags="" # Flags passed to ip6fw when type is a file |
#cat /etc/defaults/rc.conf | grep firewall
![]() ### Basic network and firewall/security options: ### firewall_enable="NO" # Set to YES to enable firewall functionality firewall_script="/etc/rc.firewall" # Which script to run to set up the firewall firewall_type="UNKNOWN" # Firewall type (see /etc/rc.firewall) firewall_quiet="NO" # Set to YES to suppress rule display firewall_logging="NO" # Set to YES to enable events logging firewall_flags="" # Flags passed to ipfw when type is a file natd_enable="NO" # Enable natd (if firewall_enable == YES). ipv6_firewall_enable="NO" # Set to YES to enable IPv6 firewall ipv6_firewall_script="/etc/rc.firewall6" # Which script to run to set up the IPv6 firewall ipv6_firewall_type="UNKNOWN" # IPv6 Firewall type (see /etc/rc.firewall6) ipv6_firewall_quiet="NO" # Set to YES to suppress rule display ipv6_firewall_logging="NO" # Set to YES to enable events logging ipv6_firewall_flags="" # Flags passed to ip6fw when type is a file |
#cat /etc/defaults/rc.conf | grep firewall
![]() ### Basic network and firewall/security options: ### firewall_enable="NO" # Set to YES to enable firewall functionality firewall_script="/etc/rc.firewall" # Which script to run to set up the firewall firewall_type="UNKNOWN" # Firewall type (see /etc/rc.firewall) firewall_quiet="NO" # Set to YES to suppress rule display firewall_logging="NO" # Set to YES to enable events logging firewall_flags="" # Flags passed to ipfw when type is a file natd_enable="NO" # Enable natd (if firewall_enable == YES). ipv6_firewall_enable="NO" # Set to YES to enable IPv6 firewall ipv6_firewall_script="/etc/rc.firewall6" # Which script to run to set up the IPv6 firewall ipv6_firewall_type="UNKNOWN" # IPv6 Firewall type (see /etc/rc.firewall6) ipv6_firewall_quiet="NO" # Set to YES to suppress rule display ipv6_firewall_logging="NO" # Set to YES to enable events logging ipv6_firewall_flags="" # Flags passed to ip6fw when type is a file |
#cat /etc/defaults/rc.conf | grep firewall
### Basic network and firewall/security options: ### firewall_enable="NO" # Set to YES to enable firewall functionality firewall_script="/etc/rc.firewall" # Which script to run to set up the firewall firewall_type="UNKNOWN" # Firewall type (see /etc/rc.firewall) firewall_quiet="NO" # Set to YES to suppress rule display firewall_logging="NO" # Set to YES to enable events logging firewall_flags="" # Flags passed to ipfw when type is a file natd_enable="NO" # Enable natd (if firewall_enable == YES). ipv6_firewall_enable="NO" # Set to YES to enable IPv6 firewall ipv6_firewall_script="/etc/rc.firewall6" # Which script to run to set up the IPv6 firewall ipv6_firewall_type="UNKNOWN" # IPv6 Firewall type (see /etc/rc.firewall6) ipv6_firewall_quiet="NO" # Set to YES to suppress rule display ipv6_firewall_logging="NO" # Set to YES to enable events logging ipv6_firewall_flags="" # Flags passed to ip6fw when type is a file |
#vim /etc/rc.conf1
![]() |
#vim /etc/rc.conf1
![]() |
#vim /etc/rc.conf1
![]() |
#vim /etc/rc.conf1
|
##############################################################
![]() firewall_enable="YES" firewall_type="OPEN" firewall_script="/etc/rc.firewall natd_enable="YES" |
##############################################################
![]() firewall_enable="YES" firewall_type="OPEN" firewall_script="/etc/rc.firewall natd_enable="YES" |
##############################################################
![]() firewall_enable="YES" firewall_type="OPEN" firewall_script="/etc/rc.firewall natd_enable="YES" |
##############################################################
firewall_enable="YES" firewall_type="OPEN" firewall_script="/etc/rc.firewall natd_enable="YES" |
#:q
![]() rc rc.conf_old rc.initdiskless rc.subr rc.bsdextended rc.d/ rc.resume rc.suspend rc.conf rc.firewall rc.sendmail rc.conf1 rc.firewall6 rc.shutdown |
#:q
![]() rc rc.conf_old rc.initdiskless rc.subr rc.bsdextended rc.d/ rc.resume rc.suspend rc.conf rc.firewall rc.sendmail rc.conf1 rc.firewall6 rc.shutdown |
#:q
![]() rc rc.conf_old rc.initdiskless rc.subr rc.bsdextended rc.d/ rc.resume rc.suspend rc.conf rc.firewall rc.sendmail rc.conf1 rc.firewall6 rc.shutdown |
#cat /etc/defaults/rc.conf | grep firewall >> /etc/rc.conf
![]() |
#cat /etc/defaults/rc.conf | grep firewall >> /etc/rc.conf
![]() |
#:q
![]() rc rc.conf_old rc.initdiskless rc.subr rc.bsdextended rc.d/ rc.resume rc.suspend rc.conf rc.firewall rc.sendmail rc.conf1 rc.firewall6 rc.shutdown |
#cat /etc/defaults/rc.conf | grep firewall >> /etc/rc.conf
|
#vim /etc/rc.conf
![]() |
#vim /etc/rc.conf
![]() |
#vim /etc/rc.conf
|
#vim /etc/rc.conf
![]() --- /tmp/l3-saved-26768.25181.2533 2009-08-05 20:23:39.000000000 +0300 +++ /etc/rc.conf 2009-08-05 20:27:43.000000000 +0300 @@ -21,21 +21,17 @@ route_54_96="-net 192.168.54.96/27 192.168.54.30" route_54_128="-net 192.168.54.128/27 192.168.54.30" xinetd_enable="NO" -firewall_enable="YES" -firewall_type="OPEN" -firewall_script="/etc/rc.firewall -natd_enable="YES" +# +#firewall_enable="YES" +#firewall_type="OPEN" +#firewall_script="/etc/rc.firewall +#natd_enable="YES" +# ### Basic network and firewall/security options: ### -firewall_enable="NO" # Set to YES to enable firewall functionality +firewall_enable="YES" # Set to YES to enable firewall functionality firewall_script="/etc/rc.firewall" # Which script to run to set up the firewall -firewall_type="UNKNOWN" # Firewall type (see /etc/rc.firewall) +firewall_type="OPEN" # Firewall type (see /etc/rc.firewall) firewall_quiet="NO" # Set to YES to suppress rule display firewall_logging="NO" # Set to YES to enable events logging firewall_flags="" # Flags passed to ipfw when type is a file -natd_enable="NO" # Enable natd (if firewall_enable == YES). -ipv6_firewall_enable="NO" # Set to YES to enable IPv6 firewall -ipv6_firewall_script="/etc/rc.firewall6" # Which script to run to set up the IPv6 firewall -ipv6_firewall_type="UNKNOWN" # IPv6 Firewall type (see /etc/rc.firewall6) -ipv6_firewall_quiet="NO" # Set to YES to suppress rule display -ipv6_firewall_logging="NO" # Set to YES to enable events logging -ipv6_firewall_flags="" # Flags passed to ip6fw when type is a file +natd_enable="YES" # Enable natd (if firewall_enable == YES). |
#vim /etc/rc.conf
![]() --- /tmp/l3-saved-26768.25181.2533 2009-08-05 20:23:39.000000000 +0300 +++ /etc/rc.conf 2009-08-05 20:27:43.000000000 +0300 @@ -21,21 +21,17 @@ route_54_96="-net 192.168.54.96/27 192.168.54.30" route_54_128="-net 192.168.54.128/27 192.168.54.30" xinetd_enable="NO" -firewall_enable="YES" -firewall_type="OPEN" -firewall_script="/etc/rc.firewall -natd_enable="YES" +# +#firewall_enable="YES" +#firewall_type="OPEN" +#firewall_script="/etc/rc.firewall +#natd_enable="YES" +# ### Basic network and firewall/security options: ### -firewall_enable="NO" # Set to YES to enable firewall functionality +firewall_enable="YES" # Set to YES to enable firewall functionality firewall_script="/etc/rc.firewall" # Which script to run to set up the firewall -firewall_type="UNKNOWN" # Firewall type (see /etc/rc.firewall) +firewall_type="OPEN" # Firewall type (see /etc/rc.firewall) firewall_quiet="NO" # Set to YES to suppress rule display firewall_logging="NO" # Set to YES to enable events logging firewall_flags="" # Flags passed to ipfw when type is a file -natd_enable="NO" # Enable natd (if firewall_enable == YES). -ipv6_firewall_enable="NO" # Set to YES to enable IPv6 firewall -ipv6_firewall_script="/etc/rc.firewall6" # Which script to run to set up the IPv6 firewall -ipv6_firewall_type="UNKNOWN" # IPv6 Firewall type (see /etc/rc.firewall6) -ipv6_firewall_quiet="NO" # Set to YES to suppress rule display -ipv6_firewall_logging="NO" # Set to YES to enable events logging -ipv6_firewall_flags="" # Flags passed to ip6fw when type is a file +natd_enable="YES" # Enable natd (if firewall_enable == YES). |
#vim /etc/rc.conf
--- /tmp/l3-saved-26768.25181.2533 2009-08-05 20:23:39.000000000 +0300 +++ /etc/rc.conf 2009-08-05 20:27:43.000000000 +0300 @@ -21,21 +21,17 @@ route_54_96="-net 192.168.54.96/27 192.168.54.30" route_54_128="-net 192.168.54.128/27 192.168.54.30" xinetd_enable="NO" -firewall_enable="YES" -firewall_type="OPEN" -firewall_script="/etc/rc.firewall -natd_enable="YES" +# +#firewall_enable="YES" +#firewall_type="OPEN" +#firewall_script="/etc/rc.firewall +#natd_enable="YES" +# ### Basic network and firewall/security options: ### -firewall_enable="NO" # Set to YES to enable firewall functionality +firewall_enable="YES" # Set to YES to enable firewall functionality firewall_script="/etc/rc.firewall" # Which script to run to set up the firewall -firewall_type="UNKNOWN" # Firewall type (see /etc/rc.firewall) +firewall_type="OPEN" # Firewall type (see /etc/rc.firewall) firewall_quiet="NO" # Set to YES to suppress rule display firewall_logging="NO" # Set to YES to enable events logging firewall_flags="" # Flags passed to ipfw when type is a file -natd_enable="NO" # Enable natd (if firewall_enable == YES). -ipv6_firewall_enable="NO" # Set to YES to enable IPv6 firewall -ipv6_firewall_script="/etc/rc.firewall6" # Which script to run to set up the IPv6 firewall -ipv6_firewall_type="UNKNOWN" # IPv6 Firewall type (see /etc/rc.firewall6) -ipv6_firewall_quiet="NO" # Set to YES to suppress rule display -ipv6_firewall_logging="NO" # Set to YES to enable events logging -ipv6_firewall_flags="" # Flags passed to ip6fw when type is a file +natd_enable="YES" # Enable natd (if firewall_enable == YES). |
#vim /etc/rc.conf
![]() |
#vim /etc/rc.conf
![]() |
#vim /etc/rc.conf
|
#cat /etc/defaults/rc.conf | grep natdetc/rc.conf
![]() |
#cat /etc/defaults/rc.conf | grep natdetc/rc.conf
|
Время первой команды журнала | 17:31:28 2009- 8- 5 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 19:30:54 2009- 8- 5 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 7.92 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.00 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 0.44 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 3.80 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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