Ошибка #107

В логах 'trafd' много сообщений о широковещательных запросах

Added by Serg79 - over 12 years ago. Updated over 12 years ago.

Status:В работе Start date:2011-02-21
Priority:Нормальный Due date:
Assignee:Serg79 - % Done:

0%

Category:trafd
Target version:0.2-beta

Description

В логи демона 'trafd' сыпется много сообщений о широковещательных запросах:

(eth1) WARNING: Can not determine the client:
    srcIp = 192.168.0.2, srcPort = 137, dstIp = 192.168.0.255, dstPort = 137, pId = udp 
(eth1) WARNING: Can not determine the client:
    srcIp = 192.168.0.71, srcPort = 137, dstIp = 192.168.0.255, dstPort = 137, pId = udp 
(eth1) WARNING: Can not determine the client:
    srcIp = 192.168.0.64, srcPort = 137, dstIp = 192.168.0.255, dstPort = 137, pId = udp 
(eth1) WARNING: Can not determine the client:
    srcIp = 192.168.0.112, srcPort = 137, dstIp = 192.168.0.255, dstPort = 137, pId = udp 
(eth1) WARNING: Can not determine the client:
    srcIp = 192.168.0.105, srcPort = 137, dstIp = 192.168.0.255, dstPort = 137, pId = udp 
(eth1) WARNING: Can not determine the client:
    srcIp = 192.168.0.160, srcPort = 137, dstIp = 192.168.0.255, dstPort = 137, pId = udp 
(eth1) WARNING: Can not determine the client:
    srcIp = 192.168.0.201, srcPort = 137, dstIp = 192.168.0.255, dstPort = 137, pId = udp 
(eth1) WARNING: Can not determine the client:
    srcIp = 192.168.0.152, srcPort = 137, dstIp = 192.168.0.255, dstPort = 137, pId = udp 
(eth1) WARNING: Can not determine the client:
    srcIp = 192.168.0.55, srcPort = 137, dstIp = 192.168.0.255, dstPort = 137, pId = udp 
(eth1) WARNING: Can not determine the client:
    srcIp = 192.168.0.144, srcPort = 137, dstIp = 192.168.0.255, dstPort = 137, pId = udp 

Конфигурационный файл, при котором эти сообщения идут:

root@rm-proxy:/etc/trafd# cat subnet.conf
# The configuration file describes a controlled subnet.
# Subnets.
subnet {
    192.168.0.0/16;
}

# Server on a subnet with non-standard ports (> 1024).
server {
    tcp {
        192.168.0.1:3128;      # Squid proxy
        192.168.0.1:10000;
    }
    udp {
        192.168.0.1:137;       # netbios-ns
        192.168.0.1:138;       # netbios-dgm
        192.168.0.1:10000;
    }
}

trafd должен отбрасывать все широковещательные запросы в контролируемой подсети.

Суть в том, что машины отправляют широковещательный запрос на адрес 192.168.0.255, а на контроле стоит сеть 192.168.0.0/16 и для нее широковещательный адрес равен 192.168.255.255.

History

Updated by Serg79 - over 12 years ago

Добавили в конфигурационный файл описание подсети 192.168.0.0/24:

root@rm-proxy:/etc/trafd# cat subnet.conf
# The configuration file describes a controlled subnet.
# Subnets.
subnet {
    192.168.0.0/24;
    192.168.0.0/16;
}

# Server on a subnet with non-standard ports (> 1024).
server {
    tcp {
        192.168.0.1:3128;      # Squid proxy
        192.168.0.1:10000;
    }
    udp {
        192.168.0.1:137;       # netbios-ns
        192.168.0.1:138;       # netbios-dgm
        192.168.0.1:10000;
    }
}

Но в логи все равно продолжает сыпаться следующее:

