неважно. я понял это. для любого то, кто мог бы наткнуться на это, ниже является моей установкой iptables с цепочками ЖУРНАЛА для поиска и устранения неисправностей целей.
Chain INPUT (policy DROP 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
169 36504 ACCEPT all -- lo any anywhere anywhere
218 18804 ACCEPT icmp -- any any anywhere anywhere
4919 365K ACCEPT udp -- eth0 any anywhere anywhere udp spt:domain dpts:1024:65535
196 24001 ACCEPT tcp -- eth0 any anywhere anywhere tcp dpt:http
0 0 ACCEPT tcp -- eth0 any anywhere anywhere tcp dpt:https
10698 696K ACCEPT tcp -- eth0 any anywhere anywhere tcp dpt:ssh
53 3686 ACCEPT tcp -- any any anywhere anywhere tcp spt:telnet
77 7709 LOG_DROP_INPUT all -- any any anywhere anywhere
Chain FORWARD (policy DROP 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
1258 75480 ACCEPT icmp -- eth1 eth0 anywhere anywhere
23927 31M ACCEPT all -- eth0 eth1 anywhere anywhere
195 12057 ACCEPT udp -- eth1 any anywhere anywhere udp dpt:domain
17512 1425K ACCEPT tcp -- eth1 any anywhere anywhere tcp dpt:http
211 40089 ACCEPT tcp -- eth1 any anywhere anywhere tcp dpt:https
0 0 ACCEPT tcp -- any any anywhere anywhere tcp dpt:telnet
18 1860 LOG_DROP_FORWARD all -- any any anywhere anywhere
Chain OUTPUT (policy DROP 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
457 61686 ACCEPT icmp -- any any anywhere anywhere
19715 4141K ACCEPT all -- any any anywhere anywhere
Chain LOG_DROP (0 references)
pkts bytes target prot opt in out source destination
43246 2583K LOG all -- any any anywhere anywhere LOG level warning tcp-options ip-options prefix `[IPTABLES DROP] :'
43246 2583K DROP all -- any any anywhere anywhere
Chain LOG_DROP_FORWARD (1 references)
pkts bytes target prot opt in out source destination
18 1860 LOG all -- any any anywhere anywhere LOG level warning tcp-options ip-options prefix `[IPTABLES DROP FORWARD] : '
18 1860 DROP all -- any any anywhere anywhere
Chain LOG_DROP_INPUT (1 references)
pkts bytes target prot opt in out source destination
77 7709 LOG all -- any any anywhere anywhere LOG level warning tcp-options ip-options prefix `[IPTABLES DROP INPUT] : '
77 7709 DROP all -- any any anywhere anywhere
You may be experiencing buffering of the log output.
I locally tested both with and without screen name and received the expected screenlog.0 and .1 and .2 etc. Each log corresponded to the contents of each window. There is a buffer before it gets written to disk
Reference flush secs: http://www.gnu.org/software/screen/manual/screen.html#Logging
В дополнение к тому, что сказал splaer (что, вероятно, и происходит здесь), вы можете использовать скрипт
для записи ваших сессий, если экран
вызывает у вас проблемы.
Удобство screen -L
- это хорошо, но если он доставляет вам проблемы, скрипт
- удобный обходной путь (и если вы когда-нибудь окажетесь на машине без экрана
- к сожалению, они все еще существуют - скорее всего скрипт
все еще будет там).
Вот как вы можете регистрировать вывод нескольких сеансов экрана в отдельных файлах журнала:
screen -S
Ctrl + a: logfile
Ctrl + a H
Это может похоже, что каждый раз требуется много работы, но как только вы начнете использовать его, он станет очень удобным!