Код: Выделить всё
21:05:00.338592 IP 10.90.91.254 > PIM-ROUTERS.MCAST.NET: PIMv2, Hello, length: 38
обновил порты, появился igmpproxy, поставил его.
в сеть провайдера смотрит fxp0, в домашнюю сеть fxp1. конфиг igmpproxy:
Код: Выделить всё
quickleave
phyint fxp0 upstream ratelimit 0 threshold 1
altnet 10.90.91.0/24
altnet 77.94.170.0/24
phyint fxp1 downstream ratelimit 0 threshold 1
phyint lo0 disabled
phyint fxp2 disabled
Код: Выделить всё
kldload /boot/kernel/ip_mroute.ko
Код: Выделить всё
pass quick on {fxp0 fxp1} proto udp from any to any allow-opts
pass quick on {fxp0 fxp1} proto igmp from any to any
Вот лог ipmpproxy:
Код: Выделить всё
igmpproxy -d -c /usr/local/etc/igmpproxy.conf
igmpproxy, Version 0.1 beta2, Build 090829
Copyright 2005 by Johnny Egeland <johnny@rlo.org>
Distributed under the GNU GENERAL PUBLIC LICENSE, Version 2 - check GPL.txt
Debu: Searching for config file at '/usr/local/etc/igmpproxy.conf'
Debu: Config: Quick leave mode enabled.
Debu: Config: Got a phyint token.
Debu: Config: IF: Config for interface fxp0.
Debu: Config: IF: Got upstream token.
Debu: Config: IF: Got ratelimit token '0'.
Debu: Config: IF: Got threshold token '1'.
Debu: Config: IF: Got altnet token 10.90.91.0/24.
Debu: Config: IF: Altnet: Parsed altnet to 10.90.91/24.
Debu: Config: IF: Got altnet token 77.94.170.0/24.
Debu: Config: IF: Altnet: Parsed altnet to 77.94.170/24.
Debu: IF name : fxp0
Debu: Next ptr : 0
Debu: Ratelimit : 0
Debu: Threshold : 1
Debu: State : 1
Debu: Allowednet ptr : 8053030
Debu: Config: Got a phyint token.
Debu: Config: IF: Config for interface fxp1.
Debu: Config: IF: Got downstream token.
Debu: Config: IF: Got ratelimit token '0'.
Debu: Config: IF: Got threshold token '1'.
Debu: IF name : fxp1
Debu: Next ptr : 0
Debu: Ratelimit : 0
Debu: Threshold : 1
Debu: State : 2
Debu: Allowednet ptr : 0
Debu: Config: Got a phyint token.
Debu: Config: IF: Config for interface lo0.
Debu: Config: IF: Got disabled token.
Debu: IF name : lo0
Debu: Next ptr : 0
Debu: Ratelimit : 0
Debu: Threshold : 1
Debu: State : 0
Debu: Allowednet ptr : 0
Debu: Config: Got a phyint token.
Debu: Config: IF: Config for interface fxp2.
Debu: Config: IF: Got disabled token.
Debu: IF name : fxp2
Debu: Next ptr : 0
Debu: Ratelimit : 0
Debu: Threshold : 1
Debu: State : 0
Debu: Allowednet ptr : 0
Debu: Adding Physical Index value of IF 'fxp0' is 1
Debu: buildIfVc: Interface fxp0 Addr: 192.168.102.166, Flags: 0xffff8843, Network: 192.168.102/24
Debu: Adding Physical Index value of IF 'fxp1' is 2
Debu: buildIfVc: Interface fxp1 Addr: 192.168.111.111, Flags: 0xffff8843, Network: 192.168.111/24
Debu: Adding Physical Index value of IF 'fxp2' is 3
Debu: buildIfVc: Interface fxp2 Addr: 192.168.1.122, Flags: 0xffff8843, Network: 192.168.0/22
Debu: Adding Physical Index value of IF 'lo0' is 5
Debu: buildIfVc: Interface lo0 Addr: 127.0.0.1, Flags: 0xffff8049, Network: 127/8
Debu: Found config for fxp0
Debu: Found config for fxp1
Debu: Found config for fxp2
Note: adding VIF, Ix 0 Fl 0x0 IP 0xa666a8c0 fxp0, Threshold: 1, Ratelimit: 0
Debu: Network for [fxp0] : 192.168.102/24
Debu: Network for [fxp0] : 10.90.91/24
Debu: Network for [fxp0] : 77.94.170/24
Note: adding VIF, Ix 1 Fl 0x0 IP 0x6f6fa8c0 fxp1, Threshold: 1, Ratelimit: 0
Debu: Network for [fxp1] : 192.168.111/24
Note: adding VIF, Ix 2 Fl 0x0 IP 0x7a01a8c0 fxp2, Threshold: 1, Ratelimit: 0
Debu: Network for [fxp2] : 192.168.0/22
Debu: Got 232448 byte buffer size in 8 iterations
Debu: Joining all-routers group 224.0.0.2 on vif 192.168.111.111
Note: joinMcGroup: 224.0.0.2 on fxp1
Debu: SENT Membership query from 192.168.111.111 to 224.0.0.1
Debu: Sent membership query from 192.168.111.111 to 224.0.0.1. Delay: 10
Debu: Created timeout 1 (#0) - delay 10 secs
Debu: (Id:1, Time:10)
Debu: Created timeout 2 (#1) - delay 21 secs
Debu: (Id:1, Time:10)
Debu: (Id:2, Time:21)
Debu: Packet from 10.90.91.254: proto: 2 hdrlen: 20 iplen: 8 or 2048
Note: RECV Membership query from 10.90.91.254 to 224.0.0.1 (ip_hl 20, data 8)
Debu: About to call timeout 1 (#0)
Debu: Aging routes in table.
Debu:
Current routing table (Age active routes);
-----------------------------------------------------
Debu: No routes in table...
Debu:
-----------------------------------------------------
Debu: About to call timeout 2 (#0)
Debu: SENT Membership query from 192.168.111.111 to 224.0.0.1
Debu: Sent membership query from 192.168.111.111 to 224.0.0.1. Delay: 10
Debu: Created timeout 3 (#0) - delay 10 secs
Debu: (Id:3, Time:10)
Debu: Created timeout 4 (#1) - delay 21 secs
Debu: (Id:3, Time:10)
Debu: (Id:4, Time:21)
Debu: About to call timeout 3 (#0)
Debu: Aging routes in table.
Debu:
Current routing table (Age active routes);
-----------------------------------------------------
Debu: No routes in table...
Debu:
-----------------------------------------------------
Debu: Packet from 192.168.94.160: proto: 2 hdrlen: 20 iplen: 8 or 2048
Note: RECV Membership query from 192.168.94.160 to 224.0.0.1 (ip_hl 20, data 8)
Debu: About to call timeout 4 (#0)
Debu: SENT Membership query from 192.168.111.111 to 224.0.0.1
Debu: Sent membership query from 192.168.111.111 to 224.0.0.1. Delay: 10
Debu: Created timeout 5 (#0) - delay 10 secs
Debu: (Id:5, Time:10)
Debu: Created timeout 6 (#1) - delay 115 secs
Debu: (Id:5, Time:10)
Debu: (Id:6, Time:115)
Debu: About to call timeout 5 (#0)
Debu: Aging routes in table.
Debu:
Current routing table (Age active routes);
-----------------------------------------------------
Debu: No routes in table...
Debu:
-----------------------------------------------------
Debu: Packet from 10.90.91.254: proto: 2 hdrlen: 20 iplen: 8 or 2048
Note: RECV Membership query from 10.90.91.254 to 224.0.0.1 (ip_hl 20, data 8)
Debu: Packet from 192.168.94.160: proto: 2 hdrlen: 20 iplen: 8 or 2048
Note: RECV Membership query from 192.168.94.160 to 224.0.0.1 (ip_hl 20, data 8)
Debu: About to call timeout 6 (#0)
Debu: SENT Membership query from 192.168.111.111 to 224.0.0.1
Debu: Sent membership query from 192.168.111.111 to 224.0.0.1. Delay: 10
Debu: Created timeout 7 (#0) - delay 10 secs
Debu: (Id:7, Time:10)
Debu: Created timeout 8 (#1) - delay 115 secs
Debu: (Id:7, Time:10)
Debu: (Id:8, Time:115)
Debu: About to call timeout 7 (#0)
Debu: Aging routes in table.
Debu:
Current routing table (Age active routes);
-----------------------------------------------------
Debu: No routes in table...
Debu:
-----------------------------------------------------
Debu: Packet from 10.90.91.254: proto: 2 hdrlen: 20 iplen: 8 or 2048
Note: RECV Membership query from 10.90.91.254 to 224.0.0.1 (ip_hl 20, data 8)
^CWarn: select() failure; Errno(4): Interrupted system call
Note: Got a interupt signal. Exiting.
Debu: clean handler called
Note: All routes removed. Routing table is empty.
Info: Shutdown complete....
Код: Выделить всё
22:07:05.812767 IP 10.90.91.254 > 224.0.0.13: PIMv2, Hello, length: 38
22:07:19.495771 IP 10.90.91.254 > 224.0.0.13: PIMv2, Bootstrap, length: 58
22:07:23.296123 IP 10.204.74.94 > 224.0.0.22: igmp v3 report, 1 group record(s)
22:07:24.021065 IP 10.204.74.94 > 224.0.0.22: igmp v3 report, 1 group record(s)
22:07:35.711430 IP 10.90.91.254 > 224.0.0.13: PIMv2, Hello, length: 38
22:07:44.463563 IP 192.168.94.160 > 224.0.0.1: igmp query v2
22:08:05.102400 IP 10.90.91.254 > 224.0.0.13: PIMv2, Hello, length: 38
22:08:19.669869 IP 10.90.91.254 > 224.0.0.13: PIMv2, Bootstrap, length: 58