Feb 21 11:45:01 rm-proxy trafctl[17586]: (eth1) signaling trafd to backup
Feb 21 11:45:01 rm-proxy trafd[17339]: (eth1) stats (real/user/sys/pkts/drops) since start: 255.69/0.06/0.22/122589/0, since last info: 255.69/0.06/0.22/122589/0
Feb 21 11:45:01 rm-proxy trafd[17608]: (eth1) 1009 records append to /var/spool/trafd/trafd.eth1
Feb 21 11:45:01 rm-proxy trafd[17339]: (eth1) 1009 records cleared
Feb 21 11:45:04 rm-proxy trafsave.pl[17584]: (eth1) WARNING: Can not determine the client: srcIp = 169.254.5.38, srcPort = 138, dstIp = 169.254.255.255, dstPort = 138, pId = udp 
Feb 21 11:45:04 rm-proxy trafsave.pl[17584]: (eth1) WARNING: Can not determine the client: srcIp = 169.254.5.38, srcPort = 137, dstIp = 169.254.255.255, dstPort = 137, pId = udp 
Feb 21 11:45:04 rm-proxy trafsave.pl[17584]: (eth1) WARNING: Can not determine the client: srcIp = 192.168.0.63, srcPort = 137, dstIp = 192.168.0.255, dstPort = 137, pId = udp 
Feb 21 11:45:04 rm-proxy trafsave.pl[17584]: (eth1) WARNING: Can not determine the client: srcIp = 192.168.0.21, srcPort = 137, dstIp = 192.168.0.255, dstPort = 137, pId = udp 
Feb 21 11:45:04 rm-proxy trafsave.pl[17584]: (eth1) WARNING: Can not determine the client: srcIp = 169.254.230.2, srcPort = 138, dstIp = 169.254.255.255, dstPort = 138, pId = udp 
Feb 21 11:45:04 rm-proxy trafsave.pl[17584]: (eth1) WARNING: Can not determine the client: srcIp = 169.254.39.188, srcPort = 137, dstIp = 169.254.255.255, dstPort = 137, pId = udp 
Feb 21 11:45:04 rm-proxy trafsave.pl[17584]: (eth1) WARNING: Can not determine the client: srcIp = 192.168.0.44, srcPort = 138, dstIp = 192.168.0.255, dstPort = 138, pId = udp 
Feb 21 11:45:04 rm-proxy trafsave.pl[17584]: (eth1) WARNING: Can not determine the client: srcIp = 192.168.0.154, srcPort = 137, dstIp = 192.168.0.255, dstPort = 137, pId = udp 
Feb 21 11:45:04 rm-proxy trafsave.pl[17584]: (eth1) WARNING: Can not determine the client: srcIp = 192.168.0.111, srcPort = 137, dstIp = 192.168.0.255, dstPort = 137, pId = udp 
Feb 21 11:45:04 rm-proxy trafsave.pl[17584]: (eth1) WARNING: Can not determine the client: srcIp = 192.168.0.158, srcPort = 137, dstIp = 192.168.0.255, dstPort = 137, pId = udp 
Feb 21 11:45:04 rm-proxy trafsave.pl[17584]: (eth1) WARNING: Can not determine the client: srcIp = 192.168.0.147, srcPort = 138, dstIp = 192.168.0.255, dstPort = 138, pId = udp 
Feb 21 11:45:04 rm-proxy trafsave.pl[17584]: (eth1) WARNING: Can not determine the client: srcIp = 169.254.31.102, srcPort = 138, dstIp = 169.254.255.255, dstPort = 138, pId = udp 
Feb 21 11:45:04 rm-proxy trafsave.pl[17584]: (eth1) WARNING: Can not determine the client: srcIp = 169.254.39.188, srcPort = 138, dstIp = 169.254.255.255, dstPort = 138, pId = udp 
Feb 21 11:45:04 rm-proxy trafsave.pl[17584]: (eth1) WARNING: Can not determine the client: srcIp = 192.168.0.21, srcPort = 138, dstIp = 192.168.0.255, dstPort = 138, pId = udp 
Feb 21 11:45:04 rm-proxy trafsave.pl[17584]: (eth1) WARNING: Can not determine the client: srcIp = 192.168.0.82, srcPort = 138, dstIp = 192.168.0.255, dstPort = 138, pId = udp 
Feb 21 11:45:04 rm-proxy trafsave.pl[17584]: (eth1) WARNING: Can not determine the client: srcIp = 192.168.0.144, srcPort = 138, dstIp = 192.168.0.255, dstPort = 138, pId = udp 
Feb 21 11:45:04 rm-proxy trafsave.pl[17584]: (eth1) WARNING: Can not determine the client: srcIp = 192.168.0.130, srcPort = 138, dstIp = 192.168.0.255, dstPort = 138, pId = udp 
Feb 21 11:45:04 rm-proxy trafsave.pl[17584]: (eth1) WARNING: Can not determine the client: srcIp = 192.168.0.1, srcPort = 0, dstIp = 192.168.0.64, dstPort = 0, pId = icmp 
Feb 21 11:45:04 rm-proxy trafsave.pl[17584]: (eth1) WARNING: Can not determine the client: srcIp = 192.168.0.1, srcPort = 0, dstIp = 192.168.0.72, dstPort = 0, pId = icmp 
Feb 21 11:45:04 rm-proxy trafsave.pl[17584]: (eth1) WARNING: Can not determine the client: srcIp = 192.168.0.18, srcPort = 0, dstIp = 192.168.0.1, dstPort = 0, pId = icmp 
Feb 21 11:45:04 rm-proxy trafsave.pl[17584]: (eth1) WARNING: Can not determine the client: srcIp = 192.168.0.100, srcPort = 17500, dstIp = 192.168.0.255, dstPort = 17500, pId = udp 
Feb 21 11:45:04 rm-proxy trafsave.pl[17584]: (eth1) WARNING: Can not determine the client: srcIp = 192.168.0.64, srcPort = 5351, dstIp = 192.168.0.1, dstPort = 5351, pId = udp 
Feb 21 11:45:04 rm-proxy trafsave.pl[17584]: (eth1) WARNING: Can not determine the client: srcIp = 192.168.0.72, srcPort = 5351, dstIp = 192.168.0.1, dstPort = 5351, pId = udp 
Feb 21 11:45:04 rm-proxy trafsave.pl[17584]: (eth1) WARNING: Can not determine the client: srcIp = 192.168.0.201, srcPort = 137, dstIp = 192.168.0.255, dstPort = 137, pId = udp 
Feb 21 11:45:04 rm-proxy trafsave.pl[17584]: (eth1) WARNING: Can not determine the client: srcIp = 192.168.0.27, srcPort = 137, dstIp = 192.168.0.255, dstPort = 137, pId = udp 
Feb 21 11:45:04 rm-proxy trafsave.pl[17584]: (eth1) WARNING: Can not determine the client: srcIp = 192.168.0.1, srcPort = 0, dstIp = 192.168.0.149, dstPort = 0, pId = icmp 
Feb 21 11:45:04 rm-proxy trafsave.pl[17584]: (eth1) WARNING: Can not determine the client: srcIp = 192.168.0.149, srcPort = 5351, dstIp = 192.168.0.1, dstPort = 5351, pId = udp 

Updated by Serg79 - over 12 years ago

  • Status changed from Новый to В работе
  • Assignee set to Serg79 -

Updated by Serg79 - over 12 years ago

  • Target version changed from 0.1-beta to 0.2-beta

Also available in: Atom PDF