jails MiniDLNA behind Jail/NAT (no broadcasting)

Hi, is there any chance to expose MiniDLNA service (located in Jail/ NAT) to local network?
When I run DLNA on base system other devices in network correctly see service on UPnP but
in jail there are no broadcasting.

My interfaces (lo1 is bridge to em0)
Bash:
em0: flags=1008843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,LOWER_UP> metric 0 mtu 1500
    options=4e524bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,LRO,WOL_MAGIC,VLAN_HWFILTER,VLAN_HWTSO,RXCSUM_IPV6,TXCSUM_IPV6,HWSTATS,MEXTPG>
    ether 7c:d1:c3:ec:e4:95
    hwaddr 64:00:6a:89:d6:d5
    inet 192.168.31.175 netmask 0xffffff00 broadcast 192.168.31.255
    media: Ethernet autoselect (100baseTX <full-duplex>)
    status: active
    nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
lo0: flags=1008049<UP,LOOPBACK,RUNNING,MULTICAST,LOWER_UP> metric 0 mtu 16384
    options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
    inet 127.0.0.1 netmask 0xff000000
    inet6 ::1 prefixlen 128
    inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
    groups: lo
    nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
lo1: flags=1008049<UP,LOOPBACK,RUNNING,MULTICAST,LOWER_UP> metric 0 mtu 16384
    options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
    inet 192.168.0.1 netmask 0xffffff00
    inet 192.168.0.2 netmask 0xffffffff
    inet 192.168.0.3 netmask 0xffffffff
    inet 192.168.0.4 netmask 0xffffffff
    inet 192.168.0.5 netmask 0xffffffff
    inet6 fe80::1%lo1 prefixlen 64 scopeid 0x3
    groups: lo
    nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>

Part of my pf.conf:
Bash:
IP="192.168.31.175"
scrub in all
set skip on lo1
nat on em0 from lo1:network to any -> (em0)
rdr on em0 proto tcp from any to $IP port 8200 -> 192.168.0.2
rdr on em0 proto udp from any to $IP port 1900 -> 192.168.0.2

Thanks for help!
 
Is this on your own LAN? Why not bind the jails to em0 and do away with NAT altogether?
 
Is this on your own LAN? Why not bind the jails to em0 and do away with NAT altogether?
Thanks a lot!
I've bind to new address on physical network interface and it's start to be visible in local network but only once.
When I've connected to MiniDLNA, disconnect and does not show up next time.

--- edit ---
Ok, I've found, that we need to change:
Code:
notify_interval
to smaller value in MiniDLNA config file.
Works great! Thanks!
 
Back
Top