- 论坛徽章:
- 0
|
本帖最后由 73年生人 于 2013-07-17 15:26 编辑
chenyx 发表于 2013-07-17 15:22 ![]()
你看看ip_conntrack_ftp模块加载正常不?加载下看看
root@IPt:/etc# lsmod
Module Size Used by
nf_nat_ftp 12460 0
nf_conntrack_ftp 12605 1 nf_nat_ftp
我发现这样写就能正常连接ftp
root@IPt:/etc# iptables -A INPUT -p tcp --dport 60000:60050 -j ACCEPT
root@IPt:/etc# iptables -A INPUT -m state --state NEW,RELATED,ESTABLISHED -j ACCEPT
root@IPt:/etc# iptables -L
Chain INPUT (policy DROP)
target prot opt source destination
ACCEPT tcp -- anywhere anywhere tcp dpt:ssh state NEW,ESTABLISHED
ACCEPT icmp -- anywhere anywhere
ACCEPT tcp -- anywhere anywhere tcp dpt:ftp
ACCEPT tcp -- anywhere anywhere tcp dpts:60000:60050
ACCEPT all -- anywhere anywhere state NEW,RELATED,ESTABLISHED
这是什么原因? |
|