[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

vlc, firewall et Free



Salut,

sur 2 pc, j'ai le même fichier firewall.sh :

---------------
#!/bin/sh

#----------- REMISE à ZERO des règles de filtrage -----
iptables -F
iptables -t nat -F


#----------------- Default policy ----------------------

#connexions entrantes bloquées par défaut
iptables -P INPUT DROP

#connexions destinées à être forwardées acceptées par defaut
iptables -P FORWARD ACCEPT

#connexions sortantes acceptées ar défaut
iptables -P OUTPUT ACCEPT


#------------ DEBUT des règles de filtrage --------------

#loopback
iptables -A INPUT -i lo -j ACCEPT

#no ICMP (ping)
iptables -A INPUT -p icmp -j DROP

#established connections
iptables -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT

#SSH
iptables -A INPUT -p tcp --dport 22 -j ACCEPT

#VNC
iptables -A INPUT -p tcp --dport 5900 -j ACCEPT

#Rsync
iptables -A INPUT -p tcp --dport 873 -j ACCEPT
iptables -A INPUT -p udp --dport 873 -j ACCEPT

#télé Free
iptables -A INPUT -p udp -s 212.27.38.253 -j ACCEPT
iptables -A OUTPUT -p udp --dport 554 -j ACCEPT

#Ekiga
iptables -A INPUT -p udp --dport 5060 -j ACCEPT
--------------

Sur le pc1, je peux regarder la télé de chez Free avec vlc et l'enregistrer 
avec fricorder, avec le pc2, je dois désactiver le firewall pour y arriver, 
sinon je reçois le message :

--------------
 $ vlc
VLC media player 0.8.6a Janus

** (.:3208): CRITICAL **: gtk_pizza_set_size: assertion `pizza != NULL' failed

** (.:3208): CRITICAL **: gtk_pizza_set_size: assertion `pizza != NULL' failed
Sending request: OPTIONS rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=201 
RTSP/1.0
CSeq: 1
User-Agent: VLC media player (LIVE555 Streaming Media v2006.03.16)


Received OPTIONS response: RTSP/1.0 200 OK
Cseq: 1
Server: fbxrtspd/1.0 Freebox minimal RTSP server
Public: DESCRIBE, SETUP, TEARDOWN, PLAY


Sending request: DESCRIBE rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=201 
RTSP/1.0
CSeq: 2
Accept: application/sdp
User-Agent: VLC media player (LIVE555 Streaming Media v2006.03.16)


Received DESCRIBE response: RTSP/1.0 200 OK
Cseq: 2
Content-Length: 181
Content-Type: application/sdp
Content-Language: fr
Server: fbxrtspd/1.0 Freebox minimal RTSP server


Need to read 181 extra bytes
Read 181 extra bytes: v=0
o=leCDN 1204640501 1204640501 IN IP4 kapoueh.proxad.net
s=France 2
i=France 2
c=IN IP4 0.0.0.0
t=0 0
m=video 0 RTP/AVP 33
a=control:rtsp://212.27.38.253/freeboxtv/stream?id=201

Unable to determine our source address: This computer has an invalid IP 
address: 0x0
Unable to determine our source address: This computer has an invalid IP 
address: 0x0
Sending request: SETUP rtsp://212.27.38.253/freeboxtv/stream?id=201 RTSP/1.0
CSeq: 3
Transport: RTP/AVP;unicast;client_port=32772-32773
User-Agent: VLC media player (LIVE555 Streaming Media v2006.03.16)


Received SETUP response: RTSP/1.0 200 OK
Cseq: 3
Session: it70y92QfWaLbUXBMG5webbalmjd9NOi7L9wK1cQNdrPYfhALcXPeZPqbYtbC7j
Server: fbxrtspd/1.0 Freebox minimal RTSP server
Transport: 
RTP/AVP;unicast;mode=play;destination=192.168.0.42;client_port=32772-32773;server_port=32768-32769


Sending request: PLAY rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=201 
RTSP/1.0
CSeq: 4
Session: it70y92QfWaLbUXBMG5webbalmjd9NOi7L9wK1cQNdrPYfhALcXPeZPqbYtbC7j
Range: npt=0.000-
User-Agent: VLC media player (LIVE555 Streaming Media v2006.03.16)


Received PLAY response: RTSP/1.0 200 OK
Cseq: 4
Session: it70y92QfWaLbUXBMG5webbalmjd9NOi7L9wK1cQNdrPYfhALcXPeZPqbYtbC7j
Server: fbxrtspd/1.0 Freebox minimal RTSP server


Sending request: TEARDOWN rtsp://mafreebox.freebox.fr/freeboxtv/stream?id=201 
RTSP/1.0
CSeq: 5
Session: it70y92QfWaLbUXBMG5webbalmjd9NOi7L9wK1cQNdrPYfhALcXPeZPqbYtbC7j
User-Agent: VLC media player (LIVE555 Streaming Media v2006.03.16)


Received TEARDOWN response: RTSP/1.0 200 OK
Cseq: 5
Server: fbxrtspd/1.0 Freebox minimal RTSP server
---------------------

Pourquoi ce "Unable to determine our source address: This computer has an 
invalid IP address: 0x0"?

D'ailleurs lors de mes essais avec vlc, le voyant de mon switch clignote, mais 
rien ne s'affiche.

Sur le pc2, j'ai rajouté la ligne
"iptables -A INPUT -p udp --dport 1234 -j ACCEPT"
pour les flux VideoLAN, mais ça n'a rien changé.

Si qn a une idée, j'ai le pc2 d'un ami chez moi jusqu'à ce soir.

ciao
Klaus


Reply to: