LINUX.ORG.RU
решено ФорумAdmin

Debian IP-TV igmpproxy


2

2

Добрый день.Пытаюсь настроить дома iptv с помощью igmpproxy

Помогите пожалуйста разобраться в чем проблема.Знаю опять где-то тупанул но уже третий день борюсь и уже не понимаю что не так.На порт igmpproxy нифига не приходит,поддрежка в системе мультикаст и тд есть файрволл по идеи должен все пропускать. В чем дело не понимаю подскажите плизз

eth0(wan)
eth1(lan)
 адрес канала из ip-tv листа rtp://239.1.1.1:1234 

 ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state 
UNKNOWN 
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc htb state UP qlen 1000
    link/ether 08:00:27:b7:34:9a brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.161/24 brd 192.168.1.255 scope global eth0
    inet6 fe80::a00:27ff:feb7:349a/64 scope link 
       valid_lft forever preferred_lft forever
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether 08:00:27:f3:78:2d brd ff:ff:ff:ff:ff:ff
    inet 192.168.0.1/24 brd 192.168.0.255 scope global eth1
    inet6 fe80::a00:27ff:fef3:782d/64 scope link 
       valid_lft forever preferred_lft forever
sysctl -p
net.ipv4.ip_forward = 1
net.ipv4.conf.eth0.rp_filter = 0
net.ipv4.conf.eth0.force_igmp_version = 1
net.ipv4.conf.eth1.force_igmp_version = 1
 route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         gw-0.lpo.priv   0.0.0.0         UG    0      0        0 eth0
192.168.0.0     *               255.255.255.0   U     0      0        0 eth1
192.168.1.0     *               255.255.255.0   U     0      0        0 eth0
224.0.0.0       *               240.0.0.0       U     0      0        0 eth1
tcpdump -i eth0 -n -t  port 1234 
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), capture size 65535 bytes
^C
0 packets captured
0 packets received by filter
0 packets dropped by kernel
Добавлять сети "altnet" пытался из вывода без порта
tcpdump -i eth0 -n -t 


##------------------------------------------------------
 ## Enable Quickleave mode (Sends Leave instantly)
 ## Эту строчку раскомментируют только в том случае,
 ## если внути всего лишь один клиент IP TV
 ##------------------------------------------------------
 #quickleave
 
 ##------------------------------------------------------
 ## Configuration for eth0 (Upstream Interface)
 ## Здесь указаны параметры для публичного интерфейса,
 ## на который придет поток от провайдера
 ## и указаны сети, с которых возможно будут подключаться клиенты
 ##------------------------------------------------------
 phyint eth0 upstream ratelimit 0 threshold 1
 altnet 10.0.0.0/8
 altnet 172.20.20.0/24
 altnet 192.168.0.0/24
 altnet 173.194.39.0/24
 altnet 239.1.1.0/24 
 altnet 199.16.156.0/24
 ##------------------------------------------------------
 ## Configuration for eth1 (Downstream Interface)
 ## Типовая конфигурация для внутреннего интерфейса
 ## смотрящего в домашнюю сеть
 ##------------------------------------------------------
 phyint eth1 downstream ratelimit 0 threshold 1

iptables -F
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
iptables -A FORWARD -i eth0 -o eth0 -j REJECT
iptables -I FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu
modprobe ipt_TTL
iptables -t filter -A INPUT -d 224.0.0.0/240.0.0.0 -i eth0 -j ACCEPT
iptables -t filter -A INPUT -s 224.0.0.0/240.0.0.0 -i eth0 -j ACCEPT
iptables -t filter -A FORWARD -d 224.0.0.0/240.0.0.0 -j ACCEPT
iptables -t filter -A FORWARD -s 224.0.0.0/240.0.0.0 -j ACCEPT
iptables -t mangle -A PREROUTING -d 224.0.0.0/240.0.0.0 -p udp -j TTL --ttl-inc 1
iptables -I INPUT -p igmp -j ACCEPT
iptables -A INPUT -p udp --destination-port 5242:5342 -j ACCEPT
iptables -A OUTPUT -p udp --source-port 5242:5342 -j ACCEPT
iptables -A INPUT -m pkttype --pkt-type multicast -j ACCEPT
iptables -A INPUT -p udp --dport 1234 -j ACCEPT
Вывод igmpproxy -d такой

