Os redirecionamentos HTTP não usam pacotes ICMP; seu problema parece ser um espaço ausente na segunda chamada header() . Experimente header("Location: " . $VIDEO) .
com as seguintes regras, o php não pode fazer um redirect para outro arquivo. ele congela no momento em que chega a header("Content-type: video/x-flv");
header("Location:" . $VIDEO);
ou pode ser get_headers(); no meu script php.
meus iptables:
iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT tcp -- anywhere anywhere tcp dpt:22151
ACCEPT tcp -- anywhere anywhere tcp dpt:http
ACCEPT all -- anywhere anywhere
ACCEPT tcp -- anywhere anywhere tcp dpt:webcache
ACCEPT tcp -- anywhere anywhere tcp spt:webcache
ACCEPT tcp -- anywhere anywhere tcp spt:http
DROP all -- anywhere anywhere
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
o que eu tentei
iptables -A INPUT -p ICMP --icmp-type 8 -j ACCEPT
assim que eu remover o DROP all -- anywhere anywhere , tudo funciona bem.
Os redirecionamentos HTTP não usam pacotes ICMP; seu problema parece ser um espaço ausente na segunda chamada header() . Experimente header("Location: " . $VIDEO) .