OpenWRT: Setup UPnP

From OnnoWiki
Revision as of 06:57, 18 June 2013 by Onnowpurbo (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Pastikan waktu compile OpenWRT menggunakan menu

./scripts/feeds install kmod-usb-storage block-mount kmod-fs-ext4 kmod-fs-vfat kmod-nls-cp437 kmod-nls-iso8859-1

Jika USB flashdisk yang digunakan menggunakan filesystem ext4. Lakukan

mkdir -p /mnt/usb
mount /dev/sda1 /mnt/usb
rm /var/run/minidlna/*
/etc/init.d/minidlna restart

Masukan ke /etc/rc.local supaya setiap booting di mount.


/etc/config/upnpd

config upnpd 'config'
        option download '1024'
        option upload '512'
        option external_iface 'wan'
        option internal_iface 'lan'
        option port '5000'
        option upnp_lease_file '/var/upnp.leases'
        option uuid '70b97a54-c51b-4ae2-bebd-dd16fbf06aba'

config perm_rule
        option action 'allow'
        option ext_ports '1024-65535'
        option int_addr '0.0.0.0/0'
        option int_ports '1024-65535'
        option comment 'Allow high ports'

config perm_rule
        option action 'deny'
        option ext_ports '0-65535'
        option int_addr '0.0.0.0/0'
        option int_ports '0-65535'
        option comment 'Default deny'

/etc/config/minidlna

config minidlna 'config'
        option port '8200'
        option interface 'br-lan'
        option friendly_name 'OpenWrt DLNA Server'
        option db_dir '/var/run/minidlna'
        option log_dir '/var/log'
        option inotify '1'
        option notify_interval '900'
        option serial '12345678'
        option model_number '1'
        option root_container '.'
        option album_art_names 'Cover.jpg/cover.jpg/AlbumArtSmall.jpg/albumartsmall.jpg/AlbumArt.jpg/albumart.jpg/Album.jpg/album.jpg/Folder.jp
        'option enabled '1'
        list media_dir '/mnt/usb'



Referensi