У мене є роутер (2.6.12-gentoo-r6), який роздає І-нет невеличкій домашній локальній мережі (10.0.0.0/24, 6 компів) через прозорий проксі. І все було-б чудово, якби системний лог не засмічувався ось цим:
May 20 10:59:30 tfsoft printk: 1 messages suppressed.
May 20 10:59:30 tfsoft BUG: using smp_processor_id() in preemptible [00000001] code: squid/16655
May 20 10:59:30 tfsoft caller is ip_conntrack_find_get+0x6/0x100 [ip_conntrack]
May 20 10:59:30 tfsoft [<c027ccdb>] smp_processor_id+0x8b/0xa0
May 20 10:59:30 tfsoft [<c8a4e9d6>] ip_conntrack_find_get+0x6/0x100 [ip_conntrack]
May 20 10:59:30 tfsoft [<c8a50bce>] getorigdst+0x7e/0x130 [ip_conntrack]
May 20 10:59:30 tfsoft [<c0385e8f>] _spin_unlock_irq+0xf/0x30
May 20 10:59:30 tfsoft [<c8a224ce>] rtl8139_start_xmit+0xce/0x150 [8139too]
May 20 10:59:30 tfsoft [<c033abf1>] nf_sockopt+0xa1/0x120
May 20 10:59:30 tfsoft [<c033acc0>] nf_getsockopt+0x20/0x30
May 20 10:59:30 tfsoft [<c034d656>] ip_getsockopt+0x4a6/0x520
May 20 10:59:30 tfsoft [<c012cc50>] autoremove_wake_function+0x0/0x40
May 20 10:59:30 tfsoft [<c013a1ca>] mempool_alloc+0x6a/0xf0
May 20 10:59:30 tfsoft [<c012cc50>] autoremove_wake_function+0x0/0x40
May 20 10:59:30 tfsoft [<c02e9597>] deadline_add_drq_rb+0x27/0x60
May 20 10:59:30 tfsoft [<c02e9dad>] deadline_insert_request+0x8d/0x180
May 20 10:59:30 tfsoft [<c02e21b2>] __elv_add_request+0x52/0xa0
May 20 10:59:30 tfsoft [<c027c681>] copy_to_user+0x31/0x50
May 20 10:59:30 tfsoft [<c032d41d>] memcpy_toiovec+0x2d/0x60
May 20 10:59:30 tfsoft [<c032d9c1>] skb_copy_datagram_iovec+0x41/0x1f0
May 20 10:59:30 tfsoft [<c011e531>] local_bh_enable+0x31/0x90
May 20 10:59:30 tfsoft [<c034ff24>] tcp_recvmsg+0x304/0x740
May 20 10:59:30 tfsoft [<c032abbb>] sock_common_recvmsg+0x3b/0x50
May 20 10:59:30 tfsoft [<c032784f>] sock_aio_read+0xdf/0x100
May 20 10:59:30 tfsoft [<c035192d>] tcp_getsockopt+0x3d/0x250
May 20 10:59:30 tfsoft [<c03841b6>] schedule+0x416/0xca0
May 20 10:59:30 tfsoft [<c015308b>] do_sync_read+0xab/0xe0
May 20 10:59:30 tfsoft [<c0121c1b>] del_singleshot_timer_sync+0xb/0x30
May 20 10:59:30 tfsoft [<c032ab75>] sock_common_getsockopt+0x25/0x30
May 20 10:59:30 tfsoft [<c0328b01>] sys_getsockopt+0x41/0x80
May 20 10:59:30 tfsoft [<c0329084>] sys_socketcall+0x184/0x1b0
May 20 10:59:30 tfsoft [<c0102c19>] syscall_call+0x7/0xb
May 20 11:01:41 tfsoft ip_local_deliver: bad skb: PRE_ROUTING LOCAL_IN LOCAL_OUT POST_ROUTING
May 20 11:01:41 tfsoft skb: pf=2 (unowned) dev=lo len=65
May 20 11:01:41 tfsoft PROTO=17 194.143.146.118:33714 194.143.146.118:29000 L=65 S=0x00 I=8 F=0x4000 T=64
May 20 11:01:41 tfsoft ip_local_deliver: bad skb: PRE_ROUTING LOCAL_IN LOCAL_OUT POST_ROUTING
May 20 11:01:41 tfsoft skb: pf=2 (unowned) dev=lo len=93
May 20 11:01:41 tfsoft PROTO=1 194.143.146.118:0 194.143.146.118:0 L=93 S=0xC0 I=45380 F=0x0000 T=64
May 20 11:02:00 tfsoft ip_local_deliver: bad skb: PRE_ROUTING LOCAL_IN LOCAL_OUT POST_ROUTING
May 20 11:02:00 tfsoft skb: pf=2 (unowned) dev=eth1 len=248
May 20 11:02:00 tfsoft PROTO=17 10.0.0.1:138 10.0.0.255:138 L=248 S=0x00 I=199 F=0x4000 T=64
May 20 11:02:00 tfsoft ip_local_deliver: bad skb: PRE_ROUTING LOCAL_IN LOCAL_OUT POST_ROUTING
May 20 11:02:00 tfsoft skb: pf=2 (unowned) dev=eth1 len=242
May 20 11:02:00 tfsoft PROTO=17 10.0.0.1:138 10.0.0.255:138 L=242 S=0x00 I=200 F=0x4000 T=64
May 20 11:02:06 tfsoft ip_local_deliver: bad skb: PRE_ROUTING LOCAL_IN LOCAL_OUT POST_ROUTING
May 20 11:02:06 tfsoft skb: pf=2 (unowned) dev=lo len=60
May 20 11:02:06 tfsoft PROTO=6 10.0.0.1:53986 10.0.0.1:3306 L=60 S=0x00 I=12194 F=0x4000 T=64
May 20 11:02:06 tfsoft ip_local_deliver: bad skb: PRE_ROUTING LOCAL_IN LOCAL_OUT POST_ROUTING
May 20 11:02:06 tfsoft skb: pf=2 (unowned) dev=lo len=60
May 20 11:02:06 tfsoft PROTO=6 10.0.0.1:3306 10.0.0.1:53986 L=60 S=0x00 I=0 F=0x4000 T=64
May 20 11:02:06 tfsoft ip_local_deliver: bad skb: PRE_ROUTING LOCAL_IN LOCAL_OUT POST_ROUTING
May 20 11:02:06 tfsoft skb: pf=2 (unowned) dev=lo len=52
May 20 11:02:06 tfsoft PROTO=6 10.0.0.1:53986 10.0.0.1:3306 L=52 S=0x00 I=12196 F=0x4000 T=64
May 20 11:02:06 tfsoft ip_local_deliver: bad skb: PRE_ROUTING LOCAL_IN LOCAL_OUT POST_ROUTING
May 20 11:02:06 tfsoft skb: pf=2 (unowned) dev=lo len=112
May 20 11:02:06 tfsoft PROTO=6 10.0.0.1:3306 10.0.0.1:53986 L=112 S=0x08 I=32506 F=0x4000 T=64
May 20 11:02:06 tfsoft ip_local_deliver: bad skb: PRE_ROUTING LOCAL_IN LOCAL_OUT POST_ROUTING
May 20 11:02:06 tfsoft skb: pf=2 (unowned) dev=lo len=52
May 20 11:02:06 tfsoft PROTO=6 10.0.0.1:53986 10.0.0.1:3306 L=52 S=0x08 I=12198 F=0x4000 T=64
May 20 11:02:06 tfsoft ip_local_deliver: bad skb: PRE_ROUTING LOCAL_IN LOCAL_OUT POST_ROUTING
May 20 11:02:06 tfsoft skb: pf=2 (unowned) dev=lo len=77
May 20 11:02:06 tfsoft PROTO=6 10.0.0.1:53986 10.0.0.1:3306 L=77 S=0x08 I=12200 F=0x4000 T=64
May 20 11:02:06 tfsoft ip_local_deliver: bad skb: PRE_ROUTING LOCAL_IN LOCAL_OUT POST_ROUTING
May 20 11:02:06 tfsoft skb: pf=2 (unowned) dev=lo len=52
May 20 11:02:06 tfsoft PROTO=6 10.0.0.1:3306 10.0.0.1:53986 L=52 S=0x08 I=32508 F=0x4000 T=64
May 20 11:02:06 tfsoft ip_local_deliver: bad skb: PRE_ROUTING LOCAL_IN LOCAL_OUT POST_ROUTING
May 20 11:02:06 tfsoft skb: pf=2 (unowned) dev=lo len=159
May 20 11:02:06 tfsoft PROTO=6 10.0.0.1:3306 10.0.0.1:53986 L=159 S=0x08 I=32510 F=0x4000 T=64
May 20 11:02:06 tfsoft ip_local_deliver: bad skb: PRE_ROUTING LOCAL_IN LOCAL_OUT POST_ROUTING
May 20 11:02:06 tfsoft skb: pf=2 (unowned) dev=lo len=52
May 20 11:02:06 tfsoft PROTO=6 10.0.0.1:53986 10.0.0.1:3306 L=52 S=0x08 I=12202 F=0x4000 T=64
May 20 11:02:06 tfsoft ip_local_deliver: bad skb: PRE_ROUTING LOCAL_IN LOCAL_OUT POST_ROUTING
May 20 11:02:06 tfsoft skb: pf=2 (unowned) dev=lo len=52
May 20 11:02:06 tfsoft PROTO=6 10.0.0.1:3306 10.0.0.1:53986 L=52 S=0x08 I=32512 F=0x4000 T=64
May 20 11:02:06 tfsoft ip_local_deliver: bad skb: PRE_ROUTING LOCAL_IN LOCAL_OUT POST_ROUTING
May 20 11:02:06 tfsoft skb: pf=2 (unowned) dev=lo len=52
May 20 11:02:06 tfsoft PROTO=6 10.0.0.1:53986 10.0.0.1:3306 L=52 S=0x08 I=12204 F=0x4000 T=64
May 20 11:02:07 tfsoft ip_local_deliver: bad skb: PRE_ROUTING LOCAL_IN LOCAL_OUT POST_ROUTING
May 20 11:02:07 tfsoft skb: pf=2 (unowned) dev=lo len=65
May 20 11:02:07 tfsoft PROTO=17 194.143.146.118:33716 194.143.146.118:29000 L=65 S=0x00 I=0 F=0x4000 T=64
May 20 11:02:07 tfsoft ip_local_deliver: bad skb: PRE_ROUTING LOCAL_IN LOCAL_OUT POST_ROUTING
May 20 11:02:07 tfsoft skb: pf=2 (unowned) dev=lo len=93
May 20 11:02:07 tfsoft PROTO=1 194.143.146.118:0 194.143.146.118:0 L=93 S=0xC0 I=45381 F=0x0000 T=64
May 20 11:02:14 tfsoft ip_local_deliver: bad skb: PRE_ROUTING LOCAL_IN LOCAL_OUT POST_ROUTING
May 20 11:02:14 tfsoft skb: pf=2 (unowned) dev=lo len=73
May 20 11:02:14 tfsoft PROTO=17 194.143.146.118:33716 194.143.146.118:29000 L=73 S=0x00 I=1 F=0x4000 T=64
May 20 11:02:14 tfsoft ip_local_deliver: bad skb: PRE_ROUTING LOCAL_IN LOCAL_OUT POST_ROUTING
May 20 11:02:14 tfsoft skb: pf=2 (unowned) dev=lo len=101
May 20 11:02:14 tfsoft PROTO=1 194.143.146.118:0 194.143.146.118:0 L=101 S=0xC0 I=45382 F=0x0000 T=64
Ось правила iptables (eth0 - зовнішній адаптер, eth1 - внутрішній):
# Generated by iptables-save v1.3.4 on Sat May 20 11:32:40 2006
*filter
:INPUT ACCEPT [14575933:4471642377]
:FORWARD ACCEPT [1923477:1146078666]
:OUTPUT ACCEPT [20663948:22208994567]
-A INPUT -i eth1 -p tcp -m tcp --sport 25 --dport 1024:65535 ! --tcp-flags FIN,SYN,RST,ACK SYN -j ACCEPT
-A FORWARD -i eth1 -j ACCEPT
-A OUTPUT -o eth1 -p tcp -m tcp --sport 1024:65535 --dport 25 -j ACCEPT
COMMIT
# Completed on Sat May 20 11:32:40 2006
# Generated by iptables-save v1.3.4 on Sat May 20 11:32:40 2006
*nat
:PREROUTING ACCEPT [1193116:108934439]
:POSTROUTING ACCEPT [43717:5287481]
:OUTPUT ACCEPT [183678:16225760]
-A PREROUTING -i eth1 -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 3128
-A POSTROUTING -o eth0 -j MASQUERADE
COMMIT
# Completed on Sat May 20 11:32:40 2006
Коли хтось активно користуеться Інтернетом, цей блок додаеться до лога кожні 10-15 сек. Уявіть, яких розмірів у мене зараз /var/log/messages... Допоможіть, будьласка, розібратись, що це означає? може в мене щось неправильно працює? Я в системному адмініструванні початківець, може утнув якусь дурницю