你能看出我做错了什么吗?在 Ubuntu Server 9.1 上,我试图允许非特权 IMAP 主机在端口 1143 上传输流量。
测试时连接被拒绝
telnet example.com 1143
但允许连接测试
telnet example.com 80
从我的电脑到远程互联网托管服务器。两个规则看起来相同并且彼此靠近,没有规则拒绝插入规则文件中的连接。我想不通。
iptables -L 返回这个:
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere
REJECT all -- anywhere 127.0.0.0/8 reject-with icmp-port-unreachable
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT tcp -- anywhere anywhere tcp dpt:www
ACCEPT tcp -- anywhere anywhere tcp dpt:https
ACCEPT tcp -- anywhere anywhere tcp dpt:http-alt
ACCEPT tcp -- anywhere anywhere tcp dpt:7070
ACCEPT tcp -- …Run Code Online (Sandbox Code Playgroud) iptables ×1