Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Firewall settings #62

Closed
slumbergod opened this issue Jul 19, 2018 · 9 comments
Closed

Firewall settings #62

slumbergod opened this issue Jul 19, 2018 · 9 comments

Comments

@slumbergod
Copy link

I'd like to add the appropriate rules for firewall (GUFW) but I have not been able to find any reference to the correct ports. As it currently stands, I have to disable my firewall to cast from Gnomecast or VLC3. Has anyone successfully added rules to their firewall?

@keredson
Copy link
Owner

@slumbergod
Copy link
Author

@keredson
Thanks, I have tried the information on that page and all the others I can find. It seems most people using Linux are just disabling their firewalls when they want to stream via Chromecast, at least with VLC.

@slumbergod
Copy link
Author

I've been having more problems with gnomecast and I finally managed to get a hold of chromecast support. I requested the details of what ports to open and they sent this:

Ports:
Outgoing UDP Multicast on port 1900 and 5353
Incoming UDP Unicast on arbitrary ports > 53 and 123
Outgoing HTTP on port 8008, 8009, 80 and 443

DNS:
Chromecast uses the following Google public DNS addresses:
8.8.8.8
8.8.4.4

Maybe it will help.

@ghost
Copy link

ghost commented Aug 14, 2020

@slumbergod Don't know if you've now got it sorted out, after all your last comment was from January 2020, but I've just checked my UFW rules, and I have the following set up specifically for my Chromecast:

32768:60999/udp ALLOW IN 192.168.0.23
32768:60999/tcp ALLOW IN 192.168.0.23
1900/udp ALLOW IN 192.168.0.23

Where 192.168.0.23 is my Chromecast's local network IP address.

So long as I turn off the VPN I use normally, I can stream via Gnomecast to the Chromecast with the UFW Firewall on perfectly fine.

My UFW is set to DENY incoming by default, while ALLOW-ing outgoing by default, so perhaps if I disallowed outgoing stuff I'd need some more rules using some of the outgoing ports you mention.

But, as I say, the above rules work perfectly for me.

Hope this helps, if not you, then someone else who comes looking for help with streaming through UFW.

@slumbergod
Copy link
Author

slumbergod commented Aug 14, 2020

@PhotonQyv
I'd actually given up trying and just disabled UFW. I'll give your rules a try though.

Do you need to set up a static IP address for your Chromecast?

@ghost
Copy link

ghost commented Aug 14, 2020

@slumbergod I've got it set up so that both my laptop which I stream from and the Chromecast have set, defined IP (leased) addresses assigned by my hub/router, so that the UFW rules can be made a little more specific, after all what's the point in having a firewall if I then allow anything to connect to those ports, and not just the Chromecast.

Incidentally, if you want to try to see if VLC will do the job:

8010 ALLOW IN 192.168.0.23

Where 8010 is the default port that VLC uses to stream.

Again, hope that helps. Incidentally, I use sudo gufw to actually create the rules, as I've not quite got my head around doing it on the command-line using ufw.

@slumbergod
Copy link
Author

@ PhotonQyv thanks. I have started experimenting. Our router has some strange quirks so it'll be one challenge at a time. I hope I can get it done though. Cheers!

@ghost
Copy link

ghost commented Aug 14, 2020

@slumbergod No worries, I wish I could recall where I got my info from, and I'd put a link in a reply to you, but it's been a while since I got it sorted out and working. Good luck with it (:*

@slumbergod
Copy link
Author

In case anyone else experiences this I found the solution. This worked under Xubuntu and Manjaro.

  1. Assign a permanent IP address for your chrome cast device on your network.
  2. Using the command line, just enter this command: sudo ufw allow from x.x.x.x
    where x.x.x.x is the IP address you gave to the chromecast.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants