Created
December 25, 2012 18:26
-
-
Save anonymous/4374654 to your computer and use it in GitHub Desktop.
danted.conf for Spotify from old blog post http://kzar.co.uk/blog/view/blocking-spotify-p2p-connections
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
# Dante settings for Spotify | |
logoutput: /var/log/sockd.log | |
# Server's IP is 10.10.10.99, open proxy on port 8080 | |
internal: 10.10.10.99 port = 8080 | |
external: eth1 | |
# This stuff was configured by Debian | |
user.privileged: proxy | |
user.notprivileged: nobody | |
user.libwrap: nobody | |
clientmethod: none | |
method: none | |
# Allow connections to the proxy server | |
client pass { | |
from: 10.10.10.0/24 to: 0.0.0.0/0 | |
} | |
# Allow connections to Spotify | |
pass { | |
from: 10.10.10.10/24 to: .spotify.com | |
log: error | |
} | |
# Allow connections to Last.fm | |
pass { | |
from: 10.10.10.10/24 to: .audioscrobbler.com | |
log: error | |
} | |
pass { | |
from: 10.10.10.10/24 to: 195.24.233.57/32 | |
log: error | |
} | |
pass { | |
from: 10.10.10.10/24 to: 195.24.232.207/32 | |
log: error | |
} | |
pass { | |
from: 10.10.10.10/24 to: 195.24.232.208/32 | |
log: error | |
} | |
pass { | |
from: 10.10.10.10/24 to: 195.24.233.58/32 | |
log: error | |
} | |
# Allow connections to Facebook | |
pass { | |
from: 10.10.10.10/24 to: .facebook.com | |
log: error | |
} | |
# Allow connections to Twitter | |
pass { | |
from: 10.10.10.10/24 to: .twitter.com | |
log: error | |
} | |
pass { | |
from: 10.10.10.10/24 to: 128.242.245.93/32 | |
log: error | |
} | |
# Allow incoming replies | |
pass { | |
from: 0.0.0.0/0 to: 0.0.0.0/0 | |
command: bindreply udpreply | |
log: error | |
} | |
# Block everything else | |
block { | |
from: 0.0.0.0/0 to: 0.0.0.0/0 | |
log: connect error | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment