如何为webmin开通iptables?

已解决
求助

#1

在Debian 8上成功安装了webmin,可以在Local访问,但是在其他机器上就根本没有反应https://192.168.0.110:10000
网上看了不少帖子还是没有看明白,所以把问题在此贴出,

iptables -L
Chain INPUT (policy DROP)
target prot opt source destination
ACCEPT all – anywhere anywhere
ACCEPT all – anywhere anywhere state RELATED,ESTABLISHED
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
ACCEPT tcp – anywhere anywhere state NEW tcp dpts:20000:30000
ACCEPT tcp – anywhere anywhere state NEW tcp dpt:https
ACCEPT icmp – anywhere anywhere limit: avg 1/sec burst 10
ACCEPT all -f anywhere anywhere limit: avg 100/sec burst 100
syn-flood tcp – anywhere anywhere tcp flags:FIN,SYN,RST,ACK/SYN
REJECT all – anywhere anywhere reject-with icmp-host-prohibited

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

Chain syn-flood (1 references)
target prot opt source destination
RETURN tcp – anywhere anywhere limit: avg 3/sec burst 6
REJECT all – anywhere anywhere reject-with icmp-port-unreachable

不知如何开通端口10000?


VNC 第一次安装时OK,在重新启动后就接不上了
(依云) #2

你的 iptables 默认不允许连接嘛。允许一下就可以了:

iptables -I INPUT -p tcp --dport 10000 -j ACCEPT


#3

非常感谢!
iptables -I INPUT -p tcp --dport 10000 -j ACCEPT 管用:+1:
加上
iptables-save > /etc/iptables.up.rules
就存下了!