Skip to content

Instantly share code, notes, and snippets.

@jgmel
Last active August 20, 2017 00:04
Show Gist options
  • Save jgmel/19ab7ea14744700e1822881fe8d1d4de to your computer and use it in GitHub Desktop.
Save jgmel/19ab7ea14744700e1822881fe8d1d4de to your computer and use it in GitHub Desktop.
FirewallD Chromecast RHEL7/Centos7
<?xml version="1.0" encoding="utf-8"?>
<service>
<short>chromecast-ssdp</short>
<port protocol="udp" port="1900"/>
<destination ipv4="239.255.255.250/32"/>
</service>
<?xml version="1.0" encoding="utf-8"?>
<service>
<short>chromecast</short>
<description>Chromecast</description>
<port protocol="udp" port="32768-61000"/>
<port protocol="tcp" port="8008-8009"/>
<source-port protocol="udp" port="32768-61000"/>
</service>
sudo firewall-cmd --permanent --new-service=chromecast
sudo firewall-cmd --permanent --service=chromecast --set-description=Chromecast
sudo firewall-cmd --permanent --service=chromecast --set-short=chromecast
sudo firewall-cmd --permanent --service=chromecast --add-port=32768-61000/udp
sudo firewall-cmd --permanent --service=chromecast --add-port=8008-8009/tcp
sudo firewall-cmd --permanent --service=chromecast --add-source-port=32768-61000/udp
sudo firewall-cmd --permanent --new-service=chromecast-ssdp
sudo firewall-cmd --permanent --service=chromecast-ssdp --set-description=Chromecast SSDP
sudo firewall-cmd --permanent --service=chromecast-ssdp --set-short=chromecast-ssdp
sudo firewall-cmd --permanent --service=chromecast-ssdp --add-port=1900/udp
sudo firewall-cmd --permanent --service=chromecast-ssdp --set-destination=ipv4:239.255.255.250/32
sudo firewall-cmd --zone=home --add-service=chromecast-ssdp --permanent
sudo firewall-cmd --zone=home --add-service=chromecast-ssdp
sudo firewall-cmd --zone=home --add-service=chromecast --permanent
sudo firewall-cmd --zone=home --add-service=chromecast
sudo firewall-cmd --reload
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment