使用以下规则,php 不能redirect
生成另一个文件。它在到达header("Content-type: video/x-flv");
header("Location:" . $VIDEO);
或可能get_headers();
在我的 php 脚本上时冻结。
我的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
我试过的
iptables -A INPUT -p ICMP --icmp-type 8 -j ACCEPT
一旦我删除DROP all -- anywhere anywhere
一切正常。