The origin for route 239.255.255.250 changed from 192.168.1.102 to 192.168.1.163
The origin for route 239.255.255.250 changed from 192.168.1.163 to 192.168.1.196
RECV Membership query   from 192.168.0.1     to 224.0.0.1
The origin for route 239.255.255.250 changed from 192.168.1.196 to 192.168.1.74
RECV V1 member report   from 192.168.0.1     to 224.0.0.2
Mebership report was recieved on the upstream interface. Ignoring.
RECV V2 member report   from 192.168.0.22    to 239.255.255.250
Mebership report was recieved on the upstream interface. Ignoring.
The origin for route 239.255.255.250 changed from 192.168.1.74 to 192.168.1.22
The origin for route 239.255.255.250 changed from 192.168.1.22 to 192.168.1.102
The origin for route 239.255.255.250 changed from 192.168.1.102 to 192.168.1.87

вот так у меня работало

modprobe ipt_TTL
iptables -t filter -A INPUT -d 224.0.0.0/240.0.0.0 -i eth1 -j ACCEPT
iptables -t filter -A INPUT -s 224.0.0.0/240.0.0.0 -i eth1 -j ACCEPT
iptables -t filter -A FORWARD -d 224.0.0.0/240.0.0.0 -j ACCEPT
iptables -t filter -A FORWARD -s 224.0.0.0/240.0.0.0 -j ACCEPT
iptables -t mangle -A PREROUTING -d 224.0.0.0/240.0.0.0 -p udp -j TTL --ttl-inc 1
CHIPOK ★★★
()
Ответ на: комментарий от CHIPOK

у меня просто tcpdump -i eth0 -n -t port 1234 тупо молчит я ж так понимаю что даже если запускаешь igmpproxy -d всеравно то должно что-то быть на порту ?

neogenik
() автор топика
Ответ на: комментарий от neogenik

wan, на жаль щас нет iptv чтоб проверить как у меня работает

CHIPOK ★★★
()
Ответ на: комментарий от neogenik
Вывод netstat -nlp
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
raw    11520      0 0.0.0.0:2               0.0.0.0:*               7           5809/igmpproxy  
raw        0      0 0.0.0.0:2               0.0.0.0:*               7           5809/igmpproxy  
neogenik
() автор топика
Ответ на: комментарий от CHIPOK

Да) его юзал ток трабл в том что tcpdump -i eth0 -n -t port 1234 на выходе пусто

по идеи igmpproxy устанавливается на порт 1234 но в netstat пусто и я не могу четко определить куда и как идут потоки

как узнать какой порт слушает igmpproxy ?

neogenik
() автор топика
Ответ на: комментарий от CHIPOK
Блин запустил igmpproxy -dv
а на портах получается его нет???

netstat -tulpn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 127.0.0.1:11211         0.0.0.0:*               LISTEN      2367/memcached  
tcp        0      0 0.0.0.0:60301           0.0.0.0:*               LISTEN      2844/rpc.mountd 
tcp        0      0 0.0.0.0:111             0.0.0.0:*               LISTEN      1762/rpcbind    
tcp        0      0 0.0.0.0:53              0.0.0.0:*               LISTEN      2222/dnsmasq    
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      3389/sshd       
tcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN      3242/exim4      
tcp        0      0 0.0.0.0:49404           0.0.0.0:*               LISTEN      2844/rpc.mountd 
tcp        0      0 0.0.0.0:50207           0.0.0.0:*               LISTEN      2844/rpc.mountd 
tcp        0      0 0.0.0.0:2049            0.0.0.0:*               LISTEN      -               
tcp        0      0 0.0.0.0:54562           0.0.0.0:*               LISTEN      1794/rpc.statd  
tcp        0      0 0.0.0.0:42567           0.0.0.0:*               LISTEN      -               
tcp        0      0 127.0.0.1:3306          0.0.0.0:*               LISTEN      2742/mysqld     
tcp6       0      0 :::60174                :::*                    LISTEN      2844/rpc.mountd 
tcp6       0      0 :::33262                :::*                    LISTEN      -               
tcp6       0      0 :::111                  :::*                    LISTEN      1762/rpcbind    
tcp6       0      0 :::80                   :::*                    LISTEN      2261/apache2    
tcp6       0      0 :::45493                :::*                    LISTEN      2844/rpc.mountd 
tcp6       0      0 :::53                   :::*                    LISTEN      2222/dnsmasq    
tcp6       0      0 :::22                   :::*                    LISTEN      3389/sshd       
tcp6       0      0 ::1:25                  :::*                    LISTEN      3242/exim4      
tcp6       0      0 :::2049                 :::*                    LISTEN      -               
tcp6       0      0 :::39814                :::*                    LISTEN      2844/rpc.mountd 
tcp6       0      0 :::58278                :::*                    LISTEN      1794/rpc.statd  
udp        0      0 0.0.0.0:45081           0.0.0.0:*                           1794/rpc.statd  
udp        0      0 0.0.0.0:4396            0.0.0.0:*                           1670/dhclient   
udp        0      0 0.0.0.0:53              0.0.0.0:*                           2222/dnsmasq    
udp        0      0 0.0.0.0:67              0.0.0.0:*                           2333/dhcpd      
udp        0      0 0.0.0.0:68              0.0.0.0:*                           1670/dhclient   
udp        0      0 0.0.0.0:69              0.0.0.0:*                           3296/inetd      
udp        0      0 0.0.0.0:45914           0.0.0.0:*                           2333/dhcpd      
udp        0      0 0.0.0.0:111             0.0.0.0:*                           1762/rpcbind    
udp        0      0 192.168.0.1:123         0.0.0.0:*                           2883/ntpd       
udp        0      0 192.168.1.161:123       0.0.0.0:*                           2883/ntpd       
udp        0      0 127.0.0.1:123           0.0.0.0:*                           2883/ntpd       
udp        0      0 0.0.0.0:123             0.0.0.0:*                           2883/ntpd       
udp        0      0 0.0.0.0:665             0.0.0.0:*                           1762/rpcbind    
udp        0      0 0.0.0.0:49574           0.0.0.0:*                           2844/rpc.mountd 
udp        0      0 127.0.0.1:698           0.0.0.0:*                           1794/rpc.statd  
udp        0      0 127.0.0.1:11211         0.0.0.0:*                           2367/memcached  
udp        0      0 0.0.0.0:33240           0.0.0.0:*                           -               
udp        0      0 0.0.0.0:56030           0.0.0.0:*                           2844/rpc.mountd 
udp        0      0 0.0.0.0:52710           0.0.0.0:*                           2844/rpc.mountd 
udp        0      0 0.0.0.0:2049            0.0.0.0:*                           -               
udp6       0      0 :::53                   :::*                                2222/dnsmasq    
udp6       0      0 :::22582                :::*                                1670/dhclient   
udp6       0      0 :::111                  :::*                                1762/rpcbind    
udp6       0      0 ::1:123                 :::*                                2883/ntpd       
udp6       0      0 fe80::a00:27ff:fef3:123 :::*                                2883/ntpd       
udp6       0      0 fe80::a00:27ff:feb7:123 :::*                                2883/ntpd       
udp6       0      0 :::123                  :::*                                2883/ntpd       
udp6       0      0 :::54664                :::*                                2844/rpc.mountd 
udp6       0      0 :::34963                :::*                                2844/rpc.mountd 
udp6       0      0 :::665                  :::*                                1762/rpcbind    
udp6       0      0 :::59045                :::*                                1794/rpc.statd  
udp6       0      0 :::45253                :::*                                2333/dhcpd      
udp6       0      0 :::48611                :::*                                2844/rpc.mountd 
udp6       0      0 :::2049                 :::*                                -               
udp6       0      0 :::35849                :::*                                -               

