Working DLNA routing example (basic)
Posted: Fri Jun 08, 2018 12:44 am
Hi there. This time I’m trying to understand PIM-SM implementation on Mikrotik device. I post the basic working configuration right here. And for those who is curious, I’ll share more details in the further posts. Hopefully this config would save somebody time. I wasn’t able to directly find answers (those that I would completely understand) in relevant topics and wiki example.
My test lab is following:
Schema (clickable)
It could happen that with your devices you may need less or more configurations, but nevertheless here’s a working config for the picture above.
Don’t forget to add static route on your media server (NAS in my case)
Think about security and limiting mangle rules to the required interfaces only
My test lab is following:
- Qnap NAS – content producer (Prod)
- Map2nd
- Windows 10 1803 laptop – content consumer (Cons)
Schema (clickable)
It could happen that with your devices you may need less or more configurations, but nevertheless here’s a working config for the picture above.
Code: Select all
/interface bridge
add arp=enabled fast-forward=no name=Cons-Br protocol-mode=none
add arp=enabled fast-forward=no name=Prod-Br protocol-mode=none
/ip pool
add name=dhcp_pool0 ranges=192.168.0.10-192.168.0.20
add name=dhcp_pool2 ranges=192.168.1.10-192.168.1.20
/ip dhcp-server
add address-pool=dhcp_pool0 dhcp-option-set=cons-br-opts disabled=no interface=\
Cons-Br lease-time=2m name=dhcp1
add address-pool=dhcp_pool2 dhcp-option-set=prod-br-opts disabled=no interface=\
Prod-Br lease-time=2m name=dhcp2
/interface bridge port
add bridge=Cons-Br hw=no interface=ether1
add bridge=Prod-Br hw=no interface=ether2
/ip address
add address=192.168.0.1/24 interface=Cons-Br network=192.168.0.0
add address=192.168.1.1/24 interface=Prod-Br network=192.168.1.0
/ip dhcp-server network
add address=192.168.0.0/24 dns-none=yes gateway=192.168.0.1 netmask=24
add address=192.168.1.0/24 dns-none=yes gateway=192.168.1.1 netmask=24
/ip firewall address-list
add address=192.168.0.1 list=Bridges
add address=192.168.1.1 list=Bridges
/ip firewall mangle
add action=change-ttl chain=prerouting dst-address-type="" log-prefix=TTL+ \
new-ttl=set:64 passthrough=yes port=1900 protocol=udp
add action=change-ttl chain=prerouting new-ttl=set:64 passthrough=yes protocol=\
igmp
/ip upnp
set enabled=yes
/ip upnp interfaces
add interface=Cons-Br type=internal
add interface=Prod-Br type=internal
/routing pim bsr-candidates
add interface=Cons-Br
/routing pim interface
add interface=Cons-Br
add interface=Prod-Br
/routing pim rp
add address=192.168.1.1
/routing pim rp-candidates
add interface=Prod-Br
Don’t forget to add static route on your media server (NAS in my case)
Code: Select all
route add -net 224.0.0.0 netmask 240.0.0.0 gw 192.168.1.1 dev eth0
Think about security and limiting mangle rules to the required interfaces only