firewalldへの追加

DLNAサービスで以下のポートを開放させるのにfirewalldのサービスとして登録。
/usr/lib/firewalld/services/minidlna.xml ファイルを以下の内容で作成。

1
2
3
4
5
6
7
8
<?xml version="1.0" encoding="utf-8"?>
<service>
  <short>minidlna</short>
  <description></description>
  <port protocol="udp" port="1900"/>
  <port protocol="tcp" port="5000"/>
  <port protocol="tcp" port="8200"/>
</service>

これでfirewalldから

firewall-cmd –add-service=minidlna –permanent

firewall-cmd –reload

でポート解放完了。
別の端末から http://192.168.xxx.xxx:8200 でアクセスしてMiniDLNA status画面が表示されてファイル数が検出されればOK。

comments powered by Disqus