neogenik
() автор топика
Ответ на: комментарий от CHIPOK
Он есть тут netstat -pl
raw        0      0 *:icmp                  *:*                     7           2308/dhcpd      
raw     4096      0 *:igmp                  *:*                     7           3945/igmpproxy  
raw        0      0 *:igmp                  *:*                     7           3945/igmpproxy 

Я так понимаю что косяк в том что он не отвечает на порту 1234 или как определить igmp какой порт . Хотя я понимаю что не корректный вопрос

neogenik
() автор топика
Ответ на: комментарий от neogenik

igmpproxy -dv

The origin for route 239.255.255.250 changed from 192.168.1.81 to 192.168.1.22
The origin for route 239.255.255.250 changed from 192.168.1.22 to 192.168.1.94
The origin for route 239.255.255.250 changed from 192.168.1.94 to 192.168.1.87
The origin for route 239.255.255.250 changed from 192.168.1.87 to 192.168.1.22
RECV Membership query   from 10.128.240.1    to 224.0.0.1
The origin for route 239.255.255.250 changed from 192.168.1.22 to 192.168.1.163
RECV V2 member report   from 192.168.1.81    to 239.255.255.250
Mebership report was recieved on the upstream interface. Ignoring.
The origin for route 239.255.255.250 changed from 192.168.1.163 to 192.168.1.159
The origin for route 239.255.255.250 changed from 192.168.1.159 to 192.168.1.87

