/l3/users/10-09-2007/nt-bsdnet/fbsd3.unix.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 :16 :17 :18 :19 :20 :21 :22 :23 :24 :25 :26 :27 :28 :29 :30 :31 :32 :33 :34 :35 :36 |
|
#pfctl -v -f frw.conf
No ALTQ support in kernel ALTQ related functions disabled table <allowed> const file "/etc/myfriends" int_if = "xl0" ext_if = "em0" net = "192.168.30.0/24" block drop in all block drop out all pass out quick on em0 proto icmp from any to <allowed> keep state pass in quick on em0 proto icmp from <allowed> to any keep state pass out quick on em0 inet proto udp from 192.168.15.237 to any port = domain keep state pass out quick on em0 inet proto tcp from 192.168.15.237 to any port = http keep state pass in quick on em0 inet proto tcp from <allowed> to 192.168.15.237 port = ssh keep state pass out quick on em0 inet proto tcp from 192.168.15.237 to any port = ssh keep state pass out quick on xl0 proto icmp all keep state pass in quick on xl0 proto icmp all keep state frw.conf:18: Rules must be in order: options, normalization, queueing, translation, filtering pfctl: Syntax error in config file: pf rules not loaded |
#vim frw.conf
6a7 > nat on em0 from 192.168.30.0/24 to any -> 192.168.15.237/32 18c19 < nat on em0 from 192.168.30.0/24 to any -> 192.168.15.237/32 --- > |
#vim frw.conf
6a7 > nat on em0 from 192.168.30.0/24 to any -> 192.168.15.237/32 18c19 < nat on em0 from 192.168.30.0/24 to any -> 192.168.15.237/32 --- > |
#vim frw.conf
6a7 > nat on em0 from 192.168.30.0/24 to any -> 192.168.15.237/32 18c19 < nat on em0 from 192.168.30.0/24 to any -> 192.168.15.237/32 --- > |
#vim frw.conf
6a7 > nat on em0 from 192.168.30.0/24 to any -> 192.168.15.237/32 18c19 < nat on em0 from 192.168.30.0/24 to any -> 192.168.15.237/32 --- > |
#vim frw.conf
6a7 > nat on em0 from 192.168.30.0/24 to any -> 192.168.15.237/32 18c19 < nat on em0 from 192.168.30.0/24 to any -> 192.168.15.237/32 --- > |
#vim frw.conf
6a7 > nat on em0 from 192.168.30.0/24 to any -> 192.168.15.237/32 18c19 < nat on em0 from 192.168.30.0/24 to any -> 192.168.15.237/32 --- > |
#vim frw.conf
6a7 > nat on em0 from 192.168.30.0/24 to any -> 192.168.15.237/32 18c19 < nat on em0 from 192.168.30.0/24 to any -> 192.168.15.237/32 --- > |
#vim frw.conf
6a7 > nat on em0 from 192.168.30.0/24 to any -> 192.168.15.237/32 18c19 < nat on em0 from 192.168.30.0/24 to any -> 192.168.15.237/32 --- > |
#vim frw.conf
6a7 > nat on em0 from 192.168.30.0/24 to any -> 192.168.15.237/32 18c19 < nat on em0 from 192.168.30.0/24 to any -> 192.168.15.237/32 --- > |
#vim frw.conf
6a7 > nat on em0 from 192.168.30.0/24 to any -> 192.168.15.237/32 18c19 < nat on em0 from 192.168.30.0/24 to any -> 192.168.15.237/32 --- > |
#vim frw.conf
6a7 > nat on em0 from 192.168.30.0/24 to any -> 192.168.15.237/32 18c19 < nat on em0 from 192.168.30.0/24 to any -> 192.168.15.237/32 --- > |
#vim frw.conf
6a7 > nat on em0 from 192.168.30.0/24 to any -> 192.168.15.237/32 18c19 < nat on em0 from 192.168.30.0/24 to any -> 192.168.15.237/32 --- > |
#vim frw.conf
6a7 > nat on em0 from 192.168.30.0/24 to any -> 192.168.15.237/32 18c19 < nat on em0 from 192.168.30.0/24 to any -> 192.168.15.237/32 --- > |
#vim frw.conf
6a7 > nat on em0 from 192.168.30.0/24 to any -> 192.168.15.237/32 18c19 < nat on em0 from 192.168.30.0/24 to any -> 192.168.15.237/32 --- > |
#vim frw.conf
6a7 > nat on em0 from 192.168.30.0/24 to any -> 192.168.15.237/32 18c19 < nat on em0 from 192.168.30.0/24 to any -> 192.168.15.237/32 --- > |
#vim frw.conf
6a7 > nat on em0 from 192.168.30.0/24 to any -> 192.168.15.237/32 18c19 < nat on em0 from 192.168.30.0/24 to any -> 192.168.15.237/32 --- > |
#vim frw.conf
6a7 > nat on em0 from 192.168.30.0/24 to any -> 192.168.15.237/32 18c19 < nat on em0 from 192.168.30.0/24 to any -> 192.168.15.237/32 --- > |
#vim frw.conf
6a7 > nat on em0 from 192.168.30.0/24 to any -> 192.168.15.237/32 18c19 < nat on em0 from 192.168.30.0/24 to any -> 192.168.15.237/32 --- > |
#vim frw.conf
6a7 > nat on em0 from 192.168.30.0/24 to any -> 192.168.15.237/32 18c19 < nat on em0 from 192.168.30.0/24 to any -> 192.168.15.237/32 --- > |
#vim frw.conf
6a7 > nat on em0 from 192.168.30.0/24 to any -> 192.168.15.237/32 18c19 < nat on em0 from 192.168.30.0/24 to any -> 192.168.15.237/32 --- > |
#pfctl -v -f frw.conf
No ALTQ support in kernel ALTQ related functions disabled table <allowed> const file "/etc/myfriends" int_if = "xl0" ext_if = "em0" net = "192.168.30.0/24" nat on em0 inet from 192.168.30.0/24 to any -> 192.168.15.237 block drop in all block drop out all pass out quick on em0 proto icmp from any to <allowed> keep state pass in quick on em0 proto icmp from <allowed> to any keep state pass out quick on em0 inet proto udp from 192.168.15.237 to any port = domain keep state pass out quick on em0 inet proto tcp from 192.168.15.237 to any port = http keep state pass in quick on em0 inet proto tcp from <allowed> to 192.168.15.237 port = ssh keep state pass out quick on em0 inet proto tcp from 192.168.15.237 to any port = ssh keep state pass out quick on xl0 proto icmp all keep state pass in quick on xl0 proto icmp all keep state |
#pfctl -v -f frw.conf
No ALTQ support in kernel ALTQ related functions disabled table <allowed> const file "/etc/myfriends" int_if = "xl0" ext_if = "em0" net = "192.168.30.0/24" nat on em0 inet from 192.168.30.0/24 to any -> 192.168.15.237 block drop in all block drop out all pass out quick on em0 proto icmp from any to <allowed> keep state pass in quick on em0 proto icmp from <allowed> to any keep state pass out quick on em0 inet proto udp from 192.168.15.237 to any port = domain keep state pass out quick on em0 inet proto tcp from 192.168.15.237 to any port = http keep state pass in quick on em0 inet proto tcp from <allowed> to 192.168.15.237 port = ssh keep state pass out quick on em0 inet proto tcp from 192.168.15.237 to any port = ssh keep state pass out quick on xl0 proto icmp all keep state pass in quick on xl0 proto icmp all keep state |
#pfctl -v -f frw.conf
No ALTQ support in kernel ALTQ related functions disabled table <allowed> const file "/etc/myfriends" int_if = "xl0" ext_if = "em0" net = "192.168.30.0/24" nat on em0 inet from 192.168.30.0/24 to any -> 192.168.15.237 block drop in all block drop out all pass out quick on em0 proto icmp from any to <allowed> keep state pass in quick on em0 proto icmp from <allowed> to any keep state pass out quick on em0 inet proto udp from 192.168.15.237 to any port = domain keep state pass out quick on em0 inet proto tcp from 192.168.15.237 to any port = http keep state pass in quick on em0 inet proto tcp from <allowed> to 192.168.15.237 port = ssh keep state pass out quick on em0 inet proto tcp from 192.168.15.237 to any port = ssh keep state pass out quick on xl0 proto icmp all keep state pass in quick on xl0 proto icmp all keep state |
#pfctl -v -f frw.conf
No ALTQ support in kernel ALTQ related functions disabled table <allowed> const file "/etc/myfriends" int_if = "xl0" ext_if = "em0" net = "192.168.30.0/24" nat on em0 inet from 192.168.30.0/24 to any -> 192.168.15.237 block drop in all block drop out all pass out quick on em0 proto icmp from any to <allowed> keep state pass in quick on em0 proto icmp from <allowed> to any keep state pass out quick on em0 inet proto udp from 192.168.15.237 to any port = domain keep state pass out quick on em0 inet proto tcp from 192.168.15.237 to any port = http keep state pass in quick on em0 inet proto tcp from <allowed> to 192.168.15.237 port = ssh keep state pass out quick on em0 inet proto tcp from 192.168.15.237 to any port = ssh keep state pass out quick on xl0 proto icmp all keep state pass in quick on xl0 proto icmp all keep state |
#pfctl -v -f frw.conf
No ALTQ support in kernel ALTQ related functions disabled table <allowed> const file "/etc/myfriends" int_if = "xl0" ext_if = "em0" net = "192.168.30.0/24" nat on em0 inet from 192.168.30.0/24 to any -> 192.168.15.237 block drop in all block drop out all pass out quick on em0 proto icmp from any to <allowed> keep state pass in quick on em0 proto icmp from <allowed> to any keep state pass out quick on em0 inet proto udp from 192.168.15.237 to any port = domain keep state pass out quick on em0 inet proto tcp from 192.168.15.237 to any port = http keep state pass in quick on em0 inet proto tcp from <allowed> to 192.168.15.237 port = ssh keep state pass out quick on em0 inet proto tcp from 192.168.15.237 to any port = ssh keep state pass out quick on xl0 proto icmp all keep state pass in quick on xl0 proto icmp all keep state |
#pfctl -v -f frw.conf
No ALTQ support in kernel ALTQ related functions disabled table <allowed> const file "/etc/myfriends" int_if = "xl0" ext_if = "em0" net = "192.168.30.0/24" nat on em0 inet from 192.168.30.0/24 to any -> 192.168.15.237 block drop in all block drop out all pass out quick on em0 proto icmp from any to <allowed> keep state pass in quick on em0 proto icmp from <allowed> to any keep state pass out quick on em0 inet proto udp from 192.168.15.237 to any port = domain keep state pass out quick on em0 inet proto tcp from 192.168.15.237 to any port = http keep state pass in quick on em0 inet proto tcp from <allowed> to 192.168.15.237 port = ssh keep state pass out quick on em0 inet proto tcp from 192.168.15.237 to any port = ssh keep state pass out quick on xl0 proto icmp all keep state pass in quick on xl0 proto icmp all keep state |
#pfctl -v -f frw.conf
No ALTQ support in kernel ALTQ related functions disabled table <allowed> const file "/etc/myfriends" int_if = "xl0" ext_if = "em0" net = "192.168.30.0/24" nat on em0 inet from 192.168.30.0/24 to any -> 192.168.15.237 block drop in all block drop out all pass out quick on em0 proto icmp from any to <allowed> keep state pass in quick on em0 proto icmp from <allowed> to any keep state pass out quick on em0 inet proto udp from 192.168.15.237 to any port = domain keep state pass out quick on em0 inet proto tcp from 192.168.15.237 to any port = http keep state pass in quick on em0 inet proto tcp from <allowed> to 192.168.15.237 port = ssh keep state pass out quick on em0 inet proto tcp from 192.168.15.237 to any port = ssh keep state pass out quick on xl0 proto icmp all keep state pass in quick on xl0 proto icmp all keep state |
#pfctl -v -f frw.conf
No ALTQ support in kernel ALTQ related functions disabled table <allowed> const file "/etc/myfriends" int_if = "xl0" ext_if = "em0" net = "192.168.30.0/24" nat on em0 inet from 192.168.30.0/24 to any -> 192.168.15.237 block drop in all block drop out all pass out quick on em0 proto icmp from any to <allowed> keep state pass in quick on em0 proto icmp from <allowed> to any keep state pass out quick on em0 inet proto udp from 192.168.15.237 to any port = domain keep state pass out quick on em0 inet proto tcp from 192.168.15.237 to any port = http keep state pass in quick on em0 inet proto tcp from <allowed> to 192.168.15.237 port = ssh keep state pass out quick on em0 inet proto tcp from 192.168.15.237 to any port = ssh keep state pass out quick on xl0 proto icmp all keep state pass in quick on xl0 proto icmp all keep state |
#pfctl -v -f frw.conf
No ALTQ support in kernel ALTQ related functions disabled table <allowed> const file "/etc/myfriends" int_if = "xl0" ext_if = "em0" net = "192.168.30.0/24" nat on em0 inet from 192.168.30.0/24 to any -> 192.168.15.237 block drop in all block drop out all pass out quick on em0 proto icmp from any to <allowed> keep state pass in quick on em0 proto icmp from <allowed> to any keep state pass out quick on em0 inet proto udp from 192.168.15.237 to any port = domain keep state pass out quick on em0 inet proto tcp from 192.168.15.237 to any port = http keep state pass in quick on em0 inet proto tcp from <allowed> to 192.168.15.237 port = ssh keep state pass out quick on em0 inet proto tcp from 192.168.15.237 to any port = ssh keep state pass out quick on xl0 proto icmp all keep state pass in quick on xl0 proto icmp all keep state |
#pfctl -v -f frw.conf
No ALTQ support in kernel ALTQ related functions disabled table <allowed> const file "/etc/myfriends" int_if = "xl0" ext_if = "em0" net = "192.168.30.0/24" nat on em0 inet from 192.168.30.0/24 to any -> 192.168.15.237 block drop in all block drop out all pass out quick on em0 proto icmp from any to <allowed> keep state pass in quick on em0 proto icmp from <allowed> to any keep state pass out quick on em0 inet proto udp from 192.168.15.237 to any port = domain keep state pass out quick on em0 inet proto tcp from 192.168.15.237 to any port = http keep state pass in quick on em0 inet proto tcp from <allowed> to 192.168.15.237 port = ssh keep state pass out quick on em0 inet proto tcp from 192.168.15.237 to any port = ssh keep state pass out quick on xl0 proto icmp all keep state pass in quick on xl0 proto icmp all keep state |
#pfctl -v -f frw.conf
No ALTQ support in kernel ALTQ related functions disabled table <allowed> const file "/etc/myfriends" int_if = "xl0" ext_if = "em0" net = "192.168.30.0/24" nat on em0 inet from 192.168.30.0/24 to any -> 192.168.15.237 block drop in all block drop out all pass out quick on em0 proto icmp from any to <allowed> keep state pass in quick on em0 proto icmp from <allowed> to any keep state pass out quick on em0 inet proto udp from 192.168.15.237 to any port = domain keep state pass out quick on em0 inet proto tcp from 192.168.15.237 to any port = http keep state pass in quick on em0 inet proto tcp from <allowed> to 192.168.15.237 port = ssh keep state pass out quick on em0 inet proto tcp from 192.168.15.237 to any port = ssh keep state pass out quick on xl0 proto icmp all keep state pass in quick on xl0 proto icmp all keep state |
#pfctl -v -f frw.conf
No ALTQ support in kernel ALTQ related functions disabled table <allowed> const file "/etc/myfriends" int_if = "xl0" ext_if = "em0" net = "192.168.30.0/24" nat on em0 inet from 192.168.30.0/24 to any -> 192.168.15.237 block drop in all block drop out all pass out quick on em0 proto icmp from any to <allowed> keep state pass in quick on em0 proto icmp from <allowed> to any keep state pass out quick on em0 inet proto udp from 192.168.15.237 to any port = domain keep state pass out quick on em0 inet proto tcp from 192.168.15.237 to any port = http keep state pass in quick on em0 inet proto tcp from <allowed> to 192.168.15.237 port = ssh keep state pass out quick on em0 inet proto tcp from 192.168.15.237 to any port = ssh keep state pass out quick on xl0 proto icmp all keep state pass in quick on xl0 proto icmp all keep state |
#pfctl -v -f frw.conf
No ALTQ support in kernel ALTQ related functions disabled table <allowed> const file "/etc/myfriends" int_if = "xl0" ext_if = "em0" net = "192.168.30.0/24" nat on em0 inet from 192.168.30.0/24 to any -> 192.168.15.237 block drop in all block drop out all pass out quick on em0 proto icmp from any to <allowed> keep state pass in quick on em0 proto icmp from <allowed> to any keep state pass out quick on em0 inet proto udp from 192.168.15.237 to any port = domain keep state pass out quick on em0 inet proto tcp from 192.168.15.237 to any port = http keep state pass in quick on em0 inet proto tcp from <allowed> to 192.168.15.237 port = ssh keep state pass out quick on em0 inet proto tcp from 192.168.15.237 to any port = ssh keep state pass out quick on xl0 proto icmp all keep state pass in quick on xl0 proto icmp all keep state |
#pfctl -v -f frw.conf
No ALTQ support in kernel ALTQ related functions disabled table <allowed> const file "/etc/myfriends" int_if = "xl0" ext_if = "em0" net = "192.168.30.0/24" nat on em0 inet from 192.168.30.0/24 to any -> 192.168.15.237 block drop in all block drop out all pass out quick on em0 proto icmp from any to <allowed> keep state pass in quick on em0 proto icmp from <allowed> to any keep state pass out quick on em0 inet proto udp from 192.168.15.237 to any port = domain keep state pass out quick on em0 inet proto tcp from 192.168.15.237 to any port = http keep state pass in quick on em0 inet proto tcp from <allowed> to 192.168.15.237 port = ssh keep state pass out quick on em0 inet proto tcp from 192.168.15.237 to any port = ssh keep state pass out quick on xl0 proto icmp all keep state pass in quick on xl0 proto icmp all keep state |
#pfctl -v -f frw.conf
No ALTQ support in kernel ALTQ related functions disabled table <allowed> const file "/etc/myfriends" int_if = "xl0" ext_if = "em0" net = "192.168.30.0/24" nat on em0 inet from 192.168.30.0/24 to any -> 192.168.15.237 block drop in all block drop out all pass out quick on em0 proto icmp from any to <allowed> keep state pass in quick on em0 proto icmp from <allowed> to any keep state pass out quick on em0 inet proto udp from 192.168.15.237 to any port = domain keep state pass out quick on em0 inet proto tcp from 192.168.15.237 to any port = http keep state pass in quick on em0 inet proto tcp from <allowed> to 192.168.15.237 port = ssh keep state pass out quick on em0 inet proto tcp from 192.168.15.237 to any port = ssh keep state pass out quick on xl0 proto icmp all keep state pass in quick on xl0 proto icmp all keep state |
#pfctl -v -f frw.conf
No ALTQ support in kernel ALTQ related functions disabled table <allowed> const file "/etc/myfriends" int_if = "xl0" ext_if = "em0" net = "192.168.30.0/24" nat on em0 inet from 192.168.30.0/24 to any -> 192.168.15.237 block drop in all block drop out all pass out quick on em0 proto icmp from any to <allowed> keep state pass in quick on em0 proto icmp from <allowed> to any keep state pass out quick on em0 inet proto udp from 192.168.15.237 to any port = domain keep state pass out quick on em0 inet proto tcp from 192.168.15.237 to any port = http keep state pass in quick on em0 inet proto tcp from <allowed> to 192.168.15.237 port = ssh keep state pass out quick on em0 inet proto tcp from 192.168.15.237 to any port = ssh keep state pass out quick on xl0 proto icmp all keep state pass in quick on xl0 proto icmp all keep state |
#pfctl -v -f frw.conf
No ALTQ support in kernel ALTQ related functions disabled table <allowed> const file "/etc/myfriends" int_if = "xl0" ext_if = "em0" net = "192.168.30.0/24" nat on em0 inet from 192.168.30.0/24 to any -> 192.168.15.237 block drop in all block drop out all pass out quick on em0 proto icmp from any to <allowed> keep state pass in quick on em0 proto icmp from <allowed> to any keep state pass out quick on em0 inet proto udp from 192.168.15.237 to any port = domain keep state pass out quick on em0 inet proto tcp from 192.168.15.237 to any port = http keep state pass in quick on em0 inet proto tcp from <allowed> to 192.168.15.237 port = ssh keep state pass out quick on em0 inet proto tcp from 192.168.15.237 to any port = ssh keep state pass out quick on xl0 proto icmp all keep state pass in quick on xl0 proto icmp all keep state |
#pfctl -v -f frw.conf
No ALTQ support in kernel ALTQ related functions disabled table <allowed> const file "/etc/myfriends" int_if = "xl0" ext_if = "em0" net = "192.168.30.0/24" nat on em0 inet from 192.168.30.0/24 to any -> 192.168.15.237 block drop in all block drop out all pass out quick on em0 proto icmp from any to <allowed> keep state pass in quick on em0 proto icmp from <allowed> to any keep state pass out quick on em0 inet proto udp from 192.168.15.237 to any port = domain keep state pass out quick on em0 inet proto tcp from 192.168.15.237 to any port = http keep state pass in quick on em0 inet proto tcp from <allowed> to 192.168.15.237 port = ssh keep state pass out quick on em0 inet proto tcp from 192.168.15.237 to any port = ssh keep state pass out quick on xl0 proto icmp all keep state pass in quick on xl0 proto icmp all keep state |
#pfctl -v -f frw.conf
No ALTQ support in kernel ALTQ related functions disabled table <allowed> const file "/etc/myfriends" int_if = "xl0" ext_if = "em0" net = "192.168.30.0/24" nat on em0 inet from 192.168.30.0/24 to any -> 192.168.15.237 block drop in all block drop out all pass out quick on em0 proto icmp from any to <allowed> keep state pass in quick on em0 proto icmp from <allowed> to any keep state pass out quick on em0 inet proto udp from 192.168.15.237 to any port = domain keep state pass out quick on em0 inet proto tcp from 192.168.15.237 to any port = http keep state pass in quick on em0 inet proto tcp from <allowed> to 192.168.15.237 port = ssh keep state pass out quick on em0 inet proto tcp from 192.168.15.237 to any port = ssh keep state pass out quick on xl0 proto icmp all keep state pass in quick on xl0 proto icmp all keep state |
#pfctl -v -f frw.conf
No ALTQ support in kernel ALTQ related functions disabled table <allowed> const file "/etc/myfriends" int_if = "xl0" ext_if = "em0" net = "192.168.30.0/24" nat on em0 inet from 192.168.30.0/24 to any -> 192.168.15.237 block drop in all block drop out all pass out quick on em0 proto icmp from any to <allowed> keep state pass in quick on em0 proto icmp from <allowed> to any keep state pass out quick on em0 inet proto udp from 192.168.15.237 to any port = domain keep state pass out quick on em0 inet proto tcp from 192.168.15.237 to any port = http keep state pass in quick on em0 inet proto tcp from <allowed> to 192.168.15.237 port = ssh keep state pass out quick on em0 inet proto tcp from 192.168.15.237 to any port = ssh keep state pass out quick on xl0 proto icmp all keep state pass in quick on xl0 proto icmp all keep state |
#vim frw.conf
7c7 < nat on em0 from 192.168.30.0/24 to any -> 192.168.15.237/32 --- > nat on $ext_if from $net to any -> ($ext_if) |
#vim frw.conf
7c7 < nat on em0 from 192.168.30.0/24 to any -> 192.168.15.237/32 --- > nat on $ext_if from $net to any -> ($ext_if) |
#vim frw.conf
7c7 < nat on em0 from 192.168.30.0/24 to any -> 192.168.15.237/32 --- > nat on $ext_if from $net to any -> ($ext_if) |
#vim frw.conf
7c7 < nat on em0 from 192.168.30.0/24 to any -> 192.168.15.237/32 --- > nat on $ext_if from $net to any -> ($ext_if) |
#vim frw.conf
7c7 < nat on em0 from 192.168.30.0/24 to any -> 192.168.15.237/32 --- > nat on $ext_if from $net to any -> ($ext_if) |
#vim frw.conf
7c7 < nat on em0 from 192.168.30.0/24 to any -> 192.168.15.237/32 --- > nat on $ext_if from $net to any -> ($ext_if) |
#vim frw.conf
7c7 < nat on em0 from 192.168.30.0/24 to any -> 192.168.15.237/32 --- > nat on $ext_if from $net to any -> ($ext_if) |
#vim frw.conf
7c7 < nat on em0 from 192.168.30.0/24 to any -> 192.168.15.237/32 --- > nat on $ext_if from $net to any -> ($ext_if) |
#vim frw.conf
7c7 < nat on em0 from 192.168.30.0/24 to any -> 192.168.15.237/32 --- > nat on $ext_if from $net to any -> ($ext_if) |
#vim frw.conf
7c7 < nat on em0 from 192.168.30.0/24 to any -> 192.168.15.237/32 --- > nat on $ext_if from $net to any -> ($ext_if) |
#vim frw.conf
7c7 < nat on em0 from 192.168.30.0/24 to any -> 192.168.15.237/32 --- > nat on $ext_if from $net to any -> ($ext_if) |
#vim frw.conf
7c7 < nat on em0 from 192.168.30.0/24 to any -> 192.168.15.237/32 --- > nat on $ext_if from $net to any -> ($ext_if) |
#vim frw.conf
7c7 < nat on em0 from 192.168.30.0/24 to any -> 192.168.15.237/32 --- > nat on $ext_if from $net to any -> ($ext_if) |
#vim frw.conf
7c7 < nat on em0 from 192.168.30.0/24 to any -> 192.168.15.237/32 --- > nat on $ext_if from $net to any -> ($ext_if) |
#vim frw.conf
7c7 < nat on em0 from 192.168.30.0/24 to any -> 192.168.15.237/32 --- > nat on $ext_if from $net to any -> ($ext_if) |
#vim frw.conf
7c7 < nat on em0 from 192.168.30.0/24 to any -> 192.168.15.237/32 --- > nat on $ext_if from $net to any -> ($ext_if) |
#vim frw.conf
7c7 < nat on em0 from 192.168.30.0/24 to any -> 192.168.15.237/32 --- > nat on $ext_if from $net to any -> ($ext_if) |
#vim frw.conf
7c7 < nat on em0 from 192.168.30.0/24 to any -> 192.168.15.237/32 --- > nat on $ext_if from $net to any -> ($ext_if) |
#vim frw.conf
7c7 < nat on em0 from 192.168.30.0/24 to any -> 192.168.15.237/32 --- > nat on $ext_if from $net to any -> ($ext_if) |
#vim frw.conf
7c7 < nat on em0 from 192.168.30.0/24 to any -> 192.168.15.237/32 --- > nat on $ext_if from $net to any -> ($ext_if) |
#pfctl -v -f frw.conf
No ALTQ support in kernel ALTQ related functions disabled table <allowed> const file "/etc/myfriends" int_if = "xl0" ext_if = "em0" net = "192.168.30.0/24" nat on em0 inet from 192.168.30.0/24 to any -> (em0) round-robin block drop in all block drop out all pass out quick on em0 proto icmp from any to <allowed> keep state pass in quick on em0 proto icmp from <allowed> to any keep state pass out quick on em0 inet proto udp from 192.168.15.237 to any port = domain keep state pass out quick on em0 inet proto tcp from 192.168.15.237 to any port = http keep state pass in quick on em0 inet proto tcp from <allowed> to 192.168.15.237 port = ssh keep state pass out quick on em0 inet proto tcp from 192.168.15.237 to any port = ssh keep state pass out quick on xl0 proto icmp all keep state pass in quick on xl0 proto icmp all keep state |
#pfctl -v -f frw.conf
No ALTQ support in kernel ALTQ related functions disabled table <allowed> const file "/etc/myfriends" int_if = "xl0" ext_if = "em0" net = "192.168.30.0/24" nat on em0 inet from 192.168.30.0/24 to any -> (em0) round-robin block drop in all block drop out all pass out quick on em0 proto icmp from any to <allowed> keep state pass in quick on em0 proto icmp from <allowed> to any keep state pass out quick on em0 inet proto udp from 192.168.15.237 to any port = domain keep state pass out quick on em0 inet proto tcp from 192.168.15.237 to any port = http keep state pass in quick on em0 inet proto tcp from <allowed> to 192.168.15.237 port = ssh keep state pass out quick on em0 inet proto tcp from 192.168.15.237 to any port = ssh keep state pass out quick on xl0 proto icmp all keep state pass in quick on xl0 proto icmp all keep state |
#pfctl -v -f frw.conf
No ALTQ support in kernel ALTQ related functions disabled table <allowed> const file "/etc/myfriends" int_if = "xl0" ext_if = "em0" net = "192.168.30.0/24" nat on em0 inet from 192.168.30.0/24 to any -> (em0) round-robin block drop in all block drop out all pass out quick on em0 proto icmp from any to <allowed> keep state pass in quick on em0 proto icmp from <allowed> to any keep state pass out quick on em0 inet proto udp from 192.168.15.237 to any port = domain keep state pass out quick on em0 inet proto tcp from 192.168.15.237 to any port = http keep state pass in quick on em0 inet proto tcp from <allowed> to 192.168.15.237 port = ssh keep state pass out quick on em0 inet proto tcp from 192.168.15.237 to any port = ssh keep state pass out quick on xl0 proto icmp all keep state pass in quick on xl0 proto icmp all keep state |
#pfctl -v -f frw.conf
No ALTQ support in kernel ALTQ related functions disabled table <allowed> const file "/etc/myfriends" int_if = "xl0" ext_if = "em0" net = "192.168.30.0/24" nat on em0 inet from 192.168.30.0/24 to any -> (em0) round-robin block drop in all block drop out all pass out quick on em0 proto icmp from any to <allowed> keep state pass in quick on em0 proto icmp from <allowed> to any keep state pass out quick on em0 inet proto udp from 192.168.15.237 to any port = domain keep state pass out quick on em0 inet proto tcp from 192.168.15.237 to any port = http keep state pass in quick on em0 inet proto tcp from <allowed> to 192.168.15.237 port = ssh keep state pass out quick on em0 inet proto tcp from 192.168.15.237 to any port = ssh keep state pass out quick on xl0 proto icmp all keep state pass in quick on xl0 proto icmp all keep state |
#pfctl -v -f frw.conf
No ALTQ support in kernel ALTQ related functions disabled table <allowed> const file "/etc/myfriends" int_if = "xl0" ext_if = "em0" net = "192.168.30.0/24" nat on em0 inet from 192.168.30.0/24 to any -> (em0) round-robin block drop in all block drop out all pass out quick on em0 proto icmp from any to <allowed> keep state pass in quick on em0 proto icmp from <allowed> to any keep state pass out quick on em0 inet proto udp from 192.168.15.237 to any port = domain keep state pass out quick on em0 inet proto tcp from 192.168.15.237 to any port = http keep state pass in quick on em0 inet proto tcp from <allowed> to 192.168.15.237 port = ssh keep state pass out quick on em0 inet proto tcp from 192.168.15.237 to any port = ssh keep state pass out quick on xl0 proto icmp all keep state pass in quick on xl0 proto icmp all keep state |
#pfctl -v -f frw.conf
No ALTQ support in kernel ALTQ related functions disabled table <allowed> const file "/etc/myfriends" int_if = "xl0" ext_if = "em0" net = "192.168.30.0/24" nat on em0 inet from 192.168.30.0/24 to any -> (em0) round-robin block drop in all block drop out all pass out quick on em0 proto icmp from any to <allowed> keep state pass in quick on em0 proto icmp from <allowed> to any keep state pass out quick on em0 inet proto udp from 192.168.15.237 to any port = domain keep state pass out quick on em0 inet proto tcp from 192.168.15.237 to any port = http keep state pass in quick on em0 inet proto tcp from <allowed> to 192.168.15.237 port = ssh keep state pass out quick on em0 inet proto tcp from 192.168.15.237 to any port = ssh keep state pass out quick on xl0 proto icmp all keep state pass in quick on xl0 proto icmp all keep state |
#pfctl -v -f frw.conf
No ALTQ support in kernel ALTQ related functions disabled table <allowed> const file "/etc/myfriends" int_if = "xl0" ext_if = "em0" net = "192.168.30.0/24" nat on em0 inet from 192.168.30.0/24 to any -> (em0) round-robin block drop in all block drop out all pass out quick on em0 proto icmp from any to <allowed> keep state pass in quick on em0 proto icmp from <allowed> to any keep state pass out quick on em0 inet proto udp from 192.168.15.237 to any port = domain keep state pass out quick on em0 inet proto tcp from 192.168.15.237 to any port = http keep state pass in quick on em0 inet proto tcp from <allowed> to 192.168.15.237 port = ssh keep state pass out quick on em0 inet proto tcp from 192.168.15.237 to any port = ssh keep state pass out quick on xl0 proto icmp all keep state pass in quick on xl0 proto icmp all keep state |
#pfctl -v -f frw.conf
No ALTQ support in kernel ALTQ related functions disabled table <allowed> const file "/etc/myfriends" int_if = "xl0" ext_if = "em0" net = "192.168.30.0/24" nat on em0 inet from 192.168.30.0/24 to any -> (em0) round-robin block drop in all block drop out all pass out quick on em0 proto icmp from any to <allowed> keep state pass in quick on em0 proto icmp from <allowed> to any keep state pass out quick on em0 inet proto udp from 192.168.15.237 to any port = domain keep state pass out quick on em0 inet proto tcp from 192.168.15.237 to any port = http keep state pass in quick on em0 inet proto tcp from <allowed> to 192.168.15.237 port = ssh keep state pass out quick on em0 inet proto tcp from 192.168.15.237 to any port = ssh keep state pass out quick on xl0 proto icmp all keep state pass in quick on xl0 proto icmp all keep state |
#pfctl -v -f frw.conf
No ALTQ support in kernel ALTQ related functions disabled table <allowed> const file "/etc/myfriends" int_if = "xl0" ext_if = "em0" net = "192.168.30.0/24" nat on em0 inet from 192.168.30.0/24 to any -> (em0) round-robin block drop in all block drop out all pass out quick on em0 proto icmp from any to <allowed> keep state pass in quick on em0 proto icmp from <allowed> to any keep state pass out quick on em0 inet proto udp from 192.168.15.237 to any port = domain keep state pass out quick on em0 inet proto tcp from 192.168.15.237 to any port = http keep state pass in quick on em0 inet proto tcp from <allowed> to 192.168.15.237 port = ssh keep state pass out quick on em0 inet proto tcp from 192.168.15.237 to any port = ssh keep state pass out quick on xl0 proto icmp all keep state pass in quick on xl0 proto icmp all keep state |
#pfctl -v -f frw.conf
No ALTQ support in kernel ALTQ related functions disabled table <allowed> const file "/etc/myfriends" int_if = "xl0" ext_if = "em0" net = "192.168.30.0/24" nat on em0 inet from 192.168.30.0/24 to any -> (em0) round-robin block drop in all block drop out all pass out quick on em0 proto icmp from any to <allowed> keep state pass in quick on em0 proto icmp from <allowed> to any keep state pass out quick on em0 inet proto udp from 192.168.15.237 to any port = domain keep state pass out quick on em0 inet proto tcp from 192.168.15.237 to any port = http keep state pass in quick on em0 inet proto tcp from <allowed> to 192.168.15.237 port = ssh keep state pass out quick on em0 inet proto tcp from 192.168.15.237 to any port = ssh keep state pass out quick on xl0 proto icmp all keep state pass in quick on xl0 proto icmp all keep state |
#pfctl -v -f frw.conf
No ALTQ support in kernel ALTQ related functions disabled table <allowed> const file "/etc/myfriends" int_if = "xl0" ext_if = "em0" net = "192.168.30.0/24" nat on em0 inet from 192.168.30.0/24 to any -> (em0) round-robin block drop in all block drop out all pass out quick on em0 proto icmp from any to <allowed> keep state pass in quick on em0 proto icmp from <allowed> to any keep state pass out quick on em0 inet proto udp from 192.168.15.237 to any port = domain keep state pass out quick on em0 inet proto tcp from 192.168.15.237 to any port = http keep state pass in quick on em0 inet proto tcp from <allowed> to 192.168.15.237 port = ssh keep state pass out quick on em0 inet proto tcp from 192.168.15.237 to any port = ssh keep state pass out quick on xl0 proto icmp all keep state pass in quick on xl0 proto icmp all keep state |
#pfctl -v -f frw.conf
No ALTQ support in kernel ALTQ related functions disabled table <allowed> const file "/etc/myfriends" int_if = "xl0" ext_if = "em0" net = "192.168.30.0/24" nat on em0 inet from 192.168.30.0/24 to any -> (em0) round-robin block drop in all block drop out all pass out quick on em0 proto icmp from any to <allowed> keep state pass in quick on em0 proto icmp from <allowed> to any keep state pass out quick on em0 inet proto udp from 192.168.15.237 to any port = domain keep state pass out quick on em0 inet proto tcp from 192.168.15.237 to any port = http keep state pass in quick on em0 inet proto tcp from <allowed> to 192.168.15.237 port = ssh keep state pass out quick on em0 inet proto tcp from 192.168.15.237 to any port = ssh keep state pass out quick on xl0 proto icmp all keep state pass in quick on xl0 proto icmp all keep state |
#pfctl -v -f frw.conf
No ALTQ support in kernel ALTQ related functions disabled table <allowed> const file "/etc/myfriends" int_if = "xl0" ext_if = "em0" net = "192.168.30.0/24" nat on em0 inet from 192.168.30.0/24 to any -> (em0) round-robin block drop in all block drop out all pass out quick on em0 proto icmp from any to <allowed> keep state pass in quick on em0 proto icmp from <allowed> to any keep state pass out quick on em0 inet proto udp from 192.168.15.237 to any port = domain keep state pass out quick on em0 inet proto tcp from 192.168.15.237 to any port = http keep state pass in quick on em0 inet proto tcp from <allowed> to 192.168.15.237 port = ssh keep state pass out quick on em0 inet proto tcp from 192.168.15.237 to any port = ssh keep state pass out quick on xl0 proto icmp all keep state pass in quick on xl0 proto icmp all keep state |
#pfctl -v -f frw.conf
No ALTQ support in kernel ALTQ related functions disabled table <allowed> const file "/etc/myfriends" int_if = "xl0" ext_if = "em0" net = "192.168.30.0/24" nat on em0 inet from 192.168.30.0/24 to any -> (em0) round-robin block drop in all block drop out all pass out quick on em0 proto icmp from any to <allowed> keep state pass in quick on em0 proto icmp from <allowed> to any keep state pass out quick on em0 inet proto udp from 192.168.15.237 to any port = domain keep state pass out quick on em0 inet proto tcp from 192.168.15.237 to any port = http keep state pass in quick on em0 inet proto tcp from <allowed> to 192.168.15.237 port = ssh keep state pass out quick on em0 inet proto tcp from 192.168.15.237 to any port = ssh keep state pass out quick on xl0 proto icmp all keep state pass in quick on xl0 proto icmp all keep state |
#pfctl -v -f frw.conf
No ALTQ support in kernel ALTQ related functions disabled table <allowed> const file "/etc/myfriends" int_if = "xl0" ext_if = "em0" net = "192.168.30.0/24" nat on em0 inet from 192.168.30.0/24 to any -> (em0) round-robin block drop in all block drop out all pass out quick on em0 proto icmp from any to <allowed> keep state pass in quick on em0 proto icmp from <allowed> to any keep state pass out quick on em0 inet proto udp from 192.168.15.237 to any port = domain keep state pass out quick on em0 inet proto tcp from 192.168.15.237 to any port = http keep state pass in quick on em0 inet proto tcp from <allowed> to 192.168.15.237 port = ssh keep state pass out quick on em0 inet proto tcp from 192.168.15.237 to any port = ssh keep state pass out quick on xl0 proto icmp all keep state pass in quick on xl0 proto icmp all keep state |
#pfctl -v -f frw.conf
No ALTQ support in kernel ALTQ related functions disabled table <allowed> const file "/etc/myfriends" int_if = "xl0" ext_if = "em0" net = "192.168.30.0/24" nat on em0 inet from 192.168.30.0/24 to any -> (em0) round-robin block drop in all block drop out all pass out quick on em0 proto icmp from any to <allowed> keep state pass in quick on em0 proto icmp from <allowed> to any keep state pass out quick on em0 inet proto udp from 192.168.15.237 to any port = domain keep state pass out quick on em0 inet proto tcp from 192.168.15.237 to any port = http keep state pass in quick on em0 inet proto tcp from <allowed> to 192.168.15.237 port = ssh keep state pass out quick on em0 inet proto tcp from 192.168.15.237 to any port = ssh keep state pass out quick on xl0 proto icmp all keep state pass in quick on xl0 proto icmp all keep state |
#pfctl -v -f frw.conf
No ALTQ support in kernel ALTQ related functions disabled table <allowed> const file "/etc/myfriends" int_if = "xl0" ext_if = "em0" net = "192.168.30.0/24" nat on em0 inet from 192.168.30.0/24 to any -> (em0) round-robin block drop in all block drop out all pass out quick on em0 proto icmp from any to <allowed> keep state pass in quick on em0 proto icmp from <allowed> to any keep state pass out quick on em0 inet proto udp from 192.168.15.237 to any port = domain keep state pass out quick on em0 inet proto tcp from 192.168.15.237 to any port = http keep state pass in quick on em0 inet proto tcp from <allowed> to 192.168.15.237 port = ssh keep state pass out quick on em0 inet proto tcp from 192.168.15.237 to any port = ssh keep state pass out quick on xl0 proto icmp all keep state pass in quick on xl0 proto icmp all keep state |
#pfctl -v -f frw.conf
No ALTQ support in kernel ALTQ related functions disabled table <allowed> const file "/etc/myfriends" int_if = "xl0" ext_if = "em0" net = "192.168.30.0/24" nat on em0 inet from 192.168.30.0/24 to any -> (em0) round-robin block drop in all block drop out all pass out quick on em0 proto icmp from any to <allowed> keep state pass in quick on em0 proto icmp from <allowed> to any keep state pass out quick on em0 inet proto udp from 192.168.15.237 to any port = domain keep state pass out quick on em0 inet proto tcp from 192.168.15.237 to any port = http keep state pass in quick on em0 inet proto tcp from <allowed> to 192.168.15.237 port = ssh keep state pass out quick on em0 inet proto tcp from 192.168.15.237 to any port = ssh keep state pass out quick on xl0 proto icmp all keep state pass in quick on xl0 proto icmp all keep state |
#pfctl -v -f frw.conf
No ALTQ support in kernel ALTQ related functions disabled table <allowed> const file "/etc/myfriends" int_if = "xl0" ext_if = "em0" net = "192.168.30.0/24" nat on em0 inet from 192.168.30.0/24 to any -> (em0) round-robin block drop in all block drop out all pass out quick on em0 proto icmp from any to <allowed> keep state pass in quick on em0 proto icmp from <allowed> to any keep state pass out quick on em0 inet proto udp from 192.168.15.237 to any port = domain keep state pass out quick on em0 inet proto tcp from 192.168.15.237 to any port = http keep state pass in quick on em0 inet proto tcp from <allowed> to 192.168.15.237 port = ssh keep state pass out quick on em0 inet proto tcp from 192.168.15.237 to any port = ssh keep state pass out quick on xl0 proto icmp all keep state pass in quick on xl0 proto icmp all keep state |
#pfctl -v -f frw.conf
No ALTQ support in kernel ALTQ related functions disabled table <allowed> const file "/etc/myfriends" int_if = "xl0" ext_if = "em0" net = "192.168.30.0/24" nat on em0 inet from 192.168.30.0/24 to any -> (em0) round-robin block drop in all block drop out all pass out quick on em0 proto icmp from any to <allowed> keep state pass in quick on em0 proto icmp from <allowed> to any keep state pass out quick on em0 inet proto udp from 192.168.15.237 to any port = domain keep state pass out quick on em0 inet proto tcp from 192.168.15.237 to any port = http keep state pass in quick on em0 inet proto tcp from <allowed> to 192.168.15.237 port = ssh keep state pass out quick on em0 inet proto tcp from 192.168.15.237 to any port = ssh keep state pass out quick on xl0 proto icmp all keep state pass in quick on xl0 proto icmp all keep state |
#tcpdump -i em0 -p icmp -n
tcpdump: syntax error |
#tcpdump -i em0 -p icmp -n
tcpdump: syntax error |
#tcpdump -i em0 -p icmp -n
tcpdump: syntax error |
#tcpdump -i em0 -p icmp -n
tcpdump: syntax error |
#tcpdump -i em0 -p icmp -n
tcpdump: syntax error |
#tcpdump -i em0 -p icmp -n
tcpdump: syntax error |
#tcpdump -i em0 -p icmp -n
tcpdump: syntax error |
#tcpdump -i em0 -p icmp -n
tcpdump: syntax error |
#tcpdump -i em0 -p icmp -n
tcpdump: syntax error |
#tcpdump -i em0 -p icmp -n
tcpdump: syntax error |
#tcpdump -i em0 -p icmp -n
tcpdump: syntax error |
#tcpdump -i em0 -p icmp -n
tcpdump: syntax error |
#tcpdump -i em0 -p icmp -n
tcpdump: syntax error |
#tcpdump -i em0 -p icmp -n
tcpdump: syntax error |
#tcpdump -i em0 -p icmp -n
tcpdump: syntax error |
#tcpdump -i em0 -p icmp -n
tcpdump: syntax error |
#tcpdump -i em0 -p icmp -n
tcpdump: syntax error |
#tcpdump -i em0 -p icmp -n
tcpdump: syntax error |
#tcpdump -i em0 -p icmp -n
tcpdump: syntax error |
#tcpdump -i em0 -p icmp -n
tcpdump: syntax error |
Время первой команды журнала | 15:59:37 2007- 9-12 | |||||||||
Время последней команды журнала | 16:01:31 2007- 9-12 | |||||||||
Количество командных строк в журнале | 101 | |||||||||
Процент команд с ненулевым кодом завершения, % | 20.79 | |||||||||
Процент синтаксически неверно набранных команд, % | 0.00 | |||||||||
Суммарное время работы с терминалом *, час | 0.03 | |||||||||
Количество командных строк в единицу времени, команда/мин | 53.16 | |||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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