test2002 发表于 2005-11-15 16:42:43

我是公网IP,win下速度很快的
公网IP就不用NAT呀.是不是种子有问题.

superman 发表于 2005-11-15 18:34:27

就是防火墙的问题。
# iptables -F
# iptables -P INPUT DROP
# iptables -P OUTPUT ACCEPT
# iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
# iptables -A INPUT -s 127.0.0.1 -j ACCEPT
# iptables -A INPUT -p tcp -m multiport --dport 4662,6880,6881 -j ACCEPT
# iptables -A INPUT -p udp -m multiport --dport 4672,6880,6881 -j ACCEPT
# iptables -A INPUT -p icmp --icmp-type 0 -j ACCEPT
# iptables -save
iptables v1.3.2: no command specified
Try `iptables -h' or 'iptables --help' for more information.
上面 iptables -save这个命令好像不对,怎么回事?

linzhanyu 发表于 2005-11-15 19:40:56

是ML的问题,狂晕,为何不集成五笔98版,又用回了86版
我就认为86版的五笔好用,98版的乱改~

KanKer 发表于 2005-11-15 23:34:24


上面 iptables -save这个命令好像不对,怎么回事?

兄弟,难道你不会打出 iptables 按两下 tab 键看看?

superman 发表于 2005-11-16 00:14:29

哥们,我要是会就不问你了

KanKer 发表于 2005-11-16 01:54:34

我是服了你了,不会,眼睛也不好用。你看看人家给你的命令中间有空格么?

superman 发表于 2005-11-16 09:48:56

# iptables -P INPUT DROP
# iptables -P OUTPUT ACCEPT
# iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
# iptables -A INPUT -s 127.0.0.1 -j ACCEPT
# iptables -A INPUT -p tcp -m multiport --dport 4662,6880,6881 -j ACCEPT
# iptables -A INPUT -p udp -m multiport --dport 4672,6880,6881 -j ACCEPT
# iptables -A INPUT -p icmp --icmp-type 0 -j ACCEPT
# iptables-save >iptables-config
# service iptables restart
/etc/sysconfig/iptables-config: line 2: *filter: command not found
/etc/sysconfig/iptables-config: line 3: :INPUT: command not found
/etc/sysconfig/iptables-config: line 4: :FORWARD: command not found
/etc/sysconfig/iptables-config: line 5: :OUTPUT: command not found
/etc/sysconfig/iptables-config: line 6: -A: command not found
/etc/sysconfig/iptables-config: line 7: -A: command not found
/etc/sysconfig/iptables-config: line 8: -A: command not found
/etc/sysconfig/iptables-config: line 9: -A: command not found
/etc/sysconfig/iptables-config: line 10: -A: command not found
/etc/sysconfig/iptables-config: line 11: COMMIT: command not found
Flushing firewall rules:                                 
Setting chains to policy ACCEPT: filter                  
Unloading iptables modules:                              
#      
保存到了/etc/sysconfig/iptables-config,但还是测试通不过,显示NAT错误。
怎么把iptables设为“自动启动”?

superman 发表于 2005-11-16 09:50:45

# Generated by iptables-save v1.3.2 on Wed Nov 16 09:43:53 2005
*filter
:INPUT DROP
:FORWARD ACCEPT
:OUTPUT ACCEPT
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -s 127.0.0.1 -j ACCEPT
-A INPUT -p tcp -m multiport --dports 4662,6880,6881 -j ACCEPT
-A INPUT -p udp -m multiport --dports 4672,6880,6881 -j ACCEPT
-A INPUT -p icmp -m icmp --icmp-type 0 -j ACCEPT
COMMIT
# Completed on Wed Nov 16 09:43:53 2005
上面是iptables-config的内容

superman 发表于 2005-11-16 10:51:22

整了一气终于理出了点头绪,现在把iptables卸了重装了一次,为了把它恢复默认。用iptables-save >iptables保存到了/etc/sysconfig里, 现在只是开机不能自动启动,请问怎么弄?谢谢各位不断帮助。

xx_zz 发表于 2005-11-16 11:05:08

ntsysv-选取iptables

superman 发表于 2005-11-16 11:12:48

没看懂,请详细说明,我是菜鸟

superman 发表于 2005-11-16 11:29:10

选取了iptables,但是重启后,拨号,打开Azureus,测试TCP监听端口依然显示NAT错误,在终端下输入service iptables start后再测试显示确定,那里有错,这是iptables-config文件内容:
# Generated by iptables-save v1.3.2 on Wed Nov 16 10:38:40 2005
*filter
:INPUT DROP
:FORWARD ACCEPT
:OUTPUT ACCEPT
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -s 127.0.0.1 -j ACCEPT
-A INPUT -p tcp -m multiport --dports 4662,6880,6881 -j ACCEPT
-A INPUT -p udp -m multiport --dports 4672,6880,6881 -j ACCEPT
-A INPUT -p icmp -m icmp --icmp-type 0 -j ACCEPT
COMMIT
# Completed on Wed Nov 16 10:38:40 2005


这是iptabies文件内容:
# Generated by iptables-save v1.3.2 on Wed Nov 16 10:38:40 2005
*filter
:INPUT DROP
:FORWARD ACCEPT
:OUTPUT ACCEPT
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -s 127.0.0.1 -j ACCEPT
-A INPUT -p tcp -m multiport --dports 4662,6880,6881 -j ACCEPT
-A INPUT -p udp -m multiport --dports 4672,6880,6881 -j ACCEPT
-A INPUT -p icmp -m icmp --icmp-type 0 -j ACCEPT
COMMIT
# Completed on Wed Nov 16 10:38:40 2005

superman 发表于 2005-11-16 11:34:23

好像ntsysv选中后没起作用

demonlj 发表于 2005-11-16 13:00:43

I didn't ever say u should save rules to "iptables-config", what i mentioned is "iptables";
and set "iptables" to be Autostart, u can try "chkconfig --levels 345 iptables on"

superman 发表于 2005-11-16 13:17:06

楼上如何不说中文
页: 1 [2] 3
查看完整版本: Azureus NAT测试为何端口通不过?