tcpdump -i eth0 igmp тишина и на eth1 тоже
пробовал 
[\code]
neogenik
() автор топика
Ответ на: комментарий от CHIPOK
 netstat -ntlup
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 127.0.0.1:11211         0.0.0.0:*               LISTEN      2322/memcached  
tcp        0      0 0.0.0.0:111             0.0.0.0:*               LISTEN      1737/rpcbind    
tcp        0      0 0.0.0.0:53              0.0.0.0:*               LISTEN      2200/dnsmasq    
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      2936/sshd       
tcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN      3361/exim4      
tcp        0      0 0.0.0.0:48929           0.0.0.0:*               LISTEN      2460/rpc.mountd 
tcp        0      0 0.0.0.0:2049            0.0.0.0:*               LISTEN      -               
tcp        0      0 0.0.0.0:41763           0.0.0.0:*               LISTEN      1769/rpc.statd  
tcp        0      0 0.0.0.0:34663           0.0.0.0:*               LISTEN      2460/rpc.mountd 
tcp        0      0 0.0.0.0:60967           0.0.0.0:*               LISTEN      -               
tcp        0      0 0.0.0.0:43913           0.0.0.0:*               LISTEN      2460/rpc.mountd 
tcp        0      0 127.0.0.1:3306          0.0.0.0:*               LISTEN      2788/mysqld     
tcp6       0      0 :::60207                :::*                    LISTEN      2460/rpc.mountd 
tcp6       0      0 :::111                  :::*                    LISTEN      1737/rpcbind    
tcp6       0      0 :::80                   :::*                    LISTEN      2236/apache2    
tcp6       0      0 :::53                   :::*                    LISTEN      2200/dnsmasq    
tcp6       0      0 :::22                   :::*                    LISTEN      2936/sshd       
tcp6       0      0 ::1:25                  :::*                    LISTEN      3361/exim4      
tcp6       0      0 :::34912                :::*                    LISTEN      2460/rpc.mountd 
tcp6       0      0 :::33824                :::*                    LISTEN      -               
tcp6       0      0 :::57473                :::*                    LISTEN      2460/rpc.mountd 
tcp6       0      0 :::2049                 :::*                    LISTEN      -               
tcp6       0      0 :::45732                :::*                    LISTEN      1769/rpc.statd  
udp        0      0 0.0.0.0:54296           0.0.0.0:*                           2460/rpc.mountd 
udp        0      0 0.0.0.0:28442           0.0.0.0:*                           2308/dhcpd      
udp        0      0 0.0.0.0:53              0.0.0.0:*                           2200/dnsmasq    
udp        0      0 0.0.0.0:67              0.0.0.0:*                           2308/dhcpd      
udp        0      0 0.0.0.0:68              0.0.0.0:*                           1649/dhclient   
udp        0      0 0.0.0.0:69              0.0.0.0:*                           2874/inetd      
udp        0      0 0.0.0.0:59478           0.0.0.0:*                           2460/rpc.mountd 
udp        0      0 0.0.0.0:111             0.0.0.0:*                           1737/rpcbind    
udp        0      0 192.168.0.1:123         0.0.0.0:*                           2833/ntpd       
udp        0      0 192.168.1.161:123       0.0.0.0:*                           2833/ntpd       
udp        0      0 127.0.0.1:123           0.0.0.0:*                           2833/ntpd       
udp        0      0 0.0.0.0:123             0.0.0.0:*                           2833/ntpd       
udp        0      0 0.0.0.0:56445           0.0.0.0:*                           2460/rpc.mountd 
udp        0      0 0.0.0.0:640             0.0.0.0:*                           1737/rpcbind    
udp        0      0 127.0.0.1:673           0.0.0.0:*                           1769/rpc.statd  
udp        0      0 0.0.0.0:3491            0.0.0.0:*                           1649/dhclient   
udp        0      0 0.0.0.0:57030           0.0.0.0:*                           -               
udp        0      0 127.0.0.1:11211         0.0.0.0:*                           2322/memcached  
udp        0      0 0.0.0.0:55539           0.0.0.0:*                           1769/rpc.statd  
udp        0      0 0.0.0.0:2049            0.0.0.0:*                           -               
udp6       0      0 :::50984                :::*                                2460/rpc.mountd 
udp6       0      0 :::53                   :::*                                2200/dnsmasq    
udp6       0      0 :::33098                :::*                                2460/rpc.mountd 
udp6       0      0 :::111                  :::*                                1737/rpcbind    
udp6       0      0 :::38512                :::*                                1769/rpc.statd  
udp6       0      0 :::17272                :::*                                1649/dhclient   
udp6       0      0 ::1:123                 :::*                                2833/ntpd       
udp6       0      0 fe80::a00:27ff:fef3:123 :::*                                2833/ntpd       
udp6       0      0 fe80::a00:27ff:feb7:123 :::*                                2833/ntpd       
udp6       0      0 :::123                  :::*                                2833/ntpd       
udp6       0      0 :::640                  :::*                                1737/rpcbind    
udp6       0      0 :::11919                :::*                                2308/dhcpd      
udp6       0      0 :::33778                :::*                                2460/rpc.mountd 
udp6       0      0 :::40193                :::*                                -               
udp6       0      0 :::2049                 :::*                                -               
neogenik
() автор топика
Ответ на: комментарий от neogenik
изменил вот так

iptables -F
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
iptables -A FORWARD -i eth0 -o eth0 -j REJECT
iptables -I FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu
#----------------
modprobe ipt_TTL
iptables -t filter -A INPUT -d 224.0.0.0/240.0.0.0 -i eth0 -j ACCEPT
iptables -t filter -A INPUT -s 224.0.0.0/240.0.0.0 -i eth0 -j ACCEPT
iptables -t filter -A FORWARD -d 224.0.0.0/240.0.0.0 -j ACCEPT
iptables -t filter -A FORWARD -s 224.0.0.0/240.0.0.0 -j ACCEPT
iptables -t mangle -A PREROUTING -d 224.0.0.0/240.0.0.0 -p udp -j TTL --ttl-inc 1
iptables -t mangle -A PREROUTING -d 224.0.0.0/240.0.0.0 -p udp -j TTL --ttl-inc 1
echo -e "done.\n"

