-
-
Save muff1nman/16a8cd8a46c191f305afdf2b97cc2adf to your computer and use it in GitHub Desktop.
FirewallD Chromecast RHEL7/Centos7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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