<img src="//bat.bing.com/action/0?ti=5794969&amp;Ver=2" height="0" width="0" style="display:none; visibility: hidden;">

How to Block Spotify with a Barracuda Web Filter

[fa icon="long-arrow-left"] Back to all posts

[fa icon="pencil'] Posted by John Certeza [fa icon="calendar"] October 13, 2015

We ran into an interesting issue with one of our clients last week who was trying to block the streaming music app Spotify to comply with the company's Internet Use Policy. Yet it persisted to work despite being blocked using a Barracuda Web Filter.

Here's why and how to fix it.

First I checked the standard configuration within the Barracuda Web Filter, to verify the settings were in fact correct:

  • Under the "Content Filter", "Streaming Media" is set to Block
  • Under "Applications" Spotify was set to Block as well. 
  • Also worth noting, this Barracuda Web Filter was deployed inline and HTTPS Filtering is On

So to dig into the issue, we ran Spotify and streamed media. Running a netstat -ao, filtered on the Spotify PID (3364 in this case), shows an established connection on port 4070.

spotify_netstat_port_4070

To block port 4070 we added destination port 4070 to the blocked ports under "Block/Accept" Tab > "IP Block/Exempt"

spotify_block_port_4070

Checking netstat -ao again shows Spotify attempting to reach out on port 4070 "SYN_SENT", however the Barracuda Web Filter does not let it through and Spotify is now showing offline.

spotify_netstat_port_4070_syn_sent

spotify_cant_connect.png

Conclusion: It appears that Spotify will first attempt to use port 4070 (which Barracuda can't block via "Content Filter") and if it doesn't connect on port 4070 it will fallback to port 443 (HTTPS).  The Barracuda Web Filter is able to block Spotify on port 443 (HTTPS) assuming that HTTPS Filtering is on.


Lewan is a Barracuda partner, the highest level of recognition in VAR partnership program.

Our Networking solution experts can manage and maintain your internet usage policies so your organization is always compliant and secure, Contact Us to learn more.

Topics: Barracuda

John Certeza
Written by John Certeza

John is a Systems Engineer on the Managed Services team at Lewan Technology.

  • View & Submit Comments

[fa icon="envelope"] Subscribe to Email Updates



[fa icon="comments-o"] Follow us

Get even more great content, photos, event info and industry news.



[fa icon="calendar"] Recent Posts