IPFW Multicast forward via ipfw

Hello everyone
I have the following case :)

I make a multicast using ffmpeg

ffmpeg -i rtmp://localhost/c1/c1 -c:v copy -c:a copy -f mpegts udp://232.1.1.3:3000

I have a multicast

Code:
tcpdump -n |grep 232.1.1.3
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on bce0, link-type EN10MB (Ethernet), capture size 262144 bytes
16:56:49.461334 IP XX.XX.XX.XX.51407 > 232.1.1.3.3000: UDP, length 1472
16:56:49.465011 IP XX.XX.XX.XX.17996 > 232.1.1.3.3000: UDP, length 1472
16:56:49.465012 IP XX.XX.XX.XX.19637 > 232.1.1.3.3000: UDP, length 1472
XX.XX.XX.XX is the ip address of main vlan which is for my internet
I also have a second vlan1111 through which I want to get this multicast

I want to redirect it with ipfw and I'm trying
Code:
0100        0           0 allow ip from any to 232.1.1.3 out via vlan1111
2000        0           0 deny ip from any to any out via vlan1111

------------------
My interfaces
Code:
vlanXXXX: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 options=80103<RXCSUM,TXCSUM,TSO4,LINKSTATE>
        inet XX.XX.XX.XX  netmask 0xffffff00 broadcast XX.XX.XX.XX
        status: active
....
vlan1111: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=80103<RXCSUM,TXCSUM,TSO4,LINKSTATE>
        ether 3c:d9:2b:ec:48:0a
        inet 192.168.50.50 netmask 0xffffff00 broadcast 192.168.50.255
        groups: vlan
        vlan: 1111 vlanproto: 802.1q vlanpcp: 0 parent interface: bce1
        media: Ethernet autoselect
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>


where am i wrong ?
 
Last edited by a moderator:
Back
Top