Block spotify for iptables

Reply

Block spotify for iptables

78matias78
Newbie

Hello I need to block spotify by iptables. Find these spotify ip ranges:

 

- 78.31.8.0/21
- 193.182.8.0/21
- 194.68.28.0/22
- 193.235.32.0/24
- 193.235.203.0/24
- 193.235.206.0/24

 

I have doubts with the rules to throw everything serious so the first for example:

 

-I FORWARD -d 78.31.8.0/21 -j DROP

 

And give exepcion to an ip would be something like this:

 

-I FORWARD -s 172.xxx.xxx.xxx/32 -d 78.31.8.0/21 -j ACCEPT

 

Anyone know if this can be done this way with spotify. I look forward to your response from now, thank you very much, greetings.

SUGGESTED POSTS