Вывод TCPDUMP tcpdump -i eth0 -v -v -f -n igmp tcpdump: listening on eth0, link-type EN10MB (Ethernet), capture size 65535 bytes 17:54:32.772272 IP (tos 0x0, ttl 1, id 7495, offset 0, flags [none], proto IGMP (2), length 32, options (RA)) 192.168.1.81 > 224.0.0.2: igmp leave 224.0.0.252 17:54:32.788650 IP (tos 0x0, ttl 1, id 7496, offset 0, flags [none], proto IGMP (2), length 32, options (RA)) 192.168.1.81 > 224.0.0.252: igmp v2 report 224.0.0.252 17:54:32.789493 IP (tos 0x0, ttl 1, id 7497, offset 0, flags [none], proto IGMP (2), length 32, options (RA)) 192.168.1.81 > 224.0.0.2: igmp leave 224.0.0.252 17:54:32.797675 IP (tos 0x0, ttl 1, id 7498, offset 0, flags [none], proto IGMP (2), length 32, options (RA))

такой вывод igmpproxy

The origin for route 239.255.255.250 changed from 192.168.1.163 to 192.168.1.50
The origin for route 239.255.255.250 changed from 192.168.1.50 to 192.168.1.87
The origin for route 239.255.255.250 changed from 192.168.1.87 to 192.168.1.163
The origin for route 239.255.255.250 changed from 192.168.1.163 to 192.168.1.87
The origin for route 239.255.255.250 changed from 192.168.1.87 to 192.168.1.46
RECV Membership query   from 10.128.240.1    to 224.0.0.1
The origin for route 239.255.255.250 changed from 192.168.1.46 to 192.168.1.94
RECV V2 member report   from 192.168.1.81    to 239.255.255.250
Mebership report was recieved on the upstream interface. Ignoring.
The origin for route 239.255.255.250 changed from 192.168.1.94 to 192.168.1.163
The origin for route 239.255.255.250 changed from 192.168.1.163 to 192.168.1.94
The origin for route 239.255.255.250 changed from 192.168.1.94 to 192.168.1.60
RECV Membership query   from 192.168.0.1     to 224.0.0.1
RECV Leave message      from 192.168.0.22    to 224.0.0.2
RECV Leave message      from 192.168.0.22    to 224.0.0.2
The origin for route 239.255.255.250 changed from 192.168.1.60 to 192.168.0.22
The origin for route 239.255.255.250 changed from 192.168.0.22 to 192.168.1.81
The origin for route 239.255.255.250 changed from 192.168.1.81 to 192.168.1.196
RECV V1 member report   from 192.168.0.1     to 224.0.0.2
Mebership report was recieved on the upstream interface. Ignoring.
The origin for route 239.255.255.250 changed from 192.168.1.196 to 192.168.1.50
The origin for route 239.255.255.250 changed from 192.168.1.50 to 192.168.1.87
The origin for route 239.255.255.250 changed from 192.168.1.87 to 192.168.1.159
RECV V2 member report   from 192.168.0.22    to 239.255.255.250
Mebership report was recieved on the upstream interface. Ignoring.
The origin for route 239.255.255.250 changed from 192.168.1.159 to 192.168.1.94
The origin for route 239.255.255.250 changed from 192.168.1.94 to 192.168.1.60
neogenik
() автор топика
Ответ на: комментарий от neogenik

при подключении от клиента

RECV Leave message      from 192.168.0.22    to 224.0.0.2
RECV Leave message      from 192.168.0.22    to 224.0.0.2
The origin for route 239.255.255.250 changed from 192.168.1.91 to 192.168.0.22
The origin for route 239.255.255.250 changed from 192.168.0.22 to 192.168.1.81
RECV V2 member report   from 192.168.0.21    to 239.1.1.2
Mebership report was recieved on the upstream interface. Ignoring.
The origin for route 239.255.255.250 changed from 192.168.1.81 to 192.168.1.87
RECV Leave message      from 192.168.0.21    to 224.0.0.2
RECV V2 member report   from 192.168.0.21    to 239.1.1.2
Mebership report was recieved on the upstream interface. Ignoring.
The origin for route 239.255.255.250 changed from 192.168.1.87 to 192.168.1.91
RECV Leave message      from 192.168.0.21    to 224.0.0.2
RECV V2 member report   from 192.168.0.21    to 239.1.1.2
Mebership report was recieved on the upstream interface. Ignoring.
neogenik
() автор топика
Ответ на: комментарий от ii343hbka

проблема в том что надо чтоб работало на прямую с rtp я уже думал smcroute pim rtpproxy просто в ступор вводит ситуация с igmp пакетами и выхлоп на 1234 порту

neogenik
() автор топика
Ответ на: комментарий от neogenik

ну я вообще слабо разбираюсь в iptv
я подумал, что вдруг хотя бы так

ii343hbka ★★★
()

Тред не читал. Про ip r a m <чего-то там> уже писали? У меня не работало из-за того, что мультикаст роут не прописал.

Delirium_veritas
()
Ответ на: комментарий от Delirium_veritas
Так по ходу так и есть только не не понимаю как его выцепить...
Я читал что Ставишь слушать TCPdump port 1234 типа который слушает igmpproxy но там глухо
ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN 
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc htb state UP qlen 1000
    link/ether 08:00:27:b7:34:9a brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.161/24 brd 192.168.1.255 scope global eth0
    inet6 fe80::a00:27ff:feb7:349a/64 scope link 
       valid_lft forever preferred_lft forever
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether 08:00:27:f3:78:2d brd ff:ff:ff:ff:ff:ff
    inet 192.168.0.1/24 brd 192.168.0.255 scope global eth1
    inet6 fe80::a00:27ff:fef3:782d/64 scope link 
       valid_lft forever preferred_lft forever
:~# ip m
1:	lo
	inet  224.0.0.1
	inet6 ff02::1
2:	eth0
	link  33:33:00:00:00:01
	link  01:00:5e:00:00:01
	link  33:33:ff:b7:34:9a
	link  33:33:00:00:02:02
	inet  224.0.0.1
	inet6 ff02::202
	inet6 ff02::1:ffb7:349a
	inet6 ff02::1
3:	eth1
	link  33:33:00:00:00:01
	link  01:00:5e:00:00:01
	link  33:33:ff:f3:78:2d
	link  33:33:00:00:02:02
	link  01:00:5e:00:00:02
	inet  224.0.0.2
	inet  224.0.0.1
	inet6 ff02::202
	inet6 ff02::1:fff3:782d
	inet6 ff02::1
:~# ip r
default via 192.168.1.1 dev eth0 
192.168.0.0/24 dev eth1  proto kernel  scope link  src 192.168.0.1 
192.168.1.0/24 dev eth0  proto kernel  scope link  src 192.168.1.161 
224.0.0.0/4 dev eth0  scope link 
:~# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         gw-0.lpo.priv   0.0.0.0         UG    0      0        0 eth0
192.168.0.0     *               255.255.255.0   U     0      0        0 eth1
192.168.1.0     *               255.255.255.0   U     0      0        0 eth0
224.0.0.0       *               240.0.0.0       U     0      0        0 eth0
 
neogenik
() автор топика
Ответ на: комментарий от neogenik
По ходу таки да роута нехватает
вопрос как определить какого? В этом выводе видно что отброшено 15 пакетов так как не доступен получатель
а как определить куда они ломились?

netstat -s 
Ip:
    1124439 total packets received
    407541 forwarded
    0 incoming packets discarded
    574842 incoming packets delivered
    631855 requests sent out
    15 dropped because of missing route
