From owner-freebsd-net@FreeBSD.ORG Mon Nov 3 04:07:56 2014 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 12D6130F for ; Mon, 3 Nov 2014 04:07:56 +0000 (UTC) Received: from mail-la0-x236.google.com (mail-la0-x236.google.com [IPv6:2a00:1450:4010:c03::236]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8AC5BFA0 for ; Mon, 3 Nov 2014 04:07:55 +0000 (UTC) Received: by mail-la0-f54.google.com with SMTP id s18so3409905lam.41 for ; Sun, 02 Nov 2014 20:07:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:from:reply-to:to:references:in-reply-to:subject:date :mime-version:content-type:content-transfer-encoding:thread-index :content-language; bh=1/uoTUiwNlv9jB2RcMmF8zyVoV/hcrXsVAfmyi73+5Y=; b=G6C4oM0Qe6BP8O9u62k76gKDUCX76FHkT6PJA3vDR4NoP8Zddax6ZlKJ65sB5mVPSD 5g3iZH89G+mzu4yqI6MlUmI1N81f5guKx8APSamWknCWAzd/3UQ2WmGGqZWif0FxNcQk +4TyfVlcdoCMQ+ucEfCIzGnbpF/jSdmTDpI8DKj3epd5D6J07IopwbwA6ttmbQceA0Ct 5/u7HBSdNQoolXhxdF0I/wGSnKkOcaojGXDMGlEmWrkYxcFLIxnFDQ9vRkTL8Wxd/xGo o/eeb1YElSi0o/TYa1QtXWvCmXBePXK1YoqUzGDBhnfJFt1CP3vaHYuD4QVN654zWkmX l/2g== X-Received: by 10.112.144.228 with SMTP id sp4mr46813780lbb.58.1414987673152; Sun, 02 Nov 2014 20:07:53 -0800 (PST) Received: from rimwks1w7x64 ([2001:470:1f15:8e:2497:9687:421b:c20e]) by mx.google.com with ESMTPSA id x8sm3353343lae.24.2014.11.02.20.07.51 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 02 Nov 2014 20:07:52 -0800 (PST) Message-ID: <5456ff98.c815980a.669e.ffffa80b@mx.google.com> X-Google-Original-Message-ID: <023901cff71b$bcc97250$365c56f0$@IM@gmail.com> From: rozhuk.im@gmail.com X-Google-Original-From: Reply-To: To: "'Marek Salwerowicz'" , References: <543D9C48.3010907@wp.pl> In-Reply-To: <543D9C48.3010907@wp.pl> Subject: RE: Multicast routing, IGMP, IPTV doubts.. Date: Mon, 3 Nov 2014 07:07:49 +0300 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Ac/oAkFKn+sUj652TTW+80WkPv7HagPGQxAw Content-Language: ru X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Nov 2014 04:07:56 -0000 pass out quick inet proto udp to 224.0.0.0/4 no state allow-opts pass out quick inet proto igmp to 224.0.0.0/4 no state allow-opts pass out quick inet6 proto udp to ff00::/8 no state allow-opts # Allow send multicast pass out quick inet6 proto icmp6 no state allow-opts # mld (igmp6) also here pass in quick inet proto udp to 224.0.0.0/4 no state # Allow receive multicast pass in quick inet proto igmp to 224.0.0.0/4 no state allow-opts pass in quick inet6 proto udp to ff00::/8 no state # Allow receive multicast pass in quick inet6 proto icmp6 no state allow-opts # mld (igmp6) also here If not help you can use multicast bridge on netgraph: http://www.netlab.linkpc.net/forum/index.php?topic=796.0 http://lists.freebsd.org/pipermail/freebsd-net/2011-December/030643.html > -----Original Message----- > From: owner-freebsd-net@freebsd.org [mailto:owner-freebsd- > net@freebsd.org] On Behalf Of Marek Salwerowicz > Sent: Wednesday, October 15, 2014 1:57 AM > To: freebsd-net@freebsd.org > Subject: Multicast routing, IGMP, IPTV doubts.. > > Hi all, > > My home router is small FreeBSD 10 box, with 3 ethernet ports, I use pf > as a firewall. > > My ISP provides FTTH, that ends at my home with a small box called CPE. > The CPE contains 4 ethernet ports. On one port I have Internet access, > on the other there is IPTV (that's based on udp/multicast) > > The IPTV works well - when I connect directly my PC to IPTV ethernet > socket - I can watch TV. > > But I would like to have both Internet and IPTV on my desktop at the > same time. > > I've downloaded the igmpproxy package, set up config: > > quickleave > # IPTV interface > phyint re2 upstream ratelimit 0 threshold 1 > altnet 10.0.0.0/8 > altnet 192.168.0.0/16 > > # LAN interface , bridge0 as it's re0+wlan0 phyint bridge0 downstream > ratelimit 0 threshold 1 > > # Internet access interface > phyint re1 disabled > > I've also loaded the ip_mroute module into kernel: > > 10 1 0xffffffff81aa7000 cd91 ip_mroute.ko > > And enabled UDP traffic in PF: > > IPTV="re2" > int_if="bridge0" > > # IPTV > pass in on $IPTV inet proto udp from any to any pass on {$int_if, > $IPTV} proto igmp allow-opts > > > > Unfortunately after starting igmpproxy: > > # igmpproxy -d -vv igmpproxy.conf > > the igmpproxy starts but can't build routing table: > Current routing table (Age active routes): > ----------------------------------------------------- > No routes in table... > ----------------------------------------------------- > received packet from 10.66.255.248 shorter (32 bytes) than hdr+data > length (24+32) received packet from 10.66.255.248 shorter (32 bytes) > than hdr+data length (24+32) received packet from 10.66.255.248 shorter > (32 bytes) than hdr+data length (24+32) > > > Do you have any idea how should I configure my box to be able to route > the IPTV traffic? > > Regards, > Marek > > -- > Marek Salwerowicz > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"