/l3/users/18-01-2010/nt-fbsdnet/fbsd1.net.nt/root :1 :2 :3 :4 :5 |
|
#route add default 192.168.65.30
add net default: gateway 192.168.65.30 |
#ifconfig
re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> inet 192.168.16.24 netmask 0xffffff00 broadcast 192.168.16.255 ether 00:16:4e:00:00:04 media: Ethernet autoselect (100baseTX <full-duplex>) status: active re1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> inet 0.0.0.0 netmask 0xff000000 broadcast 0.255.255.255 ether 00:16:4e:00:01:04 ... options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> inet 192.168.65.1 netmask 0xffffffe0 broadcast 192.168.65.31 ether 00:16:4e:00:02:04 media: Ethernet autoselect (100baseTX <full-duplex>) status: active plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> mtu 1500 lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 |
#ifconfig -a
re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> inet 192.168.16.24 netmask 0xffffff00 broadcast 192.168.16.255 ether 00:16:4e:00:00:04 media: Ethernet autoselect (100baseTX <full-duplex>) status: active re1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> inet 0.0.0.0 netmask 0xff000000 broadcast 0.255.255.255 ether 00:16:4e:00:01:04 ... options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> inet 192.168.65.1 netmask 0xffffffe0 broadcast 192.168.65.31 ether 00:16:4e:00:02:04 media: Ethernet autoselect (100baseTX <full-duplex>) status: active plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> mtu 1500 lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 |
#ssh 192.168.16.23
The authenticity of host '192.168.16.23 (192.168.16.23)' can't be established. DSA key fingerprint is 13:3f:fb:2a:53:62:8e:f8:0e:c7:3a:c9:10:99:b6:25. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '192.168.16.23' (DSA) to the list of known hosts. Password: Last login: Mon Jan 18 16:50:40 2010 from fbsd22.net.nt Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 6.3-RELEASE (SMP) #0: Wed Jan 16 04:45:45 UTC 2008 Welcome to FreeBSD! ... 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 |
#route delete default
delete net default |
#route add default 192.168.65.62
add net default: gateway 192.168.65.62 |
#netstat -rn
Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 192.168.65.62 UGS 0 12 re2 127.0.0.1 127.0.0.1 UH 0 1176 lo0 192.168.16 link#1 UC 0 0 re0 192.168.16.22 00:16:4e:00:00:02 UHLW 1 938 re0 34 192.168.16.24 00:16:4e:00:00:04 UHLW 1 966 re0 263 192.168.16.254 00:07:e9:0c:45:0c UHLW 1 443 re0 1166 192.168.65/27 link#2 UC 0 0 re1 192.168.65.1 00:16:4e:00:02:04 UHLW 1 188 re1 472 192.168.65.32/27 link#3 UC 0 0 re2 192.168.65.33 00:16:4e:00:02:03 UHLW 1 14 lo0 192.168.65.62 00:16:4e:00:01:02 UHLW 2 3 re2 242 Internet6: Destination Gateway Flags Netif Expire ::1 ::1 UHL lo0 fe80::%lo0/64 fe80::1%lo0 U lo0 fe80::1%lo0 link#5 UHL lo0 ff01:5::/32 fe80::1%lo0 UC lo0 ff02::%lo0/32 fe80::1%lo0 UC lo0 |
#netstat -rn
Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 192.168.65.62 UGS 0 12 re2 127.0.0.1 127.0.0.1 UH 0 1176 lo0 192.168.16 link#1 UC 0 0 re0 192.168.16.22 00:16:4e:00:00:02 UHLW 1 938 re0 34 192.168.16.24 00:16:4e:00:00:04 UHLW 1 966 re0 263 192.168.16.254 00:07:e9:0c:45:0c UHLW 1 443 re0 1166 192.168.65/27 link#2 UC 0 0 re1 192.168.65.1 00:16:4e:00:02:04 UHLW 1 188 re1 472 192.168.65.32/27 link#3 UC 0 0 re2 192.168.65.33 00:16:4e:00:02:03 UHLW 1 14 lo0 192.168.65.62 00:16:4e:00:01:02 UHLW 2 3 re2 242 Internet6: Destination Gateway Flags Netif Expire ::1 ::1 UHL lo0 fe80::%lo0/64 fe80::1%lo0 U lo0 fe80::1%lo0 link#5 UHL lo0 ff01:5::/32 fe80::1%lo0 UC lo0 ff02::%lo0/32 fe80::1%lo0 UC lo0 |
#netstat -rn
Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 192.168.65.62 UGS 0 12 re2 127.0.0.1 127.0.0.1 UH 0 1176 lo0 192.168.16 link#1 UC 0 0 re0 192.168.16.22 00:16:4e:00:00:02 UHLW 1 938 re0 34 192.168.16.24 00:16:4e:00:00:04 UHLW 1 966 re0 263 192.168.16.254 00:07:e9:0c:45:0c UHLW 1 443 re0 1166 192.168.65/27 link#2 UC 0 0 re1 192.168.65.1 00:16:4e:00:02:04 UHLW 1 188 re1 472 192.168.65.32/27 link#3 UC 0 0 re2 192.168.65.33 00:16:4e:00:02:03 UHLW 1 14 lo0 192.168.65.62 00:16:4e:00:01:02 UHLW 2 3 re2 242 Internet6: Destination Gateway Flags Netif Expire ::1 ::1 UHL lo0 fe80::%lo0/64 fe80::1%lo0 U lo0 fe80::1%lo0 link#5 UHL lo0 ff01:5::/32 fe80::1%lo0 UC lo0 ff02::%lo0/32 fe80::1%lo0 UC lo0 |
#netstat -rn
Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 192.168.65.62 UGS 0 12 re2 127.0.0.1 127.0.0.1 UH 0 1176 lo0 192.168.16 link#1 UC 0 0 re0 192.168.16.22 00:16:4e:00:00:02 UHLW 1 938 re0 34 192.168.16.24 00:16:4e:00:00:04 UHLW 1 966 re0 263 192.168.16.254 00:07:e9:0c:45:0c UHLW 1 443 re0 1166 192.168.65/27 link#2 UC 0 0 re1 192.168.65.1 00:16:4e:00:02:04 UHLW 1 188 re1 472 192.168.65.32/27 link#3 UC 0 0 re2 192.168.65.33 00:16:4e:00:02:03 UHLW 1 14 lo0 192.168.65.62 00:16:4e:00:01:02 UHLW 2 3 re2 242 Internet6: Destination Gateway Flags Netif Expire ::1 ::1 UHL lo0 fe80::%lo0/64 fe80::1%lo0 U lo0 fe80::1%lo0 link#5 UHL lo0 ff01:5::/32 fe80::1%lo0 UC lo0 ff02::%lo0/32 fe80::1%lo0 UC lo0 |
#netstat -rn -f inet
Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 192.168.65.62 UGS 0 14 re2 127.0.0.1 127.0.0.1 UH 0 1176 lo0 192.168.16 link#1 UC 0 0 re0 192.168.16.22 00:16:4e:00:00:02 UHLW 1 950 re0 26 192.168.16.24 00:16:4e:00:00:04 UHLW 1 996 re0 255 192.168.16.254 00:07:e9:0c:45:0c UHLW 1 443 re0 1158 192.168.65/27 link#2 UC 0 0 re1 192.168.65.1 00:16:4e:00:02:04 UHLW 1 188 re1 464 192.168.65.32/27 link#3 UC 0 0 re2 192.168.65.33 00:16:4e:00:02:03 UHLW 1 14 lo0 192.168.65.62 00:16:4e:00:01:02 UHLW 2 3 re2 234 |
#ssh 192.168.16.62
^C õ ×ÁÓ ÅÓÔØ ÎÏ×ÁÑ ÐÏÞÔÁ × /var/mail/root |
#ping 192.168.65.62
PING 192.168.65.62 (192.168.65.62): 56 data bytes 64 bytes from 192.168.65.62: icmp_seq=0 ttl=64 time=0.504 ms ^C --- 192.168.65.62 ping statistics --- 1 packets transmitted, 1 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.504/0.504/0.504/0.000 ms |
#ssh 192.168.652
The authenticity of host '192.168.65.62 (192.168.65.62)' can't be established. DSA key fingerprint is 13:3f:fb:2a:53:62:8e:f8:0e:c7:3a:c9:10:99:b6:25. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '192.168.65.62' (DSA) to the list of known hosts. Password: Last login: Mon Jan 18 16:44:22 2010 from fbsd21.net.nt Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 6.3-RELEASE (SMP) #0: Wed Jan 16 04:45:45 UTC 2008 Welcome to FreeBSD! ... 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 |
#route delete default
delete net default |
#route delete default
delete net default |
#route delete default
delete net default |
#route delete default
delete net default |
#route delete default
delete net default |
#route delete default
delete net default |
#route add default 192.168.65.94
add net default: gateway 192.168.65.94 |
#netstat -rn -f inet
Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 192.168.65.94 UGS 0 35 re2 127.0.0.1 127.0.0.1 UH 0 1200 lo0 192.168.16 link#1 UC 0 0 re0 192.168.16.21 00:16:4e:00:00:01 UHLW 1 1614 re0 1019 192.168.16.23 00:16:4e:00:00:03 UHLW 1 1534 re0 1068 192.168.16.254 00:07:e9:0c:45:0c UHLW 1 516 re0 1154 192.168.65.32/27 link#2 UC 0 0 re1 192.168.65.33 00:16:4e:00:02:03 UHLW 1 105 re1 31 192.168.65.64/27 link#3 UC 0 0 re2 192.168.65.94 00:16:4e:00:01:01 UHLW 2 0 re2 1149 |
#exit
exit Connection to 192.168.65.62 closed. |
#exit
exit Connection to 192.168.16.23 closed. õ ×ÁÓ ÅÓÔØ ÎÏ×ÁÑ ÐÏÞÔÁ × /var/mail/root |
#ping 192.168.65.94
PING 192.168.65.94 (192.168.65.94): 56 data bytes ^C --- 192.168.65.94 ping statistics --- 15 packets transmitted, 0 packets received, 100% packet loss |
#ping 192.168.65.65
PING 192.168.65.65 (192.168.65.65): 56 data bytes ^C --- 192.168.65.65 ping statistics --- 4 packets transmitted, 0 packets received, 100% packet loss |
#ping 192.168.65.62
PING 192.168.65.62 (192.168.65.62): 56 data bytes ^C --- 192.168.65.62 ping statistics --- 5 packets transmitted, 0 packets received, 100% packet loss |
#ping 192.168.65.33
PING 192.168.65.33 (192.168.65.33): 56 data bytes 64 bytes from 192.168.65.33: icmp_seq=0 ttl=64 time=0.578 ms 64 bytes from 192.168.65.33: icmp_seq=1 ttl=64 time=0.828 ms 64 bytes from 192.168.65.33: icmp_seq=2 ttl=64 time=0.531 ms 64 bytes from 192.168.65.33: icmp_seq=3 ttl=64 time=0.423 ms 64 bytes from 192.168.65.33: icmp_seq=4 ttl=64 time=0.479 ms 64 bytes from 192.168.65.33: icmp_seq=5 ttl=64 time=0.835 ms 64 bytes from 192.168.65.33: icmp_seq=6 ttl=64 time=0.440 ms 64 bytes from 192.168.65.33: icmp_seq=7 ttl=64 time=0.534 ms 64 bytes from 192.168.65.33: icmp_seq=8 ttl=64 time=0.475 ms 64 bytes from 192.168.65.33: icmp_seq=9 ttl=64 time=0.820 ms 64 bytes from 192.168.65.33: icmp_seq=10 ttl=64 time=0.843 ms 64 bytes from 192.168.65.33: icmp_seq=11 ttl=64 time=0.793 ms 64 bytes from 192.168.65.33: icmp_seq=12 ttl=64 time=0.448 ms 64 bytes from 192.168.65.33: icmp_seq=13 ttl=64 time=0.894 ms 64 bytes from 192.168.65.33: icmp_seq=14 ttl=64 time=0.545 ms ^C --- 192.168.65.33 ping statistics --- 15 packets transmitted, 15 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.423/0.631/0.894/0.173 ms |
#ping 192.168.65.30
PING 192.168.65.30 (192.168.65.30): 56 data bytes 64 bytes from 192.168.65.30: icmp_seq=0 ttl=64 time=0.730 ms 64 bytes from 192.168.65.30: icmp_seq=1 ttl=64 time=0.494 ms 64 bytes from 192.168.65.30: icmp_seq=2 ttl=64 time=0.869 ms 64 bytes from 192.168.65.30: icmp_seq=3 ttl=64 time=0.571 ms ^C --- 192.168.65.30 ping statistics --- 4 packets transmitted, 4 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.494/0.666/0.869/0.145 ms |
#if
> > |
#ifconfig
re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> inet 192.168.16.24 netmask 0xffffff00 broadcast 192.168.16.255 ether 00:16:4e:00:00:04 media: Ethernet autoselect (100baseTX <full-duplex>) status: active re1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> inet 0.0.0.0 netmask 0xff000000 broadcast 0.255.255.255 ether 00:16:4e:00:01:04 ... options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> inet 192.168.65.1 netmask 0xffffffe0 broadcast 192.168.65.31 ether 00:16:4e:00:02:04 media: Ethernet autoselect (100baseTX <full-duplex>) status: active plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> mtu 1500 lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 |
#ssh 192.168.65.33
The authenticity of host '192.168.65.33 (192.168.65.33)' can't be established. DSA key fingerprint is 13:3f:fb:2a:53:62:8e:f8:0e:c7:3a:c9:10:99:b6:25. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '192.168.65.33' (DSA) to the list of known hosts. Password: Last login: Mon Jan 18 17:08:26 2010 from 192.168.16.24 Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 6.3-RELEASE (SMP) #0: Wed Jan 16 04:45:45 UTC 2008 Welcome to FreeBSD! ... 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 |
#vim /etc/rc.conf
|
#~
exit Connection to 192.168.65.33 closed. |
#ssh 192.168.65.22
^C |
#ssh 192.168.162
The authenticity of host '192.168.16.22 (192.168.16.22)' can't be established. DSA key fingerprint is 13:3f:fb:2a:53:62:8e:f8:0e:c7:3a:c9:10:99:b6:25. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '192.168.16.22' (DSA) to the list of known hosts. Password: Last login: Mon Jan 18 17:11:45 2010 from 192.168.65.33 Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 6.3-RELEASE (SMP) #0: Wed Jan 16 04:45:45 UTC 2008 Welcome to FreeBSD! ... 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 |
#gateway_enable=1
õ ×ÁÓ ÅÓÔØ ÎÏ×ÁÑ ÐÏÞÔÁ × /var/mail/root |
#exit
exit Connection to 192.168.16.22 closed. õ ×ÁÓ ÅÓÔØ ÎÏ×ÁÑ ÐÏÞÔÁ × /var/mail/root |
#ping 192.168.65.65
64 bytes from 192.168.65.65: icmp_seq=1547 ttl=63 time=1.395 ms 64 bytes from 192.168.65.65: icmp_seq=1548 ttl=63 time=1.385 ms 64 bytes from 192.168.65.65: icmp_seq=1549 ttl=63 time=1.240 ms 64 bytes from 192.168.65.65: icmp_seq=1550 ttl=63 time=1.162 ms 64 bytes from 192.168.65.65: icmp_seq=1551 ttl=63 time=1.259 ms 64 bytes from 192.168.65.65: icmp_seq=1552 ttl=63 time=1.351 ms 64 bytes from 192.168.65.65: icmp_seq=1553 ttl=63 time=1.080 ms 64 bytes from 192.168.65.65: icmp_seq=1554 ttl=63 time=1.224 ms 64 bytes from 192.168.65.65: icmp_seq=1555 ttl=63 time=1.393 ms 64 bytes from 192.168.65.65: icmp_seq=1556 ttl=63 time=1.390 ms ... 64 bytes from 192.168.65.65: icmp_seq=1686 ttl=63 time=1.281 ms 64 bytes from 192.168.65.65: icmp_seq=1687 ttl=63 time=1.237 ms 64 bytes from 192.168.65.65: icmp_seq=1688 ttl=63 time=1.389 ms 64 bytes from 192.168.65.65: icmp_seq=1689 ttl=63 time=1.392 ms 64 bytes from 192.168.65.65: icmp_seq=1690 ttl=63 time=1.458 ms 64 bytes from 192.168.65.65: icmp_seq=1691 ttl=63 time=1.295 ms 64 bytes from 192.168.65.65: icmp_seq=1692 ttl=63 time=1.371 ms 64 bytes from 192.168.65.65: icmp_seq=1693 ttl=63 time=1.263 ms 64 bytes from 192.168.65.65: icmp_seq=1694 ttl=63 time=1.360 ms 64 bytes from 192.168.65.65: icmp_seq=1695 ttl=63 time=1.190 ms |
#tcpdump -i re1 -n icmp
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on re1, link-type EN10MB (Ethernet), capture size 96 bytes 17:42:30.961997 IP 192.168.65.1 > 212.26.146.51: ICMP echo request, id 50186, seq 163, length 64 17:42:31.278677 IP 192.168.65.65 > 192.168.65.1: ICMP echo reply, id 6666, seq 688, length 64 17:42:32.763690 IP 192.168.65.1 > 212.26.146.51: ICMP echo request, id 50186, seq 164, length 64 17:42:33.080673 IP 192.168.65.65 > 192.168.65.1: ICMP echo reply, id 6666, seq 689, length 64 17:42:34.566054 IP 192.168.65.1 > 212.26.146.51: ICMP echo request, id 50186, seq 165, length 64 17:42:34.882929 IP 192.168.65.65 > 192.168.65.1: ICMP echo reply, id 6666, seq 690, length 64 17:42:36.368367 IP 192.168.65.1 > 212.26.146.51: ICMP echo request, id 50186, seq 166, length 64 17:42:36.685362 IP 192.168.65.65 > 192.168.65.1: ICMP echo reply, id 6666, seq 691, length 64 ... 17:43:19.622393 IP 192.168.65.1 > 212.26.146.51: ICMP echo request, id 50186, seq 190, length 64 17:43:19.938879 IP 192.168.65.65 > 192.168.65.1: ICMP echo reply, id 6666, seq 715, length 64 17:43:21.424072 IP 192.168.65.1 > 212.26.146.51: ICMP echo request, id 50186, seq 191, length 64 17:43:21.748748 IP 192.168.65.65 > 192.168.65.1: ICMP echo reply, id 6666, seq 716, length 64 17:43:23.226375 IP 192.168.65.1 > 212.26.146.51: ICMP echo request, id 50186, seq 192, length 64 17:43:23.543180 IP 192.168.65.65 > 192.168.65.1: ICMP echo reply, id 6666, seq 717, length 64 ^C 60 packets captured 108 packets received by filter 0 packets dropped by kernel |
#route add 192.168.65.0/27 192.168.65.65
add net 192.168.65.0: gateway 192.168.65.65 |
#route add 192.168.65.32/27 192.168.65.65
add net 192.168.65.32: gateway 192.168.65.65 |
#route add 192.168.65.32/27 192.168.65.65
add net 192.168.65.32: gateway 192.168.65.65 |
#route add 192.168.65.32/27 192.168.65.65
add net 192.168.65.32: gateway 192.168.65.65 |
#route add 192.168.65.32/27 192.168.65.65
add net 192.168.65.32: gateway 192.168.65.65 |
#route add 192.168.65.32/27 192.168.65.65
add net 192.168.65.32: gateway 192.168.65.65 |
#route add 192.168.65.32/27 192.168.65.65
add net 192.168.65.32: gateway 192.168.65.65 |
#grep firewall /etc/rc.conf
|
#grep firewall /etc/rc.conf
|
#grep firewall /etc/defaults/rc.conf
### 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 |
#grep firewall /etc/defaults/rc.conf
### 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 |
#grep firewall /etc/defaults/rc.conf
### 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 |
#ipfw list
ipfw: getsockopt(IP_FW_GET): Protocol not available |
#ipfw list
ipfw: getsockopt(IP_FW_GET): Protocol not available |
#ipfw list
ipfw: getsockopt(IP_FW_GET): Protocol not available |
#kld
kldconfig kldload kldstat kldunload kldxref |
#kld
kldconfig kldload kldstat kldunload kldxref |
#kld
kldconfig kldload kldstat kldunload kldxref |
#kld
kldconfig kldload kldstat kldunload kldxref |
#kld
kldconfig kldload kldstat kldunload kldxref |
#kld
kldconfig kldload kldstat kldunload kldxref |
#kldload ipfw ; ipfw add allow ip from any to any
00100 allow ip from any to any |
#kldload ipfw ; ipfw add allow ip from any to any
00100 allow ip from any to any |
#kldload ipfw ; ipfw add allow ip from any to any
00100 allow ip from any to any |
#kldload ipfw ; ipfw add allow ip from any to any
00100 allow ip from any to any |
#kldload ipfw ; ipfw add allow ip from any to any
00100 allow ip from any to any |
#kldload ipfw ; ipfw add allow ip from any to any
00100 allow ip from any to any |
#ipfw list
00100 allow ip from any to any 65535 deny ip from any to any |
#ipfw list
00100 allow ip from any to any 65535 deny ip from any to any |
#ipfw list
00100 allow ip from any to any 65535 deny ip from any to any |
#ipfw add 00101 divert natd ip from any to any via re1
ipfw: getsockopt(IP_FW_ADD): Invalid argument |
#ls /boot/kernel/
3dfx.ko geom_fox.ko if_rue.ko ng_atmpif.ko smapi.ko 3dfx_linux.ko geom_gate.ko if_sbni.ko ng_bluetooth.ko smb.ko aac.ko geom_gpt.ko if_sbsh.ko ng_bpf.ko smbfs.ko aac_linux.ko geom_label.ko if_sf.ko ng_bridge.ko smbios.ko accf_data.ko geom_mbr.ko if_sis.ko ng_bt3c.ko smbus.ko accf_http.ko geom_md.ko if_sk.ko ng_btsocket.ko snake_saver.ko acpi.ko geom_mirror.ko if_sl.ko ng_ccatm.ko snd_ad1816.ko acpi_asus.ko geom_nop.ko if_sn.ko ng_cisco.ko snd_als4000.ko acpi_dock.ko geom_pc98.ko if_sr.ko ng_deflate.ko snd_atiixp.ko acpi_fujitsu.ko geom_raid3.ko if_ste.ko ng_device.ko snd_cmi.ko ... fire_saver.ko if_nge.ko ncv.ko rr232x.ko vpo.ko firewire.ko if_nve.ko ndis.ko s3.ko warp_saver.ko firmware.ko if_oltr.ko netgraph.ko safe.ko wlan.ko g_md.ko if_patm.ko nfsclient.ko savage.ko wlan_acl.ko geom_apple.ko if_pcn.ko nfsmb.ko sbp.ko wlan_amrr.ko geom_bde.ko if_ppp.ko nfsserver.ko sbp_targ.ko wlan_ccmp.ko geom_bsd.ko if_ral.ko ng_UI.ko scd.ko wlan_tkip.ko geom_ccd.ko if_ray.ko ng_async.ko scsi_low.ko wlan_wep.ko geom_concat.ko if_re.ko ng_atm.ko sio.ko wlan_xauth.ko geom_eli.ko if_rl.ko ng_atmllc.ko sis.ko zlib.ko |
#ls /boot/kernel/
3dfx.ko geom_fox.ko if_rue.ko ng_atmpif.ko smapi.ko 3dfx_linux.ko geom_gate.ko if_sbni.ko ng_bluetooth.ko smb.ko aac.ko geom_gpt.ko if_sbsh.ko ng_bpf.ko smbfs.ko aac_linux.ko geom_label.ko if_sf.ko ng_bridge.ko smbios.ko accf_data.ko geom_mbr.ko if_sis.ko ng_bt3c.ko smbus.ko accf_http.ko geom_md.ko if_sk.ko ng_btsocket.ko snake_saver.ko acpi.ko geom_mirror.ko if_sl.ko ng_ccatm.ko snd_ad1816.ko acpi_asus.ko geom_nop.ko if_sn.ko ng_cisco.ko snd_als4000.ko acpi_dock.ko geom_pc98.ko if_sr.ko ng_deflate.ko snd_atiixp.ko acpi_fujitsu.ko geom_raid3.ko if_ste.ko ng_device.ko snd_cmi.ko ... fire_saver.ko if_nge.ko ncv.ko rr232x.ko vpo.ko firewire.ko if_nve.ko ndis.ko s3.ko warp_saver.ko firmware.ko if_oltr.ko netgraph.ko safe.ko wlan.ko g_md.ko if_patm.ko nfsclient.ko savage.ko wlan_acl.ko geom_apple.ko if_pcn.ko nfsmb.ko sbp.ko wlan_amrr.ko geom_bde.ko if_ppp.ko nfsserver.ko sbp_targ.ko wlan_ccmp.ko geom_bsd.ko if_ral.ko ng_UI.ko scd.ko wlan_tkip.ko geom_ccd.ko if_ray.ko ng_async.ko scsi_low.ko wlan_wep.ko geom_concat.ko if_re.ko ng_atm.ko sio.ko wlan_xauth.ko geom_eli.ko if_rl.ko ng_atmllc.ko sis.ko zlib.ko |
#ls /boot/kernel/
3dfx.ko geom_fox.ko if_rue.ko ng_atmpif.ko smapi.ko 3dfx_linux.ko geom_gate.ko if_sbni.ko ng_bluetooth.ko smb.ko aac.ko geom_gpt.ko if_sbsh.ko ng_bpf.ko smbfs.ko aac_linux.ko geom_label.ko if_sf.ko ng_bridge.ko smbios.ko accf_data.ko geom_mbr.ko if_sis.ko ng_bt3c.ko smbus.ko accf_http.ko geom_md.ko if_sk.ko ng_btsocket.ko snake_saver.ko acpi.ko geom_mirror.ko if_sl.ko ng_ccatm.ko snd_ad1816.ko acpi_asus.ko geom_nop.ko if_sn.ko ng_cisco.ko snd_als4000.ko acpi_dock.ko geom_pc98.ko if_sr.ko ng_deflate.ko snd_atiixp.ko acpi_fujitsu.ko geom_raid3.ko if_ste.ko ng_device.ko snd_cmi.ko ... fire_saver.ko if_nge.ko ncv.ko rr232x.ko vpo.ko firewire.ko if_nve.ko ndis.ko s3.ko warp_saver.ko firmware.ko if_oltr.ko netgraph.ko safe.ko wlan.ko g_md.ko if_patm.ko nfsclient.ko savage.ko wlan_acl.ko geom_apple.ko if_pcn.ko nfsmb.ko sbp.ko wlan_amrr.ko geom_bde.ko if_ppp.ko nfsserver.ko sbp_targ.ko wlan_ccmp.ko geom_bsd.ko if_ral.ko ng_UI.ko scd.ko wlan_tkip.ko geom_ccd.ko if_ray.ko ng_async.ko scsi_low.ko wlan_wep.ko geom_concat.ko if_re.ko ng_atm.ko sio.ko wlan_xauth.ko geom_eli.ko if_rl.ko ng_atmllc.ko sis.ko zlib.ko |
#ls /boot/kernel/
3dfx.ko geom_fox.ko if_rue.ko ng_atmpif.ko smapi.ko 3dfx_linux.ko geom_gate.ko if_sbni.ko ng_bluetooth.ko smb.ko aac.ko geom_gpt.ko if_sbsh.ko ng_bpf.ko smbfs.ko aac_linux.ko geom_label.ko if_sf.ko ng_bridge.ko smbios.ko accf_data.ko geom_mbr.ko if_sis.ko ng_bt3c.ko smbus.ko accf_http.ko geom_md.ko if_sk.ko ng_btsocket.ko snake_saver.ko acpi.ko geom_mirror.ko if_sl.ko ng_ccatm.ko snd_ad1816.ko acpi_asus.ko geom_nop.ko if_sn.ko ng_cisco.ko snd_als4000.ko acpi_dock.ko geom_pc98.ko if_sr.ko mem.ko ppc.ko umct.ko digi_EPCX_PCI.ko if_ic.ko mfi.ko ppi.ko umodem.ko ... fire_saver.ko if_nge.ko ncv.ko rr232x.ko vpo.ko firewire.ko if_nve.ko ndis.ko s3.ko warp_saver.ko firmware.ko if_oltr.ko netgraph.ko safe.ko wlan.ko g_md.ko if_patm.ko nfsclient.ko savage.ko wlan_acl.ko geom_apple.ko if_pcn.ko nfsmb.ko sbp.ko wlan_amrr.ko geom_bde.ko if_ppp.ko nfsserver.ko sbp_targ.ko wlan_ccmp.ko geom_bsd.ko if_ral.ko ng_UI.ko scd.ko wlan_tkip.ko geom_ccd.ko if_ray.ko ng_async.ko scsi_low.ko wlan_wep.ko geom_concat.ko if_re.ko ng_atm.ko sio.ko wlan_xauth.ko geom_eli.ko if_rl.ko ng_atmllc.ko sis.ko zlib.ko |
#ls /boot/kernel/
3dfx.ko geom_fox.ko if_rue.ko ng_atmpif.ko smapi.ko 3dfx_linux.ko geom_gate.ko if_sbni.ko ng_bluetooth.ko smb.ko aac.ko geom_gpt.ko if_sbsh.ko ng_bpf.ko smbfs.ko aac_linux.ko geom_label.ko if_sf.ko ng_bridge.ko smbios.ko accf_data.ko geom_mbr.ko if_sis.ko ng_bt3c.ko smbus.ko accf_http.ko geom_md.ko if_sk.ko ng_btsocket.ko snake_saver.ko acpi.ko geom_mirror.ko if_sl.ko ng_ccatm.ko snd_ad1816.ko acpi_asus.ko geom_nop.ko if_sn.ko ng_cisco.ko snd_als4000.ko acpi_dock.ko geom_pc98.ko if_sr.ko ng_deflate.ko snd_atiixp.ko acpi_fujitsu.ko geom_raid3.ko if_ste.ko ng_device.ko snd_cmi.ko ... fire_saver.ko if_nge.ko ncv.ko rr232x.ko vpo.ko firewire.ko if_nve.ko ndis.ko s3.ko warp_saver.ko firmware.ko if_oltr.ko netgraph.ko safe.ko wlan.ko g_md.ko if_patm.ko nfsclient.ko savage.ko wlan_acl.ko geom_apple.ko if_pcn.ko nfsmb.ko sbp.ko wlan_amrr.ko geom_bde.ko if_ppp.ko nfsserver.ko sbp_targ.ko wlan_ccmp.ko geom_bsd.ko if_ral.ko ng_UI.ko scd.ko wlan_tkip.ko geom_ccd.ko if_ray.ko ng_async.ko scsi_low.ko wlan_wep.ko geom_concat.ko if_re.ko ng_atm.ko sio.ko wlan_xauth.ko geom_eli.ko if_rl.ko ng_atmllc.ko sis.ko zlib.ko |
#ls /boot/kernel/
3dfx.ko geom_fox.ko if_rue.ko ng_atmpif.ko smapi.ko 3dfx_linux.ko geom_gate.ko if_sbni.ko ng_bluetooth.ko smb.ko aac.ko geom_gpt.ko if_sbsh.ko ng_bpf.ko smbfs.ko aac_linux.ko geom_label.ko if_sf.ko ng_bridge.ko smbios.ko accf_data.ko geom_mbr.ko if_sis.ko ng_bt3c.ko smbus.ko accf_http.ko geom_md.ko if_sk.ko ng_btsocket.ko snake_saver.ko acpi.ko geom_mirror.ko if_sl.ko ng_ccatm.ko snd_ad1816.ko acpi_asus.ko geom_nop.ko if_sn.ko ng_cisco.ko snd_als4000.ko acpi_dock.ko geom_pc98.ko if_sr.ko ng_deflate.ko snd_atiixp.ko acpi_fujitsu.ko geom_raid3.ko if_ste.ko ng_device.ko snd_cmi.ko ... fire_saver.ko if_nge.ko ncv.ko rr232x.ko vpo.ko firewire.ko if_nve.ko ndis.ko s3.ko warp_saver.ko firmware.ko if_oltr.ko netgraph.ko safe.ko wlan.ko g_md.ko if_patm.ko nfsclient.ko savage.ko wlan_acl.ko geom_apple.ko if_pcn.ko nfsmb.ko sbp.ko wlan_amrr.ko geom_bde.ko if_ppp.ko nfsserver.ko sbp_targ.ko wlan_ccmp.ko geom_bsd.ko if_ral.ko ng_UI.ko scd.ko wlan_tkip.ko geom_ccd.ko if_ray.ko ng_async.ko scsi_low.ko wlan_wep.ko geom_concat.ko if_re.ko ng_atm.ko sio.ko wlan_xauth.ko geom_eli.ko if_rl.ko ng_atmllc.ko sis.ko zlib.ko |
#ls /boot/kernel/
3dfx.ko geom_fox.ko if_rue.ko ng_atmpif.ko smapi.ko 3dfx_linux.ko geom_gate.ko if_sbni.ko ng_bluetooth.ko smb.ko aac.ko geom_gpt.ko if_sbsh.ko ng_bpf.ko smbfs.ko aac_linux.ko geom_label.ko if_sf.ko ng_bridge.ko smbios.ko accf_data.ko geom_mbr.ko if_sis.ko ng_bt3c.ko smbus.ko accf_http.ko geom_md.ko if_sk.ko ng_btsocket.ko snake_saver.ko acpi.ko geom_mirror.ko if_sl.ko ng_ccatm.ko snd_ad1816.ko acpi_asus.ko geom_nop.ko if_sn.ko ng_cisco.ko snd_als4000.ko acpi_dock.ko geom_pc98.ko if_sr.ko ng_deflate.ko snd_atiixp.ko acpi_fujitsu.ko geom_raid3.ko if_ste.ko ng_device.ko snd_cmi.ko ... fire_saver.ko if_nge.ko ncv.ko rr232x.ko vpo.ko firewire.ko if_nve.ko ndis.ko s3.ko warp_saver.ko firmware.ko if_oltr.ko netgraph.ko safe.ko wlan.ko g_md.ko if_patm.ko nfsclient.ko savage.ko wlan_acl.ko geom_apple.ko if_pcn.ko nfsmb.ko sbp.ko wlan_amrr.ko geom_bde.ko if_ppp.ko nfsserver.ko sbp_targ.ko wlan_ccmp.ko geom_bsd.ko if_ral.ko ng_UI.ko scd.ko wlan_tkip.ko geom_ccd.ko if_ray.ko ng_async.ko scsi_low.ko wlan_wep.ko geom_concat.ko if_re.ko ng_atm.ko sio.ko wlan_xauth.ko geom_eli.ko if_rl.ko ng_atmllc.ko sis.ko zlib.ko |
#ls /boot/kernel/
3dfx.ko geom_fox.ko if_rue.ko ng_atmpif.ko smapi.ko 3dfx_linux.ko geom_gate.ko if_sbni.ko ng_bluetooth.ko smb.ko aac.ko geom_gpt.ko if_sbsh.ko ng_bpf.ko smbfs.ko aac_linux.ko geom_label.ko if_sf.ko ng_bridge.ko smbios.ko accf_data.ko geom_mbr.ko if_sis.ko ng_bt3c.ko smbus.ko accf_http.ko geom_md.ko if_sk.ko ng_btsocket.ko snake_saver.ko acpi.ko geom_mirror.ko if_sl.ko ng_ccatm.ko snd_ad1816.ko acpi_asus.ko geom_nop.ko if_sn.ko ng_cisco.ko snd_als4000.ko acpi_dock.ko geom_pc98.ko if_sr.ko ng_deflate.ko snd_atiixp.ko acpi_fujitsu.ko geom_raid3.ko if_ste.ko ng_device.ko snd_cmi.ko ... fire_saver.ko if_nge.ko ncv.ko rr232x.ko vpo.ko firewire.ko if_nve.ko ndis.ko s3.ko warp_saver.ko firmware.ko if_oltr.ko netgraph.ko safe.ko wlan.ko g_md.ko if_patm.ko nfsclient.ko savage.ko wlan_acl.ko geom_apple.ko if_pcn.ko nfsmb.ko sbp.ko wlan_amrr.ko geom_bde.ko if_ppp.ko nfsserver.ko sbp_targ.ko wlan_ccmp.ko geom_bsd.ko if_ral.ko ng_UI.ko scd.ko wlan_tkip.ko geom_ccd.ko if_ray.ko ng_async.ko scsi_low.ko wlan_wep.ko geom_concat.ko if_re.ko ng_atm.ko sio.ko wlan_xauth.ko geom_eli.ko if_rl.ko ng_atmllc.ko sis.ko zlib.ko |
#ls /boot/kernel/
3dfx.ko geom_fox.ko if_rue.ko ng_atmpif.ko smapi.ko 3dfx_linux.ko geom_gate.ko if_sbni.ko ng_bluetooth.ko smb.ko aac.ko geom_gpt.ko if_sbsh.ko ng_bpf.ko smbfs.ko aac_linux.ko geom_label.ko if_sf.ko ng_bridge.ko smbios.ko accf_data.ko geom_mbr.ko if_sis.ko ng_bt3c.ko smbus.ko accf_http.ko geom_md.ko if_sk.ko ng_btsocket.ko snake_saver.ko acpi.ko geom_mirror.ko if_sl.ko ng_ccatm.ko snd_ad1816.ko acpi_asus.ko geom_nop.ko if_sn.ko ng_cisco.ko snd_als4000.ko acpi_dock.ko geom_pc98.ko if_sr.ko ng_deflate.ko snd_atiixp.ko acpi_fujitsu.ko geom_raid3.ko if_ste.ko ng_device.ko snd_cmi.ko ... fire_saver.ko if_nge.ko ncv.ko rr232x.ko vpo.ko firewire.ko if_nve.ko ndis.ko s3.ko warp_saver.ko firmware.ko if_oltr.ko netgraph.ko safe.ko wlan.ko g_md.ko if_patm.ko nfsclient.ko savage.ko wlan_acl.ko geom_apple.ko if_pcn.ko nfsmb.ko sbp.ko wlan_amrr.ko geom_bde.ko if_ppp.ko nfsserver.ko sbp_targ.ko wlan_ccmp.ko geom_bsd.ko if_ral.ko ng_UI.ko scd.ko wlan_tkip.ko geom_ccd.ko if_ray.ko ng_async.ko scsi_low.ko wlan_wep.ko geom_concat.ko if_re.ko ng_atm.ko sio.ko wlan_xauth.ko geom_eli.ko if_rl.ko ng_atmllc.ko sis.ko zlib.ko |
#ls /boot/kernel/
3dfx.ko geom_fox.ko if_rue.ko ng_atmpif.ko smapi.ko 3dfx_linux.ko geom_gate.ko if_sbni.ko ng_bluetooth.ko smb.ko aac.ko geom_gpt.ko if_sbsh.ko ng_bpf.ko smbfs.ko aac_linux.ko geom_label.ko if_sf.ko ng_bridge.ko smbios.ko accf_data.ko geom_mbr.ko if_sis.ko ng_bt3c.ko smbus.ko accf_http.ko geom_md.ko if_sk.ko ng_btsocket.ko snake_saver.ko acpi.ko geom_mirror.ko if_sl.ko ng_ccatm.ko snd_ad1816.ko acpi_asus.ko geom_nop.ko if_sn.ko ng_cisco.ko snd_als4000.ko acpi_dock.ko geom_pc98.ko if_sr.ko ng_deflate.ko snd_atiixp.ko acpi_fujitsu.ko geom_raid3.ko if_ste.ko ng_device.ko snd_cmi.ko ... fire_saver.ko if_nge.ko ncv.ko rr232x.ko vpo.ko firewire.ko if_nve.ko ndis.ko s3.ko warp_saver.ko firmware.ko if_oltr.ko netgraph.ko safe.ko wlan.ko g_md.ko if_patm.ko nfsclient.ko savage.ko wlan_acl.ko geom_apple.ko if_pcn.ko nfsmb.ko sbp.ko wlan_amrr.ko geom_bde.ko if_ppp.ko nfsserver.ko sbp_targ.ko wlan_ccmp.ko geom_bsd.ko if_ral.ko ng_UI.ko scd.ko wlan_tkip.ko geom_ccd.ko if_ray.ko ng_async.ko scsi_low.ko wlan_wep.ko geom_concat.ko if_re.ko ng_atm.ko sio.ko wlan_xauth.ko geom_eli.ko if_rl.ko ng_atmllc.ko sis.ko zlib.ko |
#ls /boot/kernel/
3dfx.ko geom_fox.ko if_rue.ko ng_atmpif.ko smapi.ko 3dfx_linux.ko geom_gate.ko if_sbni.ko ng_bluetooth.ko smb.ko aac.ko geom_gpt.ko if_sbsh.ko ng_bpf.ko smbfs.ko aac_linux.ko geom_label.ko if_sf.ko ng_bridge.ko smbios.ko accf_data.ko geom_mbr.ko if_sis.ko ng_bt3c.ko smbus.ko accf_http.ko geom_md.ko if_sk.ko ng_btsocket.ko snake_saver.ko acpi.ko geom_mirror.ko if_sl.ko ng_ccatm.ko snd_ad1816.ko acpi_asus.ko geom_nop.ko if_sn.ko ng_cisco.ko snd_als4000.ko acpi_dock.ko geom_pc98.ko if_sr.ko ng_deflate.ko snd_atiixp.ko acpi_fujitsu.ko geom_raid3.ko if_ste.ko ng_device.ko snd_cmi.ko ... fire_saver.ko if_nge.ko ncv.ko rr232x.ko vpo.ko firewire.ko if_nve.ko ndis.ko s3.ko warp_saver.ko firmware.ko if_oltr.ko netgraph.ko safe.ko wlan.ko g_md.ko if_patm.ko nfsclient.ko savage.ko wlan_acl.ko geom_apple.ko if_pcn.ko nfsmb.ko sbp.ko wlan_amrr.ko geom_bde.ko if_ppp.ko nfsserver.ko sbp_targ.ko wlan_ccmp.ko geom_bsd.ko if_ral.ko ng_UI.ko scd.ko wlan_tkip.ko geom_ccd.ko if_ray.ko ng_async.ko scsi_low.ko wlan_wep.ko geom_concat.ko if_re.ko ng_atm.ko sio.ko wlan_xauth.ko geom_eli.ko if_rl.ko ng_atmllc.ko sis.ko zlib.ko |
#ls /boot/kernel/
3dfx.ko geom_fox.ko if_rue.ko ng_atmpif.ko smapi.ko 3dfx_linux.ko geom_gate.ko if_sbni.ko ng_bluetooth.ko smb.ko aac.ko geom_gpt.ko if_sbsh.ko ng_bpf.ko smbfs.ko aac_linux.ko geom_label.ko if_sf.ko ng_bridge.ko smbios.ko accf_data.ko geom_mbr.ko if_sis.ko ng_bt3c.ko smbus.ko accf_http.ko geom_md.ko if_sk.ko ng_btsocket.ko snake_saver.ko acpi.ko geom_mirror.ko if_sl.ko ng_ccatm.ko snd_ad1816.ko acpi_asus.ko geom_nop.ko if_sn.ko ng_cisco.ko snd_als4000.ko acpi_dock.ko geom_pc98.ko if_sr.ko ng_deflate.ko snd_atiixp.ko acpi_fujitsu.ko geom_raid3.ko if_ste.ko ng_device.ko snd_cmi.ko ... fire_saver.ko if_nge.ko ncv.ko rr232x.ko vpo.ko firewire.ko if_nve.ko ndis.ko s3.ko warp_saver.ko firmware.ko if_oltr.ko netgraph.ko safe.ko wlan.ko g_md.ko if_patm.ko nfsclient.ko savage.ko wlan_acl.ko geom_apple.ko if_pcn.ko nfsmb.ko sbp.ko wlan_amrr.ko geom_bde.ko if_ppp.ko nfsserver.ko sbp_targ.ko wlan_ccmp.ko geom_bsd.ko if_ral.ko ng_UI.ko scd.ko wlan_tkip.ko geom_ccd.ko if_ray.ko ng_async.ko scsi_low.ko wlan_wep.ko geom_concat.ko if_re.ko ng_atm.ko sio.ko wlan_xauth.ko geom_eli.ko if_rl.ko ng_atmllc.ko sis.ko zlib.ko |
#ls /boot/kernel/
3dfx.ko geom_fox.ko if_rue.ko ng_atmpif.ko smapi.ko 3dfx_linux.ko geom_gate.ko if_sbni.ko ng_bluetooth.ko smb.ko aac.ko geom_gpt.ko if_sbsh.ko ng_bpf.ko smbfs.ko aac_linux.ko geom_label.ko if_sf.ko ng_bridge.ko smbios.ko accf_data.ko geom_mbr.ko if_sis.ko ng_bt3c.ko smbus.ko accf_http.ko geom_md.ko if_sk.ko ng_btsocket.ko snake_saver.ko acpi.ko geom_mirror.ko if_sl.ko ng_ccatm.ko snd_ad1816.ko acpi_asus.ko geom_nop.ko if_sn.ko ng_cisco.ko snd_als4000.ko acpi_dock.ko geom_pc98.ko if_sr.ko ng_deflate.ko snd_atiixp.ko acpi_fujitsu.ko geom_raid3.ko if_ste.ko ng_device.ko snd_cmi.ko ... fire_saver.ko if_nge.ko ncv.ko rr232x.ko vpo.ko firewire.ko if_nve.ko ndis.ko s3.ko warp_saver.ko firmware.ko if_oltr.ko netgraph.ko safe.ko wlan.ko g_md.ko if_patm.ko nfsclient.ko savage.ko wlan_acl.ko geom_apple.ko if_pcn.ko nfsmb.ko sbp.ko wlan_amrr.ko geom_bde.ko if_ppp.ko nfsserver.ko sbp_targ.ko wlan_ccmp.ko geom_bsd.ko if_ral.ko ng_UI.ko scd.ko wlan_tkip.ko geom_ccd.ko if_ray.ko ng_async.ko scsi_low.ko wlan_wep.ko geom_concat.ko if_re.ko ng_atm.ko sio.ko wlan_xauth.ko geom_eli.ko if_rl.ko ng_atmllc.ko sis.ko zlib.ko |
#ls /boot/kernel/
3dfx.ko geom_fox.ko if_rue.ko ng_atmpif.ko smapi.ko 3dfx_linux.ko geom_gate.ko if_sbni.ko ng_bluetooth.ko smb.ko aac.ko geom_gpt.ko if_sbsh.ko ng_bpf.ko smbfs.ko aac_linux.ko geom_label.ko if_sf.ko ng_bridge.ko smbios.ko accf_data.ko geom_mbr.ko if_sis.ko ng_bt3c.ko smbus.ko accf_http.ko geom_md.ko if_sk.ko ng_btsocket.ko snake_saver.ko acpi.ko geom_mirror.ko if_sl.ko ng_ccatm.ko snd_ad1816.ko acpi_asus.ko geom_nop.ko if_sn.ko ng_cisco.ko snd_als4000.ko acpi_dock.ko geom_pc98.ko if_sr.ko ng_deflate.ko snd_atiixp.ko acpi_fujitsu.ko geom_raid3.ko if_ste.ko ng_device.ko snd_cmi.ko ... fire_saver.ko if_nge.ko ncv.ko rr232x.ko vpo.ko firewire.ko if_nve.ko ndis.ko s3.ko warp_saver.ko firmware.ko if_oltr.ko netgraph.ko safe.ko wlan.ko g_md.ko if_patm.ko nfsclient.ko savage.ko wlan_acl.ko geom_apple.ko if_pcn.ko nfsmb.ko sbp.ko wlan_amrr.ko geom_bde.ko if_ppp.ko nfsserver.ko sbp_targ.ko wlan_ccmp.ko geom_bsd.ko if_ral.ko ng_UI.ko scd.ko wlan_tkip.ko geom_ccd.ko if_ray.ko ng_async.ko scsi_low.ko wlan_wep.ko geom_concat.ko if_re.ko ng_atm.ko sio.ko wlan_xauth.ko geom_eli.ko if_rl.ko ng_atmllc.ko sis.ko zlib.ko |
#ls /boot/kernel/
3dfx.ko geom_fox.ko if_rue.ko ng_atmpif.ko smapi.ko 3dfx_linux.ko geom_gate.ko if_sbni.ko ng_bluetooth.ko smb.ko aac.ko geom_gpt.ko if_sbsh.ko ng_bpf.ko smbfs.ko aac_linux.ko geom_label.ko if_sf.ko ng_bridge.ko smbios.ko accf_data.ko geom_mbr.ko if_sis.ko ng_bt3c.ko smbus.ko accf_http.ko geom_md.ko if_sk.ko ng_btsocket.ko snake_saver.ko acpi.ko geom_mirror.ko if_sl.ko ng_ccatm.ko snd_ad1816.ko acpi_asus.ko geom_nop.ko if_sn.ko ng_cisco.ko snd_als4000.ko acpi_dock.ko geom_pc98.ko if_sr.ko ng_deflate.ko snd_atiixp.ko acpi_fujitsu.ko geom_raid3.ko if_ste.ko ng_device.ko snd_cmi.ko ... fire_saver.ko if_nge.ko ncv.ko rr232x.ko vpo.ko firewire.ko if_nve.ko ndis.ko s3.ko warp_saver.ko firmware.ko if_oltr.ko netgraph.ko safe.ko wlan.ko g_md.ko if_patm.ko nfsclient.ko savage.ko wlan_acl.ko geom_apple.ko if_pcn.ko nfsmb.ko sbp.ko wlan_amrr.ko geom_bde.ko if_ppp.ko nfsserver.ko sbp_targ.ko wlan_ccmp.ko geom_bsd.ko if_ral.ko ng_UI.ko scd.ko wlan_tkip.ko geom_ccd.ko if_ray.ko ng_async.ko scsi_low.ko wlan_wep.ko geom_concat.ko if_re.ko ng_atm.ko sio.ko wlan_xauth.ko geom_eli.ko if_rl.ko ng_atmllc.ko sis.ko zlib.ko |
#ls /boot/kernel/\*div
ls: /boot/kernel/*div: No such file or directory |
#ls /boot/kernel/\*div\*
ls: /boot/kernel/*div*: No such file or directory |
#ls /boot/kernel/*div*
/boot/kernel/ipdivert.ko |
#kldload ipdivert
|
#kldload ipdivert
|
#kldload ipdivert
|
#kldload ipdivert
|
#kldload ipdivert
|
#kldload ipdivert
|
#kldload ipdivert
|
#kldload ipdivert
|
#kldload ipdivert
|
#ipfw add 00101 divert natd ip from any to any via re1
00101 divert 8668 ip from any to any via re1 |
Время первой команды журнала | 16:05:54 2010- 1-18 | ||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 17:06:47 2010- 1-18 | ||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 18.81 | ||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.00 | ||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 1.01 | ||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 1.66 | ||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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