Icmp:
    65846 ICMP messages received
    0 input ICMP message failed.
    ICMP input histogram:
        echo requests: 65845
        echo replies: 1
    65862 ICMP messages sent
    0 ICMP messages failed
    ICMP output histogram:
        destination unreachable: 16
        echo request: 1
        echo replies: 65845
IcmpMsg:
        InType0: 1
        InType8: 65845
        OutType0: 65845
        OutType3: 16
        OutType8: 1
Tcp:
    73 active connections openings
    11 passive connection openings
    0 failed connection attempts
    0 connection resets received
    3 connections established
    316048 segments received
    144683 segments send out
    11 segments retransmited
    0 bad segments received.
    7 resets sent
Udp:
    46257 packets received
    21 packets to unknown port received.
    0 packet receive errors
    12684 packets sent
UdpLite:
TcpExt:
    8 TCP sockets finished time wait in fast timer
    111 delayed acks sent
    4 delayed acks further delayed because of locked socket
    Quick ack mode was activated 61 times
    36 packets directly queued to recvmsg prequeue.
    12 bytes directly received in process context from prequeue
    267020 packet headers predicted
    20624 acknowledgments not containing data payload received
    73 predicted acknowledgments
    1 congestion windows recovered without slow start by DSACK
    4 congestion windows recovered without slow start after partial ack
    1 timeouts after SACK recovery
    9 other TCP timeouts
    61 DSACKs sent for old packets
    4 DSACKs received
    TCPSackShiftFallback: 5
IpExt:
    InNoRoutes: 44
    InMcastPkts: 64364
    OutMcastPkts: 1091
    InBcastPkts: 177954
    InOctets: 644133378
    OutOctets: 170999862
    InMcastOctets: 16991632
    OutMcastOctets: 32732
    InBcastOctets: 28657049

neogenik
() автор топика
Ответ на: комментарий от neogenik

Не помню не фига. Но у меня на lan'е ещё и inet 239.255.255.250 висит. Где и зачем я его ставил/ставлю - хоть убей не найду.

Delirium_veritas
()
Ответ на: комментарий от Delirium_veritas

а разве надо дописывать altnet для внутреннего интерфейса? получается что роут тоже на внутренний делать? route add -net 224.0.0.0/4 dev eth1

neogenik
() автор топика
Ответ на: комментарий от Delirium_veritas

Прикол еще такой попробовал сделать сетевой мост между eth0 и eth1 но трабл в том что перестал ходить интернет и как исправить хз зато по порту 1234 igmpproxy пакеты летят как сумашедшие. Пробовал настроить br0 (мост) как локальный интерфейс и в dhcp его настроить но проблема в том что физический он не при делах

neogenik
() автор топика
Ответ на: комментарий от neogenik

Я же говорю, не помню. Посмотрел на хосте, где раньше делал, оттуда и дровишки. Роут только на wan, altnet'ы для up и downstream'ов. Вроде до сих пор работает на ту локалку.

Delirium_veritas
()
Ответ на: комментарий от Delirium_veritas
У меня трабл в том что 
tcpdump -i eth0 -n -t  port 1234 
молчит а когда делаю мост пакеты летят пулей только dhcp который в локалку смотрит умирает

если не сложно можешь (как бы если имеет смысл) хотя бы route -n
route -n
igmpproxy.conf
iptables rules
tcpdump -i eth0 -n -t  port 1234 
neogenik
() автор топика
Ответ на: комментарий от neogenik

короче все работает спасибо всем кто отозвался ... если интересно напишу инструкцию ... нужную комманду в которой была загвостка нашел только в одном месте комманда ip -s mroute с ее помощью определял сети в которые пытается стучатся мой igmproxy по широковещательному адресу 239.*.*.* а дальше добавлял в igmpproxy.conf во входящий список

neogenik
() автор топика
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.