[firewall] Valentin veut pouvoir écouter la radio
This commit is contained in:
parent
a4291f50c9
commit
2cd0e94680
1 changed files with 6 additions and 0 deletions
|
@ -96,6 +96,12 @@ class firewall(base.firewall_routeur):
|
||||||
|
|
||||||
chain = 'FORWARD'
|
chain = 'FORWARD'
|
||||||
self.flush(table, chain)
|
self.flush(table, chain)
|
||||||
|
# Valentin veux écouter la radio, en vrai, il faudrait utiliserl'URL authentication de icecast
|
||||||
|
# (http://www.icecast.org/docs/icecast-2.3.1/icecast2_listenerauth.html)
|
||||||
|
# pour authoriser les gens logué sur l'intranet2 à écouter la radio de n'importe où
|
||||||
|
# avec un filtrage par ip (si quelqu'un passe au travers, whos cares
|
||||||
|
# mais j'ai la flemme
|
||||||
|
self.add(table, chain, '-p tcp -s 82.227.130.15 -d tv.crans.org --dport 8000 -j ACCEPT') # Valentin veux écouter la radio
|
||||||
self.add(table, chain, '-i lo -j ACCEPT')
|
self.add(table, chain, '-i lo -j ACCEPT')
|
||||||
self.add(table, chain, '-j %s' % self.reseaux_non_routable(table, fill_ipset=True))
|
self.add(table, chain, '-j %s' % self.reseaux_non_routable(table, fill_ipset=True))
|
||||||
self.add(table, chain, '-p icmp -j ACCEPT')
|
self.add(table, chain, '-p icmp -j ACCEPT')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue