|
|
环境:
服务器使用内网ip(有放火墙),通过路由连接外网,客户机也是内网ip通过路由连接外网,并且可能有防火墙,听说需要通过被动传输才可以连接上去,可能是因为服务器防火墙问题,ftp可以建立21端口连接,但是过一会就会因为数据连接超时而连接失败
操作系统版本:RedHat AS4 ftp服务器:vsftpd
放火墙规则:
Chain INPUT (policy ACCEPT)
target prot opt source destination
RH-Firewall-1-INPUT all -- anywhere anywhere
Chain FORWARD (policy ACCEPT)
target prot opt source destination
RH-Firewall-1-INPUT all -- anywhere anywhere
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Chain RH-Firewall-1-INPUT (2 references)
target prot opt source destination
ACCEPT all -- anywhere anywhere
ACCEPT icmp -- anywhere anywhere icmp any
ACCEPT ipv6-crypt-- anywhere anywhere
ACCEPT ipv6-auth-- anywhere anywhere
ACCEPT udp -- anywhere 224.0.0.251 udp dpt:5353
ACCEPT udp -- anywhere anywhere udp dpt:ipp
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:https
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:ssh
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:http
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:ftp
REJECT all -- anywhere anywhere reject-with icmp-host-prohibited
不会设置放火墙,我想应该就是放火墙问题,希望可以给出设置放火墙的指令
谢谢
emali:guangfei.my@gmail.com |
|